egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Linking error [Solved inline issue]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
pwpreacher
Voice


Joined: 25 Jun 2015
Posts: 2

PostPosted: Thu Jun 25, 2015 6:27 pm    Post subject: Linking error [Solved inline issue] Reply with quote

(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.oSad.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
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Jun 25, 2015 9:03 pm    Post subject: Reply with quote

Is this it?


http://eggwiki.org/Inline
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
pwpreacher
Voice


Joined: 25 Jun 2015
Posts: 2

PostPosted: Fri Jun 26, 2015 4:56 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
asL_pLs
Voice


Joined: 02 May 2016
Posts: 18

PostPosted: Mon May 02, 2016 9:53 am    Post subject: Reply with quote

how did you do it?

i tried but it didn't work.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber