pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/46663: php zlib undefined weak symbol



The following reply was made to PR pkg/46663; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/46663: php zlib undefined weak symbol
Date: Wed, 11 Jul 2012 09:04:30 +0900

 On Tue, 10 Jul 2012 21:40:03 +0900, Takahiro Kambe 
<taca%back-street.net@localhost> wrote:
 
 >  % ldd /usr/pkg/lib/php/20090630/mysqli.so
 > /usr/pkg/lib/php/20090630/mysqli.so:
 >          -lmysqlclient.18 => /usr/pkg/lib/libmysqlclient.so.18
 >          -lpthread.1 => /usr/lib/libpthread.so.1
 >          -lgcc_s.1 => /lib/libgcc_s.so.1
 >          -lc.12 => /usr/lib/libc.so.12
 >          -lz.1 => /usr/lib/libz.so.1
 >          -lssl.9 => /usr/lib/libssl.so.9
 >          -lcrypto.7 => /usr/lib/libcrypto.so.7
 >          -lcrypt.1 => /lib/libcrypt.so.1
 >          -lstdc++.7 => /usr/lib/libstdc++.so.7
 >          -lm.0 => /usr/lib/libm.so.0
 
 Why is it linked against C++ library?
 With mysql-5.1, some tools will be linked against libstdc++,
 but client library is not.
 
 It is known problem on NetBSD-5 (lib/39986).
 workarounds are
   * put C++ modules at the last
   * link main executable with libgcc_s.so
 
 -- 
 OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index