From owner-freebsd-questions Sun Aug 25 13:55:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC77C37B400; Sun, 25 Aug 2002 13:55:04 -0700 (PDT) Received: from mail.unitec.edu (mail.unitec.edu [216.72.84.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id D120843E6A; Sun, 25 Aug 2002 13:55:00 -0700 (PDT) (envelope-from g.paredes@unitec.edu) Received: from unitec.edu ([127.0.0.1]) by mail.unitec.edu (Netscape Messaging Server 4.15) with ESMTP id H1F35I00.I4F; Sun, 25 Aug 2002 14:48:54 -0600 From: "GERARDO ENRIQUE PAREDES MANCIA" To: "Matt" , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <6edcb3e041e630fd.41e630fd6edcb3e0@unitec.edu> Date: Sun, 25 Aug 2002 14:48:54 -0600 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: en Subject: Re: Re: problems with pthreads X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG it appears to die in the same place albeit with a bit less of errors :) . see: LD_LIBRARY_PATH=../../exports/lib cc -o appres -pthread -pedantic -Dasm=__asm -Wall -Wpointer-arith -L../../exports/lib appres.o -lXt -lSM -lICE -lXext -lX11 -L/usr/X11R6/lib -Wl,-rpath,/usr/X11R6/lib /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_zero_stub_' /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_self_stub_' *** Error code 1 Stop in /usr/ports/x11/XFree86-4-clients/work/xc/programs/appres. *** Error code 1 Stop in /usr/ports/x11/XFree86-4-clients/work/xc/programs. ----- Original Message ----- From: "Matt" Date: Sunday, August 25, 2002 12:58 pm Subject: Re: problems with pthreads > You need to edit the makefile to take out the CFLAG of -ansi and add > in -pthread so it will link with pthread libc_r. > > Best Regards > > http://www.xgforce.com/product.html > --------------------------------------------- > The Next Generation Server Clustering and > Clustered Enterprise Firewall/VPN Solutions. > --------------------------------------------- > ----- Original Message ----- > From: "GERARDO ENRIQUE PAREDES MANCIA" > To: ; > Sent: Sunday, August 25, 2002 4:36 AM > Subject: problems with pthreads > > > > when trying to portupgrade XFree86-clients from 4.2.??? to the > newestversion i > > get this: > > > > > > LD_LIBRARY_PATH=../../exports/lib > cc -O -pipe -march=pentiumpro -ansi -pedantic > > -Dasm=__asm -Wall -Wpointer-arith -I../.. - > I../../exports/include> -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO > -c appres.c > > In file included from appres.c:34: > > /usr/include/stdlib.h:110: warning: ANSI C does not support `long > long'> /usr/include/stdlib.h:114: warning: ANSI C does not support > `long long' > > rm -f appres > > LD_LIBRARY_PATH=../../exports/lib cc -o > appres -ansi -pedantic -Dasm=__asm > > -Wall -Wpointer-arith -L../../exports/lib > appres.o -lXt -lSM -lICE -lXext > > -lX11 -L/usr/X11R6/lib -Wl,-rpath,/usr/X11R6/lib > > ../../exports/lib/libXt.so: undefined reference to > `pthread_cond_signal'> /usr/X11R6/lib/libXThrStub.so.6: undefined > reference to `_Xthr_zero_stub_' > > ../../exports/lib/libX11.so: undefined reference to > `pthread_cond_broadcast' > > /usr/X11R6/lib/libXThrStub.so.6: undefined reference to > `_Xthr_self_stub_'> ../../exports/lib/libXt.so: undefined reference > to `pthread_cond_init' > > ../../exports/lib/libXt.so: undefined reference to > `pthread_mutex_unlock'> ../../exports/lib/libXt.so: undefined > reference to `pthread_self' > > ../../exports/lib/libXt.so: undefined reference to > `pthread_mutex_destroy'> ../../exports/lib/libXt.so: undefined > reference to `pthread_mutex_lock' > > ../../exports/lib/libXt.so: undefined reference to > `pthread_cond_wait'> ../../exports/lib/libXt.so: undefined > reference to `pthread_cond_destroy' > > ../../exports/lib/libXt.so: undefined reference to > `pthread_mutex_init'> *** Error code 1 > > > > > > i get the same errors when trying to compile wxWindows apps with: > > > > g++ -o proggy proggy.cpp `wx-config --libs` `wx-config --cxxflags` > > > > > > however i got my wxwindows apps to compile (with some warnings) > adding -lc_r > > after the above line. > > > > i just recently build the world, i track RELENG_4 on a weekly > basis, is > this > > problem related to it? if don't, please provide me with any > insight how to > fix > > it. > > > > Thanks > > Gerardo > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message