Can't upgrade misc/shared-mime-info
Justin Meyer
zhengyi at anarkismus.net
Tue Feb 20 18:39:29 UTC 2007
Hi all,
I'm not sure if this should go to -ports, so I thought I'd start here.
As part of a portupgrade, shared-mime-info-0.19 is supposed to be
upgraded to -0.20. This is failing w/ a linker error, apparently like
this:
cc -O -pipe -march=athlon-xp -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wwrite-strings -L/usr/local/lib -o
update-mime-database update_mime_database-
update-mime-database.o -L/usr/local/lib -lxml2 -lglib-2.0 -liconv
/usr/local/lib/libxml2.so: undefined reference to `pthread_equal'
gmake[1]: *** [update-mime-database] Error 1
gmake[1]: Leaving directory
`/usr/ports/misc/shared-mime-info/work/shared-mime-info-0.20'
gmake: *** [check-recursive] Error 1
*** Error code 2
Stop in /usr/ports/misc/shared-mime-info.
What's bugging me here is that libxml2.so is *not* linked against
pthread:
# ldd /usr/local/lib/libxml2.so
/usr/local/lib/libxml2.so:
libz.so.3 => /lib/libz.so.3 (0x282bf000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x282d0000)
libm.so.4 => /lib/libm.so.4 (0x283c0000)
... although strings shows me that there are nonetheless at least
references to pthread_* functions in there:
# strings /usr/local/lib/libxml2.so.5 |grep pthread_
pthread_mutex_init
pthread_mutex_destroy
pthread_mutex_lock
pthread_mutex_unlock
pthread_cond_init
pthread_cond_destroy
pthread_self
pthread_equal
...
I made a point of forcing a recompile of libxml2, making sure that I
wasn't defining WITH_THREADS. Still no dice, so what gives?
Can anyone tell me:
1) what's going on, and how to fix it? Or
2) what more info could I usefully provide about my system? or
3) that this should definitely go to -ports? :)
Thanks!
Justin
More information about the freebsd-questions
mailing list