From nobody@FreeBSD.org  Sat Jun 30 12:50:28 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 12BE737B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Jun 2001 12:50:28 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f5UJoRg66197;
	Sat, 30 Jun 2001 12:50:27 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200106301950.f5UJoRg66197@freefall.freebsd.org>
Date: Sat, 30 Jun 2001 12:50:27 -0700 (PDT)
From: Sean Chittenden <sean@chittenden.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports/mail/faces doesn't build (linking with pthreads broken)
X-Send-Pr-Version: www-1.0

>Number:         28551
>Category:       ports
>Synopsis:       ports/mail/faces doesn't build (linking with pthreads broken)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 30 13:00:19 PDT 2001
>Closed-Date:    Fri Apr 12 20:38:10 PDT 2002
>Last-Modified:  Fri Apr 12 20:38:10 PDT 2002
>Originator:     Sean Chittenden
>Release:        4.3-STABLE
>Organization:
>Environment:
FreeBSD wheel.tgd.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Jun 28  10:55:57 PDT 2001     root@wheel.tgd.net:/usr/src/sys/compile/WHEEL  i386

>Description:
Fresh build of FreeBSD 4.3-STABLE (synced two days ago).  Attempting to build xemacs21-mule-sumo port and faces doesn't compile and gives me the following error:

cc -o xfaces -O6 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=\"/usr/local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=\"/usr/X11R6/share/faces\"       -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=\"/var/mail\"           -I/usr/X11R6/include   address.o get.o main.o mon.o parsefrom.o rec.o x11.o  -L./compface -lcompface   -L/usr/X11R6/lib -lX11 
/usr/X11R6/lib/libX11.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/libX11.so: undefined reference to `pthread_cond_init'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_unlock'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_self'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_destroy'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_lock'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_wait'
/usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_destroy'/usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_init'
*** Error code 1

  Seems like a linking problem to me, but I'm not a big X buff.  Any chance the port maintainer could take a peak at this and issue a patch?

>How-To-Repeat:
cvsup -g -L 2 -z /etc/cvsupfile.freebsd-ports
cd /usr/ports/editors/xemacs21-mule-sumo && make install clean

  or:

cd /usr/ports/mail/faces && make install clean
>Fix:
I'm assuming guessing it's a simple linking problem with a pthreads library.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dwcjr 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Sun Aug 12 08:14:40 PDT 2001 
Responsible-Changed-Why:  
I'll handle this one. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28551 

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: freebsd-gnats-submit@FreeBSD.org, sean@chittenden.org
Cc:  
Subject: Re: ports/28551: ports/mail/faces doesn't build (linking with pthreads broken)
Date: Sun, 12 Aug 2001 10:15:38 -0500

 Have you tried it recently, I just installed it and no problems.  What 
 version of XFree?
 

From: Sean Chittenden <sean@chittenden.org>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/28551: ports/mail/faces doesn't build (linking with pthreads broken)
Date: Sun, 12 Aug 2001 21:40:04 -0700

 --C+ts3FVlLX8+P6JN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 > Have you tried it recently, I just installed it and no problems.
 
 	Strange...  just did make distclean, updated ports, make and=20
 here's the output:
 10:09am sean@wheel:mail/faces # make
 >> faces-1.6.1.tar.Z doesn't seem to exist in /usr/ports/distfiles/.
 >> Attempting to fetch from ftp://ftp.cs.indiana.edu/pub/faces/faces/.
 Receiving faces-1.6.1.tar.Z (249469 bytes): 100%
 249469 bytes transferred in 6.3 seconds (38.80 kBps)
 =3D=3D=3D>  Extracting for faces-1.6.1_1
 >> Checksum OK for faces-1.6.1.tar.Z.
 =3D=3D=3D>   faces-1.6.1_1 depends on shared library: X11.6 - found
 =3D=3D=3D>  Patching for faces-1.6.1_1
 =3D=3D=3D>  Applying FreeBSD patches for faces-1.6.1_1
 for na in $(find /usr/ports/mail/faces/work/faces/scripts -type f)  /usr/po=
 rts/mail/faces/work/faces/faces.man /usr/ports/mail/faces/work/faces/face_u=
 pdate.1 ; do  /bin/cp $na $na.orig;  /usr/bin/sed "s%/usr/local%/usr/X11R6%=
 " $na.orig > $na;  done;  for na in /usr/ports/mail/faces/work/faces/Makefi=
 le=20
 /usr/ports/mail/faces/work/faces/Faces.ad; do  /bin/cp $na $na.orig; =20
 /usr/bin/sed "s%rplay%rplay%" $na.orig > $na;  done;  for na in=20
 /usr/ports/mail/faces/work/faces/Makefile=20
 /usr/ports/mail/faces/work/faces/x11.c; do  /bin/cp $na $na.orig2; =20
 /usr/bin/sed "s%/usr/X11R6%/usr/X11R6%" $na.orig2 > $na;  done
 =3D=3D=3D>  Configuring for faces-1.6.1_1
 =3D=3D=3D>  Building for faces-1.6.1_1
 yacc -d address.y
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c y.tab.c -o address.o
 rm -f y.tab.c
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c get.c
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c main.c
 main.c: In function `searchfacedb':
 main.c:814: warning: passing arg 1 of `strcpy' from incompatible pointer ty=
 pe
 main.c:816: warning: passing arg 1 of `stat' from incompatible pointer type
 main.c:819: warning: passing arg 2 of `strcpy' from incompatible pointer ty=
 pe
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c mon.c
 mon.c: In function `fgetheader':
 mon.c:283: warning: assignment makes pointer from integer without a cast
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c parsefrom.c
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c rec.c
 rec.c: In function `Malloc':
 rec.c:33: warning: assignment makes pointer from integer without a cast
 cc -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CMD=3D\"/usr=
 /local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/share/faces\"=
        -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/var/mail\"  =
          -I/usr/X11R6/include   -c x11.c
 (cd compface; make   BINDIR=3D/usr/X11R6/bin LIBDIR=3D/usr/X11R6/lib  INCDI=
 R=3D/usr/X11R6/include MANDIR=3D/usr/X11R6/man CC=3Dcc  NOINDEX=3D SYSV=3D)
 cc -O2 -pipe    -c arith.c -o arith.o
 cc -O2 -pipe    -c file.c -o file.o
 cc -O2 -pipe    -c compress.c -o compress.o
 cc -O2 -pipe    -c gen.c -o gen.o
 cc -O2 -pipe    -c uncompface.c -o uncompface.o
 building standard compface library
 ranlib libcompface.a
 cc -fpic -DPIC -O2 -pipe    -c arith.c -o arith.So
 cc -fpic -DPIC -O2 -pipe    -c file.c -o file.So
 cc -fpic -DPIC -O2 -pipe    -c compress.c -o compress.So
 cc -fpic -DPIC -O2 -pipe    -c gen.c -o gen.So
 cc -fpic -DPIC -O2 -pipe    -c uncompface.c -o uncompface.So
 building shared library libcompface.so.1
 cc -O2 -pipe    -c cmain.c -o cmain.o
 cc -O2 -pipe    -c compface.c -o compface.o
 cc -O2 -pipe    -o compface cmain.o compface.o -L./ -lcompface
 cc -O2 -pipe    -c uncmain.c -o uncmain.o
 cc -O2 -pipe    -o uncompface uncmain.o -L./ -lcompface
 Warning: Object directory not changed from original=20
 /usr/ports/mail/faces/work/faces/compface
 (cd filters; make   BINDIR=3D/usr/X11R6/bin LIBDIR=3D/usr/X11R6/lib  INCDIR=
 =3D/usr/X11R6/include MANDIR=3D/usr/X11R6/man CC=3Dcc  NOINDEX=3D SYSV=3D)
 cc -O2 -pipe     -c icon2ikon.c
 cc -o icon2ikon -O2 -pipe     icon2ikon.o
 cc -O2 -pipe     -c ikon2icon.c
 cc -o ikon2icon -O2 -pipe     ikon2icon.o
 ikon2icon.o: In function `read_blit':
 ikon2icon.o(.text+0x110): warning: this program uses gets(), which is unsaf=
 e.
 cc -O2 -pipe     -c rs2icon.c
 rs2icon.c:24: warning: garbage at end of `#ifdef' argument
 cc -o rs2icon -O2 -pipe     rs2icon.o
 cc -o xfaces -O2 -pipe  -pipe -fwritable-strings -DAUDIO_SUPPORT -DAUDIO_CM=
 D=3D\"/usr/local/bin/rplay\"   -DDNSLOOKUP     -DFACEDIR=3D\"/usr/X11R6/sha=
 re/faces\"       -DNISLOOKUP              -DNO_43SELECT  -DSPOOLDIR=3D\"/va=
 r/mail\"           -I/usr/X11R6/include   address.o get.o main.o mon.o pars=
 efrom.o rec.o x11.o  -L./compface -lcompface   -L/usr/X11R6/lib -lX11=20
 /usr/X11R6/lib/libX11.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/libX11.so: undefined reference to `pthread_cond_init'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_unlock'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_self'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_destroy'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_lock'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_wait'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_destroy'
 /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_init'
 *** Error code 1
 
 Stop in /usr/ports/mail/faces/work/faces.
 *** Error code 1
 
 Stop in /usr/ports/mail/faces.
 *** Error code 1
 
 Stop in /usr/ports/mail/faces.
 *** Error code 1
 
 Stop in /usr/ports/mail/faces.
 
 
 > What version of XFree?
 
 XFree86-libraries-4.1.0
 
 	Do I need all of X installed to use faces?  All I'm trying to do=20
 is install XEmacs.  <:~)  This box hasn't been rebuilt in quite a long=20
 time, just upgraded constantly.  Once upon a time I installed X by hand=20
 and I wonder if it's a stale header file someplace.  Think that's=20
 possible?  If so, any hints as to what header file?  -sc
 
 --=20
 Sean Chittenden
 
 --C+ts3FVlLX8+P6JN
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Comment: Sean Chittenden <sean@chittenden.org>
 
 iEYEARECAAYFAjt3WiQACgkQn09c7x7d+q32DACdG1pS3wplV4WEwW+gi30R7YZK
 +yUAoJ9pE4Sa4Val8WMPG+aj7OFcTh9t
 =l3St
 -----END PGP SIGNATURE-----
 
 --C+ts3FVlLX8+P6JN--
State-Changed-From-To: open->feedback 
State-Changed-By: dwcjr 
State-Changed-When: Fri Aug 31 07:21:42 PDT 2001 
State-Changed-Why:  


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28551 

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: freebsd-gnats-submit@FreeBSD.org, sean@chittenden.org
Cc:  
Subject: Re: ports/28551: ports/mail/faces doesn't build (linking with pthreads broken)
Date: Fri, 31 Aug 2001 09:21:34 +0000

 Have you tried reinstalling the X libs and try to clean out stale files?
 
 

From: Sean Chittenden <sean@chittenden.org>
To: dwcjr@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/28551: ports/mail/faces doesn't build (linking with pthreads broken)
Date: Mon, 3 Sep 2001 16:53:39 -0700

 > Synopsis: ports/mail/faces doesn't build (linking with pthreads broken)
 
 	The problem turns out to be with XFree-4-Libraries not being
 built with the pth library.  I had the exact same problem when trying to
 build postgresql with TCL support.  Is there any way to have faces (and
 TCL) detect a non-threaded version of the XFree-4 libs?  If so, that
 would seem to be the correct solution to this problem.  -sc
 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dwcjr
 > State-Changed-When: Fri Aug 31 07:21:42 PDT 2001
 > State-Changed-Why: 
 > 
 > 
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28551
 
 -- 
 Sean Chittenden
Responsible-Changed-From-To: dwcjr->freebsd-ports 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Sat Sep 15 22:57:30 PDT 2001 
Responsible-Changed-Why:  
XFree86-4-libraries problem 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28551 

From: Pete Fritchman <petef@databits.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/28551: ports/mail/faces doesn't build (linking with pthreads broken)
Date: Tue, 6 Nov 2001 12:41:10 -0500

 Is this still an issue?  I remember we had a long discussion about this,
 but my private mail archive is currently down at the moment and I don't
 remember what we concluded.
 
 -pete
 
 --
 Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)]
 finger petef@databits.net for PGP key
State-Changed-From-To: feedback->closed 
State-Changed-By: ade 
State-Changed-When: Fri Apr 12 20:37:42 PDT 2002 
State-Changed-Why:  
Timeout (5 months) in feedback. 


Responsible-Changed-From-To: freebsd-ports->ade 
Responsible-Changed-By: ade 
Responsible-Changed-When: Fri Apr 12 20:37:42 PDT 2002 
Responsible-Changed-Why:  
My fault[tm] 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28551 
>Unformatted:
