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.

eggdrop 1.6.6 wont compile on SunOS..err link

Old posts that have not been replied to for several years.
Locked
l
leith

Post by leith »

First 1.6.5 wouldn't compile, so I downloaded 1.6.6, toi fix the problem, but I get a weird error, during the linking.

---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop... (static version)

gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o
dccutil.o dns.o flags.o language.o main.o mem.o misc.o misc_file.o modules.o net
.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o us
ers.o mod/*.o -L/usr/local/lib -ltcl -lm -ldl -ldns -lnsl -lsocket md5/md5c.o c
ompat/*.o `cat mod/mod.xlibs`
misc.o: In function `str_nutf8tounicode':
/home/ugrad/leith/eggdrop1.6.6/src/misc.c:386: undefined reference to `Tcl_SaveR
esult'
/home/ugrad/leith/eggdrop1.6.6/src/misc.c:392: undefined reference to `Tcl_UtfTo
ExternalDString'
/home/ugrad/leith/eggdrop1.6.6/src/misc.c:397: undefined reference to `Tcl_Resto
reResult'
tcl.o: In function `init_tcl':
/home/ugrad/leith/eggdrop1.6.6/src/tcl.c:575: undefined reference to `Tcl_UtfToL
ower'
/home/ugrad/leith/eggdrop1.6.6/src/tcl.c:576: undefined reference to `Tcl_SetSys
temEncoding'
/home/ugrad/leith/eggdrop1.6.6/src/tcl.c:590: undefined reference to `Tcl_SetSys
temEncoding'
/home/ugrad/leith/eggdrop1.6.6/src/tcl.c:603: undefined reference to `Tcl_GetEnc
oding'
collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/home/ugrad/leith/eggdrop1.6.6/src'
make: *** [static] Error 2
(leith) ~/eggdrop1.6.6 %

Is this a problem with Tcl, or I am being somewhat stupid?

TIA,
leith
C
Chrysalis
Voice
Posts: 32
Joined: Wed Oct 10, 2001 8:00 pm
Location: UK

Post by Chrysalis »

what version of tcl is compiled on your box?
S
SniperAC

Post by SniperAC »

1.6.6 is out
:mad: just sayin
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

1.6.6 is out:???:

Got me confuzzled here.

1.6.6 has been available for some time now. He stated in his post, that he is trying to use 1.6.6.
l
leith

Post by leith »

Chrysalis,
I am running tcl 8.3, I know 8.05 works best, but I shouldn't see any probs with 8.3, right? I seem to recall 1.6.4 and before on the 1.6.x tree running fine under SunOS. Any Ideas?

SniperAC,
I am running 1.6.6, I said that in my first post.

TIA,
leith
C
Chair

Post by Chair »

I am on SunOS
(SunOS cosmos 5.5.1 Generic_103640-24 sun4m sparc SUNW,SPARCstation-10)

When I try to compile, I get this funky message.

---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop...

gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o
dccutil.o dns.o flags.o language.o main.o mem.o misc.o misc_file.o modules.o net
.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o us
ers.o -L/usr/lib -ltcl -lm -ldl -lnsl -lsocket md5/md5c.o compat/*.o `cat mod/
mod.xlibs`
strip ../eggdrop
Successful compile: eggdrop

make[1]: Leaving directory `/export/home/chair/eggdrop1.6.6/src'

Eggdrop v1.6.6 (C)1997 Robey Pointer (C)2001 Eggheads
-rwxr-xr-x 1 chair other 354620 Oct 22 17:50 eggdrop
make[1]: Entering directory `/export/home/chair/eggdrop1.6.6/src/mod'
make[2]: Entering directory `/export/home/chair/eggdrop1.6.6/src/mod/assoc.mod'
gcc -pipe -kPIC -g -O2 -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE_CONFI
G_H -DMAKING_MODS -c .././assoc.mod/assoc.c
gcc: unrecognized option `-kPIC'
mv assoc.o ../
gcc -pipe -o ../../../assoc.so ../assoc.o -L/usr/lib -ltcl -lm -ldl -lnsl -lsock
et
Undefined first referenced
symbol in file
main /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.
1/2.8.1/crt1.o
ld: fatal: Symbol referencing errors. No output written to ../../../assoc.so
make[2]: *** [../../../assoc.so] Error 1
make[2]: Leaving directory `/export/home/chair/eggdrop1.6.6/src/mod/assoc.mod'
make[1]: *** [assoc.mod_so] Error 2
make[1]: Leaving directory `/export/home/chair/eggdrop1.6.6/src/mod'
make: *** [modules] Error 2



hmmm... i would love to get eggdrop1.6.6 to compile... i'd hate to ditch my provider just because of this... :sad:
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

chair, when compiling, make in static mode.

EG:

instead of typing
./configure
make config
make
make install
Use
./configure
make config
make static
make install
C
Chair

Post by Chair »

I still got this lovely error message when trying to compile using make static. Any more ideas before I go find myself a new shell provider with a different OS?



gcc -pipe -g -O2 -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -DSTATIC -c strftime.c
make[2]: Leaving directory `/export/home/chair/eggdrop1.6.6/src/compat'
---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop... (static version)

gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o main.o mem.o misc.o misc_file.o modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o users.o mod/*.o -L/usr/lib -ltcl -lm -ldl -lnsl -lsocket md5/md5c.o compat/*.o `cat mod/mod.xlibs`
gcc: Internal compiler error: program ld got fatal signal 10
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/export/home/chair/eggdrop1.6.6/src'
make: *** [static] Error 2
C
Chair

Post by Chair »

Ok, stupid me. That error was caused by me violating my quota. Oops.

Anyways, I got it to compile using make static. Thanks for your help.

What is done differently when 'make static' is used?
Locked