Subject: pkg/24707: x11/xlockmore-lite can't compile
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 03/09/2004 01:22:52
>Number:         24707
>Category:       pkg
>Synopsis:       x11/xlockmore-lite can't compile
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 08 16:23:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 1.6ZK
>Organization:
>Environment:
System: NetBSD firefly.localdomain 1.6ZK NetBSD 1.6ZK (FIREFLY.MP) #28: Sat Mar 6 19:06:15 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	x11/xlockmore-lite can't compile. It seems to need C++ compiler.

# cd /usr/pkgsrc/x11/xlockmore-lite
# make
===> Checking for vulnerabilities in xlockmore-lite-5.11.1
=> Checksum OK for xlockmore-5.11.1.tar.bz2.
work -> /tmp/pkgsrc/x11/xlockmore-lite/work
===> Extracting for xlockmore-lite-5.11.1
===> Required installed package xpkgwedge>=1.5: xpkgwedge-1.9 found
===> Required installed package x11-links>=0.23: x11-links-0.23 found
===> Patching for xlockmore-lite-5.11.1
===> Applying pkgsrc patches for xlockmore-lite-5.11.1

[snip]

gcc -O2 -DDEF_MODULEPATH="/usr/pkg/lib/X11/xlock/modules" -o ../xlock/xlock ../xlock/xlock.o ../xlock/passwd.o ../xlock/resource.o ../xlock/parsecmd.o  ../xlock/util.o ../xlock/logout.o ../xlock/mode.o ../xlock/xlockimage.o ../xlock/ras.o ../xlock/xbm.o  ../xlock/vis.o ../xlock/visgl.o ../xlock/color.o ../xlock/random.o ../xlock/iostuff.o ../xlock/automata.o  ../xlock/spline.o ../xlock/sound.o ../xlock/erase.o ../xlock/magick.o  ../xlock/vtlock.o ../xlock/vtlock_proc.o  ant.o apollonian.o ball.o bat.o blot.o  bouboule.o bounce.o braid.o bubble.o bug.o  clock.o coral.o crystal.o  daisy.o dclock.o decay.o deco.o demon.o  dilemma.o discrete.o dragon.o drift.o euler2d.o eyes.o  fadeplot.o flag.o flame.o flow.o forest.o  galaxy.o goop.o grav.o  helix.o hop.o hyper.o  ico.o ifs.o image.o juggle.o julia.o kaleid.o kumppa.o  laser.o life.o life1d.o life3d.o  lightning.o lisa.o lissie.o loop.o lyapunov.o  mandelbrot.o marquee.o matrix.o maze.o  mountain.o munch.o nose.o  pacman.o penr
 ose.o petal.o petri.o  polyominoes.o puzzle.o pyro.o  qix.o roll.o rotor.o  scooter.o shape.o sierpinski.o slip.o  space.o sphere.o spiral.o spline.o  star.o starfish.o strange.o swarm.o swirl.o  t3d.o tetris.o thornbird.o tik_tak.o  triangle.o tube.o turtle.o  vines.o voters.o  wator.o wire.o world.o worm.o xcl.o xjack.o   solitare.o     bomb.o blank.o random.o    -Wl,-R/usr/lib:/usr/X11R6/lib:/usr/lib   -L/usr/X11R6/lib  -L/usr/lib  -lSM -lICE   -lcrypt -lX11 -lXext -lm
solitare.o(.text+0x47e): In function `CardView::CardView(ModeInfo_s*, Suits, int)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x4c2): In function `CardView::CardView(ModeInfo_s*, Suits, int)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0xfa7): In function `CardPile::cleanup()':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1019): In function `DealPile::cleanup()':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1021): In function `DealPile::cleanup()':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x10aa): In function `DealPile::shuffle(CardPile*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1a9d): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1acb): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1b11): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1b40): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1b77): more undefined references to `operator new(unsigned)' follow
solitare.o(.text+0x1c33): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1ca1): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1ccf): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1d15): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1d44): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1d7b): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x1dc1): more undefined references to `operator new(unsigned)' follow
solitare.o(.text+0x1e37): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1e97): In function `GameTable::~GameTable()':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1ef3): In function `GameTable::~GameTable()':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x2345): In function `init_solitare':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x2358): In function `init_solitare':
: undefined reference to `operator new(unsigned)'
solitare.o(.text+0x23bb): In function `init_solitare':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x24b9): In function `release_solitare':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1c1e): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1e22): In function `GameTable::GameTable(ModeInfo_s*)':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1e83): In function `GameTable::~GameTable()':
: undefined reference to `operator delete(void*)'
solitare.o(.text+0x1edf): more undefined references to `operator delete(void*)' follow
solitare.o(.gnu.linkonce.r._ZTI8CardPile+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
solitare.o(.gnu.linkonce.r._ZTI8DealPile+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
solitare.o(.gnu.linkonce.r._ZTI8SuitPile+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
solitare.o(.gnu.linkonce.r._ZTI13AlternatePile+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
solitare.o(.gnu.linkonce.r._ZTI8DeckPile+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
solitare.o(.gnu.linkonce.r._ZTI11DiscardPile+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
solitare.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
*** Error code 1

Stop.
make: stopped in /tmp/pkgsrc/x11/xlockmore-lite/work/xlockmore-5.11.1/modes
=> Fixing buildlink references in files-to-be-installed.
#

>How-To-Repeat:
	cd ${PKGSRCDIR}/x11/xlockmore-lite
	make

>Fix:
Index: Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/x11/xlockmore-lite/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	6 Jan 2004 15:44:10 -0000	1.3
+++ Makefile	8 Mar 2004 16:13:49 -0000
@@ -11,6 +11,5 @@
 CONFIGURE_ARGS+=	--without-opengl
 CONFIGURE_ARGS+=	--without-mesa
 CONFIGURE_ARGS+=	--without-esound
-CONFIGURE_ENV+=		CXX="${CC}"	# no dependency on libstdc++
 
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: