Hi, I'm trying to compile eggdrop 1.6.8 on a Solaris 2.6 (SunOS 5.6) system.
I am using gcc 3.0.3, gnu binutils (but also tried the stock solaris ones) and TCL 8.3.4.
I have disabled the -O2 flag, and eggdrop compiles fine. However, when it tries to build modules, I get this error on the first module (regardless of whether it happens to be assoc or something else):
Successful compile: eggdrop
Eggdrop v1.6.8 (C) 1997 Robey Pointer (C) 2002 Eggheads
-rwxr-xr-x 1 root other 543804 Jan 23 10:40 eggdrop
gcc -pipe -fPIC -g -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE_CONFIG_H -DMAKING_MODS -c .././assoc.mod/assoc.c
mv assoc.o ../
gcc -pipe -o ../../../assoc.so ../assoc.o -L/usr/local/lib -ltcl8.3 -lm -ldl -ldns -lnsl -lsocket
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.3/crt1.o: In function `nope':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.3/crt1.o(.text+0x5c): undefined reference to `main'
collect2: ld returned 1 exit status
*** Error code 1
Any idea how to fix this?