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 error [Solved inline issue]

General support and discussion of Eggdrop bots.
Post Reply
p
pwpreacher
Voice
Posts: 2
Joined: Thu Jun 25, 2015 6:19 pm

Linking error [Solved inline issue]

Post by pwpreacher »

(probably because I am running on 3 hours sleep)

Just setting up eggdrop on new server,
./configure runs fine.
make config runs fine.
make has some warnings but seems to compile, and then linker throws an error

....
....

In file included from ../../src/main.h:107:0,
from strftime.c:26:
../../src/proto.h:274:12: warning: inline function ‘open_listen’ declared but never defined
inline int open_listen(int *);
^
make[2]: Leaving directory '/home/triviaswift/eggdrop1.6.21/src/compat'

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

Linking eggdrop (standard build).

gcc -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o match.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 -L/lib64 -ltcl8.6 -lm -ldl -lnsl -lpthread md5/md5c.o compat/*.o `cat mod/mod.xlibs`
main.o: In function `garbage_collect':
/home/triviaswift/eggdrop1.6.21/src/./main.c:710: undefined reference to `garbage_collect_tclhash'
modules.o:(.data+0x2a0): undefined reference to `open_listen'
tcldcc.o: In function `tcl_listen':
/home/triviaswift/eggdrop1.6.21/src/tcldcc.c:942: undefined reference to `open_listen'
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target '../eggdrop' failed
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory '/home/triviaswift/eggdrop1.6.21/src'
Makefile:202: recipe for target 'modegg' failed
make: *** [modegg] Error 2
Last edited by pwpreacher on Fri Jun 26, 2015 4:56 am, edited 1 time in total.
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
p
pwpreacher
Voice
Posts: 2
Joined: Thu Jun 25, 2015 6:19 pm

Post by pwpreacher »

worked like a charm

Test run of ./eggdrop -v:
Eggdrop v1.6.21 (C) 1997 Robey Pointer (C) 2011 Eggheads
Configured with: 'CFLAGS=-std=gnu89'
handlen=9

Eggdrop successfully compiled:




All I can say is thank you!!!!!!!!!!!

just got to install a few bots,

hugs


Preacher
User avatar
aslpls
Halfop
Posts: 43
Joined: Mon May 02, 2016 9:41 am

Post by aslpls »

how did you do it?

i tried but it didn't work.
Post Reply