This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: systemtap 1.8 build fails


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/20/2012 12:50 PM, Mark Wielaard wrote:
> On Tue, 2012-06-19 at 22:50 +0200, Jiri Slaby wrote:
>> I have to add the pthread lib to be linked with stap_serverd to
>> be able to build systemtap. Like in this diff: 
>> https://build.opensuse.org/package/view_file?file=link-with-pthread.patch&package=systemtap&project=devel%3Atools&rev=257b076be8a17310ddf6787741dae3c3
>>
>>
>> 
Otherwise a build error occurs:
>> CXXLD  stap-serverd .../ld: stap_serverd-stap-serverd.o:
>> undefined reference to symbol 'sem_getvalue@@GLIBC_2.2.5' .../ld:
>> note: 'sem_getvalue@@GLIBC_2.2.5' is defined in DSO 
>> /lib64/libpthread.so.0 so try adding it to the linker command
>> line /lib64/libpthread.so.0: could not read symbols: Invalid
>> operation collect2: error: ld returned 1 exit status
>> 
>> This is because sem_getvalue needs -lpthread, according to the
>> man page.
> 
> You are right. It is better to add that explicitly since we are
> using sem_getvalue explicitly in our own code. But normally
> nss_LIBS will include that flag. Did something change so that
> linking against nss doesn't include that anymore? If nss isn't
> available stap-serverd shouldn't be build.

nss no longer produces -lpthread here (it used to):
$ pkg-config --libs nss
- -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4

> I added the following. Hopefully similar to what you did (the above
> URL doesn't work for me).

Yes, it's exactly what I did.

thanks,
- -- 
js
suse labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP4bCCAAoJEL0lsQQGtHBJFtAP/RhyJFydk7T/BGYOEx/uhB7U
jXOBKQOS//pgopqoBMuFurVxGuNvwFzItnYGb5xGVnUPJoQoRI8kOjMOZz1aWriH
qb0SRGI78MjuWXU4fm4R6vkKsADBHej7T1bLI0hlptuuB7ueMvDbR4NeQyKRW7pO
QpgMbsBtqKypsIpa2A5G/fbU5isWEYKmtAI6xQx+K75EObCIrY9u7peymA2D+J9N
uI2+7p5LXF0ZkuDVsv0F2sR07apMi0jr6aJpR0WvWQD/bBQxoy7mvUCLXxl+XEuT
cmajyVTPP3g0f6ind45A2etbq/b2Pg6PYXH0HWk/qYWDBduVQ0PmAiwjFJmBpbvO
zLpkMkFXEP7y8N6hlcTsaDyxUmWDlU60sQoMQZ6QiQcgeiwwZ8y47yrlPTRTgswt
k02I5Gp8LA2yk+GvnpZFMhdf9iimzYc2V3yxrdzn+WokUiSO5NZ4ZRQhmH999S4I
gu/lWNvcZqaHupACU1+MUFoAQb4M8EnKgzug4skjslQHpBvF6N+J3UGcCctK5puq
j8W9z+iEFa0mpI7G9PLXKSsVB4CixeiM3NrgcfR9TGK0r91tszceYheiYrGPejYT
EOw2TjGVvqWxUfv3DoLWX40ncSCDNY3CHq3tOu29ijpy/EgCHw5+KgpNFCRh/6rR
wYh9El/9Gio9Iyzd3Dbg
=mMap
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]