Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 1999 14:15:28 +1030 (CST)
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/10156: www/libwww doesn't build
Message-ID:  <199902190345.OAA93561@freebie.lemis.com>

next in thread | raw e-mail | index | archive | help

>Number:         10156
>Category:       ports
>Synopsis:       www/libwww doesn't build
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 18 19:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Greg Lehey
>Release:        FreeBSD-4.0
>Organization:
FreeBSD
>Environment:

	FreeBSD 4.0-CURRENT, probably any ELF-based system would show
	the problem.

>Description:

	The port fails to build with doubly defined references while
	linking w3c-libwww-5.2.1/LineMode/src/www:

	cc -O -pipe -o www HTBrowse.o GridText.o ConView.o GridStyle.o DefaultStyles.o ../../Library/src/.libs/libwww.a ../../PICS-client/src/libpics.a -lm
	../../Library/src/.libs/libwww.a(HTML.o)(.data+0x0): multiple definition of `styleSheet'
	DefaultStyles.o(.data+0x8d8): first defined here
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_new2':
	HTML.o(.text+0x0): multiple definition of `HText_new2'
	GridText.o(.text+0x1ac): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_new2' changed from 50 to 7 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_free':
	HTML.o(.text+0x8): multiple definition of `HText_free'
	GridText.o(.text+0x25c): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_free' changed from 31 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_beginAnchor':
	HTML.o(.text+0x10): multiple definition of `HText_beginAnchor'
	GridText.o(.text+0xc78): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_beginAnchor' changed from 192 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_endAnchor':
	HTML.o(.text+0x18): multiple definition of `HText_endAnchor'
	GridText.o(.text+0xd38): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_endAnchor' changed from 79 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_appendText':
	HTML.o(.text+0x20): multiple definition of `HText_appendText'
	GridText.o(.text+0xda4): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_appendText' changed from 42 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_appendImage':
	HTML.o(.text+0x28): multiple definition of `HText_appendImage'
	GridText.o(.text+0xd88): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_appendImage' changed from 26 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_appendCharacter':
	HTML.o(.text+0x30): multiple definition of `HText_appendCharacter'
	GridText.o(.text+0xa1c): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_appendCharacter' changed from 603 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_endAppend':
	HTML.o(.text+0x38): multiple definition of `HText_endAppend'
	GridText.o(.text+0xdd0): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_endAppend' changed from 55 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_setStyle':
	HTML.o(.text+0x40): multiple definition of `HText_setStyle'
	GridText.o(.text+0x998): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_setStyle' changed from 132 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_beginAppend':
	HTML.o(.text+0x48): multiple definition of `HText_beginAppend'
	GridText.o(.text+0x67c): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_beginAppend' changed from 19 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_appendParagraph':
	HTML.o(.text+0x50): multiple definition of `HText_appendParagraph'
	GridText.o(.text+0x93c): first defined here
	/usr/libexec/elf/ld: Warning: size of symbol `HText_appendParagraph' changed from 90 to 5 in HTML.o
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_appendObject':
	HTML.o(.text+0x58): multiple definition of `HText_appendObject'
	GridText.o(.text+0xe08): first defined here
	../../Library/src/.libs/libwww.a(HTML.o): In function `HText_appendLink':
	HTML.o(.text+0x60): multiple definition of `HText_appendLink'
	GridText.o(.text+0xe10): first defined here
	gmake[3]: *** [www] Error 1
	gmake[3]: Leaving directory `/T/FreeBSD/www/libwww/work/w3c-libwww-5.2.1/LineMode/src'
	gmake[2]: *** [all-recursive] Error 1
	gmake[2]: Leaving directory `/T/FreeBSD/www/libwww/work/w3c-libwww-5.2.1/LineMode'
	gmake[1]: 

>How-To-Repeat:

	# cd /usr/ports/www/libwww
	# make

>Fix:
	
	The problem stems from patch-ad, which inserts dummy
	declarations into Library/src/HTML.c instead of headers.
	Removing it allows the build to complete, but it does not
	create the files lib/libwww.so and lib/libwww.so.6.0.  In this
	connection I note the following log for patch-ad:

	revision 1.1
	date: 1998/12/25 14:52:05;  author: jseger;  state: Exp;
	Include a dummy version of the HText Interface so that the shared library
	links with other programs correctly.

	PR:             ports/9116

	It appears that it would be better to include these stub
	versions as a separate object file so that programs which
	include these functions will link correctly.  I don't
	understand why it doesn't create the shared libraries;
	possibly this is due to a different bug.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902190345.OAA93561>