Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Apr 2000 01:48:29 GMT
From:      lists@efinley.com (Elliot Finley)
To:        freebsd-questions@FreeBSD.ORG
Subject:   Has anyone successfully built a threaded 5.6 perl?
Message-ID:  <38fb834e.251908044@mail.afnetinc.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38fb834e.251908044>