Page 1 of 1

xchat 2.0.8 plugin compile error

PostPosted: Mon Mar 29, 2004 10:40 pm
by tosk
Howdy.

I managed to get xchat 2.0.8 compiled and running without incident, but none of it's plugins will compile. The linker (ld) throws warnings up about undefined symbols.

Here's what I get:
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>gcc -O3 -Wall -fPIC -DVER_MINOR=0 -DVER_MAJOR=1 -DVER_PATCH=5 -DVER_STRING=\"1.0.5\" -Ddlsym=dlsym_prepend_underscore -I/sw/include -DUSE_UPRECORD -L/sw/lib -ldl -o libxsys-1.0.5.so xsys.o parse.o
ld: Undefined symbols:
_main
_xchat_commandf
_xchat_hook_command
_xchat_printf
make: *** [libxsys-1.0.5.so] Error 1</pre>[/quote]

This is only one of the many plugins I've tried to compile. Each of the other produce similar results, mostly varying in the specific symbols that ld says are undefined.

Thanks.

Re: xchat 2.0.8 plugin compile error

PostPosted: Tue Apr 13, 2004 5:12 am
by <Pete>
Did you compile that manually?

I think you need flags: -Wl,--export-dynamic
and maybe also: -shared

(GCC compile flags that is).