Undefined symbol pthread_create?
I updated my ports tree 3 days ago, and did portupgrade -a successfuly. I'm trying to play an mp3 file with this command: %padsp mpg123 test.mp3 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3. Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! /libexec/ld-elf.so.1: /usr/local/lib/libpulse.so.0: Undefined symbol pthread_create Can it be that audio/pulseaudio is broken? Looks like a missing dependency or a missing patch ( -lpthread? ) of the source code. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Undefined symbol pthread_create?
Laszlo Nagy wrote: I updated my ports tree 3 days ago, and did portupgrade -a successfuly. I'm trying to play an mp3 file with this command: %padsp mpg123 test.mp3 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3. Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! /libexec/ld-elf.so.1: /usr/local/lib/libpulse.so.0: Undefined symbol pthread_create Can it be that audio/pulseaudio is broken? Looks like a missing dependency or a missing patch ( -lpthread? ) of the source code. Thanks, Laszlo Did you upgrade your system recently or were compat-v.x packages removed? Also, how was pulseaudio installed (package, port, etc)? The pthread lib shouldn't be missing because it is a part of the system which can be compiled in easily using gcc -lpthread. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Undefined symbol pthread_create?
Did you upgrade your system recently or were compat-v.x packages removed? Also, how was pulseaudio installed (package, port, etc)? The pthread lib shouldn't be missing because it is a part of the system which can be compiled in easily using gcc -lpthread. messias# uname -a FreeBSD messias 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #5: Fri Feb 16 22:41:04 CET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NEPTUNUS i386 The system was updated with cvsup + make buildworld + make buildkernel on Feb 16. So it should not be a problem. The ports tree was updated on Feb 16. I also ran portupgrade -a, it finished on Feb 18. PulseAudio was installed from the ports tree today, it went fine. messias# pulseaudio --version pulseaudio 0.9.4 Yes, I'm aware of that -plthread is missing, probably /usr/local/lib/libpulse.so is missing that. So do you think it is a bug in libpulse.so? Should I contact [EMAIL PROTECTED] Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: zSQLgate fails with 'Undefined symbol pthread_create'
Hello! Just for the next guy looking for a solution to this in the archives - To get zSQLgate working on FreeBSD 4.11, I had to build the net/yaz port without threads support. To achieve this, I added '--disable-threads' to the port's Makefile. I'm not sure what causes it, because the yaz port seems to correctly pick up the necessary -pthread compiler option. However, when you later try to load libyazthread.so.2, you get error messages such as 'Undefined symbol pthread_create' or 'Undefined symbol pthread_mutex_lock' After adding '--disable-threads' I no longer get these errors and zSQLgate seems to start successfully. -- Toomas Aas |arvutivõrgu peaspetsialist | head specialist on computer networks| |Tartu Linnakantselei | Tartu City Office | - +372 736 1274 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [zSQLgate] Re: zSQLgate fails with 'Undefined symbol pthread_create'
Date: Mon, 25 Apr 2005 17:19:38 +0300 From: Toomas Aas [EMAIL PROTECTED] Just for the next guy looking for a solution to this in the archives - To get zSQLgate working on FreeBSD 4.11, I had to build the net/yaz port without threads support. To achieve this, I added '--disable-threads' to the port's Makefile. Excellent! If only _all_ reqeusts for help were so easy to deal with :-) Thanks for passing on the results of your experimentation. _/|____ /o ) \/ Mike Taylor [EMAIL PROTECTED] http://www.miketaylor.org.uk )_v__/\ Unhappily, it coincided with Gascoigne attempting to set fire to best friend Jimmy 'Five Bellies' Gardner's nose in a Newcastle nightclub -- The Guardian, 13th September 1998 -- Listen to free demos of soundtrack music for film, TV and radio http://www.pipedreaming.org.uk/soundtrack/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
zSQLgate fails with 'Undefined symbol pthread_create'
Hello! I'm trying to install the evaluation version of zSQLgate (http://sql.z3950.org) on FreeBSD 4.11. I have the following prerequisites installed from FreeBSD ports perl-5.8.6_2 (use.perl port has been run) p5-DBI-1.48 p5-DBD-mysql-2.9006 p5-Net-Z3950-SimpleServer-0.08 yaz-2.0.32 I downloaded the zSQLgate distribution (http://sql.z3950.org/download/Net-Z3950-DBIServer-0.11.tar.gz) unpacked it and ran perl Makefile.PL make These commands seemed to complete succesfully. However, the next command, 'make test', fails with following output: PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.6 -Iblib/lib -Iblib/arch test.pl 1..1 Can't load '/usr/local/lib/perl5/site_perl/5.8.6/mach/auto/Net/Z3950/SimpleServer/SimpleServer.so' for module Net::Z3950::SimpleServer: /usr/local/lib/libyazthread.so.2: Undefined symbol pthread_create at /usr/local/lib/perl5/5.8.6/mach/DynaLoader.pm line 230. at blib/lib/Net/Z3950/DBIServer.pm line 5 Compilation failed in require at blib/lib/Net/Z3950/DBIServer.pm line 5. BEGIN failed--compilation aborted at blib/lib/Net/Z3950/DBIServer.pm line5. Compilation failed in require at test.pl line 11. BEGIN failed--compilation aborted at test.pl line 11. not ok 1 *** Error code 255 Stop in /storage/home/toomas/Net-Z3950-DBIServer-0.11. From man pthread I understand that I somehow need to pass '-pthread' to the linker. I tried adding it to LDFLAGS in the Makefile.PL, but this doesn't seem to help. Here's the original Makefile.PL. Can anyone tell me how to modify it to get it working with FreeBSD? -- start Makefile.PL -- use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( NAME = 'Net::Z3950::DBIServer', VERSION_FROM = 'DBIServer.pm', PREREQ_PM= { 'Net::Z3950::SimpleServer' = 0.05, 'DBI' = 1.20, # I don't think these should be prerequisites: see code in DBIServer/XML.pm # 'XML::LibXML' = 1.53, # 'XML::LibXSLT' = 1.52, }, AUTHOR = 'Mike Taylor [EMAIL PROTECTED]', ABSTRACT = 'Gateway between Z39.50 and the RDBMS of your choice', EXE_FILES= [ 'zSQLgate' ], ); sub MY::postamble { q[ docs: cd doc; make docsclean: cd doc; make clean ] } -- end Makefile.PL -- -- Toomas Aas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]