Subject: pkg/4731: sysutils/xosview fails to link -- multiply defined symbols
To: None <gnats-bugs@gnats.netbsd.org>
From: Steve Allen <allen@wormey.ndip.eskimo.net>
List: netbsd-bugs
Date: 12/20/1997 00:03:16
>Number:         4731
>Category:       pkg
>Synopsis:       sysutils/xosview fails to link -- multiply defined symbols
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 20 00:20:01 1997
>Last-Modified:
>Originator:     Steve Allen
>Organization:
I speak only for myself.
>Release:        1.3_BETA
>Environment:
	
System: NetBSD wormey 1.3_BETA NetBSD 1.3_BETA (GENERIC) #51: Sun Nov 30 10:07:10 PST 1997 root2@wormey:/usr/src/sys/arch/mac68k/compile/GENERIC mac68k


>Description:
	xosview files build OK, but the link fails because two objects
	in its library define the same symbols
	

>How-To-Repeat:
Script started on Fri Dec 19 23:53:04 1997
# make
>Fix:
	
>Audit-Trail:
>Unformatted:
>> Checksum OK for xosview-1.5.1.tar.gz.
===>  Extracting for xosview-1.5.1
===>  Patching for xosview-1.5.1
===>  Configuring for xosview-1.5.1
creating cache ./config.cache
checking host system type... m68k-apple-netbsd1.3_BETA
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C preprocessor... cc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for a BSD compatible install... /usr/bin/install -c -o bin -g bin
checking for mawk... mawk
checking for ranlib... ranlib
disabled automatic dependencies by default
checking for swapctl... yes
checking for usleep... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating netbsd/Makefile
creating Makefile.config
creating Makefile.GNU.autodep
===>  Building for xosview-1.5.1
cd ./netbsd && make
c++ -O -O -Wall -O4 -pipe -I/usr/X11R6/include  -I. -I./netbsd  -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_USLEEP=1 -I.. -c MeterMaker.cc -o MeterMaker.o

[ file compiles deleted... ]

c++ -O -O -Wall -O4 -pipe -I/usr/X11R6/include  -I. -I./netbsd  -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_USLEEP=1 -c main.cc -o main.o
c++  -L./netbsd -L/usr/X11R6/lib -o xosview llist.o  Host.o  xwin.o  Xrm.o  defaultstring.o  meter.o  fieldmeter.o  fieldmeterdecay.o  bitmeter.o  xosview.o  main.o -lmeter -lX11 -lkvm
./netbsd/libmeter.a(memmeter.o): Definition of symbol `_astpending' (multiply defined)
./netbsd/libmeter.a(memmeter.o): Definition of symbol `_want_resched' (multiply defined)
./netbsd/libmeter.a(pagemeter.o): Definition of symbol `_astpending' (multiply defined)
./netbsd/libmeter.a(pagemeter.o): Definition of symbol `_want_resched' (multiply defined)
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
# exit
exit

Script done on Fri Dec 19 23:58:45 1997