This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Linking problems, eggdrop 1.6.8/Solaris 2.6/TCL 8.3.4/gcc 3.

Old posts that have not been replied to for several years.
Locked
s
stian

Post by stian »

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?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

try compiling it statically (make static)
Locked