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

Bug#42944: I've found the cause of Debian bug 42944.



Hi!

  This nasty linker bug:

BUG IN DYNAMIC LINKER ld.so: dl-version.c: 210: _dl_check_map_versions:
Assertion `needed != ((void *)0)' failed!

...seems to have occured in gazillions of programs on loads of Linux
distro's - heck there is even a fortune cookie about it!

I spent an evening researching it and finally tracked down this
bug report:

http://x40.deja.com/getdoc.xp?AN=545891503&CONTEXT=958448712.1788280849&hitnum=29

The detail of the explanation kinda escapes me - but essentially, it
seems to boil down to a problem with linking to libraries that in turn
require the pthreads library.

This fits exactly with my symptoms reported earlier.

On one machine, I linked with Mesa - which in turn links with pthreads.
On the other machine, I linked with nVidia's OpenGL for Linux - which
(presumably) does not.

Changing my Makefile to force a link to -lpthread fixed the problem
completely.

Tadaaaa!!           
-- 
Steve Baker                  http://web2.airmail.net/sjbaker1
sjbaker1@airmail.net (home)  http://www.woodsoup.org/~sbaker
sjbaker@hti.com      (work)



Reply to: