gcc linker issue


i am perplexing library wraps libpurple (you shouldn't need know anything libpurple assistance here). libpurple spin loads "plugins" only .so's accessed around something dlopen. those plugins spin behind functions libpurple.



i build library only fine, nonetheless calls suitable libpurple init function, libpurple tries bucket plugin, i an blunder following:




symbol lookup error: /usr/local/lib/purple-2/autoaccept.so: undefined
symbol: purple_user_dir




purple_user_dir duty tangible libpurple. i build way (not library) links libpurple there problems. i have attempted controlling -export-dynamic seem help. here build command:



gcc -export-dynamic -i/usr/local/include/libpurple -i/usr/include/python2.5 -dh\
ave_config_h -i. -dstandalone -dbr_pthreads=0 -ddatadir=\"/usr/local/share\" -d\
libdir=\"/usr/local/lib/purple-2/\" -dlocaledir=\"/usr/local/share/locale\" -ds\
ysconfdir=\"/usr/local/etc\" -wall -waggregate-return -wcast-align -wdeclarati\
on-after-statement -wendif-labels -werror-implicit-function-declaration -wextra\
-wno-sign-compare -wno-unused-parameter -winit-self -wmissing-declarations -wm\
issing-noreturn -wmissing-prototypes -wpointer-arith -wundef -wp,-d_fortify_sou\
rce=2 -pthread -i/usr/include/glib-2.0 -i/usr/lib/glib-2.0/include -i/usr/inc\
lude/dbus-1.0 -i/usr/lib/dbus-1.0/include -i/usr/include/glib-2.0 -i/usr/lib/gl\
ib-2.0/include -i/usr/include/libxml2 -g -g -o2 -c -o spurple.o spurple.c

gcc -shared -g -o2 -wl,--export-dynamic -pthread
../../libpurple/.libs/libpurple.so -o spurple.so spurple.o
-wl,--export-dynamic /usr/local/lib/libpurple.so
-ldbus-glib-1 -ldbus-1 /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so
-ldl /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so
/usr/lib/libxml2.so -lm -lpython2.5 -lutil -lpthread -lnsl -lresolv


thanks.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?