xchat 2.0.8 plugin compile error

Find out how to get that @*&^$&@ thing to compile!

xchat 2.0.8 plugin compile error

Postby tosk » Mon Mar 29, 2004 10:40 pm

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.
tosk
 
Posts: 1
Joined: Mon Mar 29, 2004 8:00 pm
Location: Somewhere

Re: xchat 2.0.8 plugin compile error

Postby <Pete> » Tue Apr 13, 2004 5:12 am

Did you compile that manually?

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

(GCC compile flags that is).
<Pete>
 


Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 4 guests

cron