Bug 40995

Summary: Xfree-4.2.0-libraries have pthread-problems
Product: Ports & Packages Reporter: Marcus vA <mva121>
Component: Individual Port(s)Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Marcus vA 2002-07-25 22:00:03 UTC
Refreshed the ports at July, the 24th (release=cvs, tag=.), then tried to install xpdf:

make CFLAGS="-O3" install clean

[snip...]

./libtool --mode=link \
        cc -o xglyph  xglyph.lo  ../lib/libt1x.la ../lib/libt1.la \
                        -L/usr/X11R6/lib -lXaw -lXt -lXmu -lSM -lICE -lXext -lX11  -lm 
cc -o .libs/xglyph xglyph.o ../lib/.libs/libt1x.so ../lib/.libs/libt1.so -L/usr/X11R6/lib -lXaw -lXt -lXmu -lSM -lICE -lXext -lX11 -lm  -Wl,--rpath -Wl,/usr/local/lib
/usr/X11R6/lib/libXaw.so: warning: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_signal'
/usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_zero_stub_'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_broadcast'
/usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_self_stub_'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_init'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_unlock'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_self'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_destroy'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_lock'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_wait'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_destroy'
/usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_init'
gmake[1]: *** [yglyph] error 1
gmake: *** [XXXX] error 1
*** Error code 2

Stop in /usr/ports/devel/t1lib.
*** Error code 1

Every program which uses libXt.so gets this error.

I tried to portupgrade all:

While compiling the upgrade of  XFree86-Server-4.2.0_3 ->  Free86-Server-4.2.0_4 the same thing happens.

Version of the xlibs is:

XFree86-libraries-4.2.0_2

How-To-Repeat: See above, try to compile a program which uses the  lib. You can repeat this with trying to compile gtk-1.2.10_4 -> gtk-1.2.10_7 too.

Thanks in advance
Comment 1 Patrick Li freebsd_committer freebsd_triage 2002-07-26 00:00:16 UTC
Responsible Changed
From-To: freebsd-ports->anholt

Over to maintainer
Comment 2 Eric Anholt 2002-10-17 00:54:44 UTC
Are you still having this problem?  If so, could you do a portupgrade
-Rf XFree86-4-libraries?  If the problem persists after having done
that, could you rebuild just XFree86-4-libraries with
files/patch-UIThrStubs.c removed?

-- 
Eric Anholt <eta@lclark.edu>
http://people.freebsd.org/~anholt/dri/
Comment 3 Marcus vA 2002-10-17 11:44:04 UTC
I'm sorry, almost forgot about this submit of me.
The problem seemed to be a broken base-system, which caused those
problems. All went clear after a completely new installation and a clean
update and build of the base-system. Therefore this can be closed, I
think.

Thanks for help ;-)
Marcus

---
Mr. Cole's Axiom:
The sum of the intelligence on the planet is a constant; the
population is growing.
Comment 4 Eric Anholt freebsd_committer freebsd_triage 2002-10-18 01:24:52 UTC
State Changed
From-To: open->closed

Resolved, according to submitter.