Bug 25818

Summary: Clean build of kde2 fails in games/kdegames2 port (as of 13 MAR. 2001)
Product: Ports & Packages Reporter: agifford
Component: Individual Port(s)Assignee: Will Andrews <will>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description agifford 2001-03-15 03:50:01 UTC
While doing a clean build of KDE 2.1 from the ports collection, during the "install" phase of the x11/kde2 port, dependant port games/kdegams2 fails with the following errors:

c++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -O -pipe -march=k6 -fmemoize-lookups -fsave-memoized -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -o libkdegames.la.closure .libs/libkdegames_la_closure.o .libs/kcarddialog.o .libs/libkdegames_la_meta_unload.o -Wl,-export-dynamic  -L/usr/X11R6/lib -L/usr/local/lib /usr/local/lib/libksycoca.so /usr/local/lib/libkio.so /usr/local/lib/libkdeui.so -L/usr/libexec/elf -L/usr/libexec -L/usr/lib /usr/local/lib/libkdesu.so /usr/local/lib/libkdecore.so /usr/local/lib/libkdefakes.so /usr/local/lib/libDCOP.so -lqt2-mt -lpng -lXext -lX11 -lSM -lICE -lutil -lz -lm -ljpeg -lgcc -lstdc++ -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/X11R6/lib
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_attr_destroy'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_create'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_attr_init'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_exit'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_condattr_init'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_mutexattr_destroy'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_condattr_destroy'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_attr_setinheritsched'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_mutexattr_settype'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_mutexattr_init'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_mutex_trylock'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_attr_setdetachstate'
/usr/X11R6/lib/libqt2-mt.so: undefined reference to `pthread_cond_timedwait'
gmake[3]: *** [libkdegames.la.closure] Error 1
gmake[3]: Leaving directory `/usr/ports/games/kdegames2/work/kdegames-2.1/libkdegames'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/games/kdegames2/work/kdegames-2.1/libkdegames'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/games/kdegames2/work/kdegames-2.1'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/games/kdegames2.
*** Error code 1

Stop in /usr/ports/games/kdegames2.
*** Error code 1

Stop in /usr/ports/games/kdegames2.
*** Error code 1

Stop in /usr/ports/games/kdegames2.
*** Error code 1

Stop in /usr/ports/x11/kde2.
*** Error code 1

Stop in /usr/ports/x11/kde2.
*** Error code 1

Stop in /usr/ports/x11/kde2.

How-To-Repeat: Try doing a clean from-scratch build of kde2
Comment 1 siglercm 2001-03-21 13:40:04 UTC
Reply-to: csigler@vt.edu

Hi,

This same problem exists for misc/kdeutils2 (kdeutils-2.1) and
editors/koffice (koffice-2.0.1).  It appears to be an
autoconf/automake problem.  The FreeBSD build isn't using the Linux
compat utilities properly:

1.) It doesn't link with libpthread-0.8.so.  The Makefile has
"@LIBPTHREAD@" instead of the correct library linking invocation,
and libpthread isn't included in one of the LIBS defs later on
in the Makefile.

2.) The programs are linking against the FreeBSD libc not libc.so.6
and ld-linux.so.2 from Linux compat which is also needed.

HTH.

					Clemmitt Sigler
					csigler@vt.edu
Comment 2 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2001-03-23 17:24:48 UTC
Responsible Changed
From-To: freebsd-ports->will

He is the maintainer.
Comment 3 Will Andrews freebsd_committer freebsd_triage 2001-03-25 06:58:03 UTC
State Changed
From-To: open->closed

Resolved by removing pthread dependency from build.