From owner-freebsd-questions Mon Apr 10 18:46:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from thor.afnetinc.com (thor.afnetinc.com [206.40.232.1]) by hub.freebsd.org (Postfix) with ESMTP id A518337B7F8 for ; Mon, 10 Apr 2000 18:46:14 -0700 (PDT) (envelope-from lists@efinley.com) Received: from 206-40-232-100-csc-0.afnetinc.com ([206.40.232.100] helo=SCIENCE1) by thor.afnetinc.com with smtp (Exim 2.05 #1) id 12epka-0006fu-00 for freebsd-questions@FreeBSD.ORG; Mon, 10 Apr 2000 19:45:57 -0600 From: lists@efinley.com (Elliot Finley) To: freebsd-questions@FreeBSD.ORG Subject: Has anyone successfully built a threaded 5.6 perl? Date: Tue, 11 Apr 2000 01:48:29 GMT Organization: Hiawatha Coal Company Reply-To: lists@efinley.com Message-ID: <38fb834e.251908044@mail.afnetinc.com> X-Mailer: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been trying to build a threaded 5.6 perl on FreeBSD 3.4-Stable. =20 I've tried with cc and gcc, and I get the same thing. I'm obviously not linking with whatever library contains all the pthread functions.... but the man page for pthread says that giving gcc the -pthread argument should make it link against the thread library. Any help would be appreciated. ------------------------------------ gcc -pthread -Wl,-E -L/usr/local/lib -o miniperl miniperlmain.o opmini.o libperl.a -lm -lc_r -lcrypt libperl.a(perl.o): In function `perl_destruct': perl.o(.text+0x503): undefined reference to `__pthread_detach' libperl.a(util.o): In function `Perl_my_popen': util.o(.text+0x2a75): undefined reference to `__pthread_fork' util.o(.text+0x2ac7): undefined reference to `__pthread_sleep' util.o(.text+0x2c74): undefined reference to `__pthread_read' libperl.a(util.o): In function `Perl_wait4pid': util.o(.text+0x3008): undefined reference to `__pthread_waitpid' libperl.a(pp.o): In function `S_seed': pp.o(.text+0x4d15): undefined reference to `__pthread_read' libperl.a(pp_sys.o): In function `Perl_pp_sselect': pp_sys.o(.text+0x1b83): undefined reference to `__pthread_select' libperl.a(pp_sys.o): In function `Perl_pp_sysread': pp_sys.o(.text+0x3160): undefined reference to `__pthread_read' libperl.a(pp_sys.o): In function `Perl_pp_send': pp_sys.o(.text+0x36e2): undefined reference to `__pthread_write' libperl.a(pp_sys.o): In function `Perl_pp_connect': pp_sys.o(.text+0x4a4f): undefined reference to `__pthread_connect' libperl.a(pp_sys.o): In function `Perl_pp_accept': pp_sys.o(.text+0x4ccd): undefined reference to `__pthread_accept' libperl.a(pp_sys.o): In function `Perl_pp_fork': pp_sys.o(.text+0x7729): undefined reference to `__pthread_fork' libperl.a(pp_sys.o): In function `Perl_pp_system': pp_sys.o(.text+0x7a8b): undefined reference to `__pthread_sleep' pp_sys.o(.text+0x7b8c): undefined reference to `__pthread_read' libperl.a(pp_sys.o): In function `Perl_pp_sleep': pp_sys.o(.text+0x867c): undefined reference to `__pthread_sleep' libperl.a(doio.o): In function `Perl_do_aexec5': doio.o(.text+0x2452): undefined reference to `__pthread_write' libperl.a(doio.o): In function `Perl_do_exec3': doio.o(.text+0x28da): undefined reference to `__pthread_write' *** Error code 1 --=20 Elliot (efinley@efinley.com) Weird Science! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message