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.

Problem with "make" on Snow Leopard/OSX

General support and discussion of Eggdrop bots.
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

Problem with "make" on Snow Leopard/OSX

Post by w0by »

So I can do a ./configure, make config, but once I do make it comes up with this error. I did have a backup of my eggdrop bot's directory from before I formatted and I just copied it into my home directory and it starts right up and logs onto IRC. I'd just like to be able to trouble shoot/learn/understand how to make this install work properly if I wanted to install a newer version or something. I have seen people talk about this error in forums but I've never seen a solution that fixes it. I'm pretty sure I must not have something installed properly or something, I'm not sure though?
\Robert-Makelas-Mac-mini:eggdrop1.6.18 eggdrop$ make

Making module objects for static linking...

make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
make[2]: Nothing to be done for `static'.
Building static.h...
................ done.

Making core eggdrop for static linking...

This may take a while. Go get some runts.

make[2]: Nothing to be done for `md5'.
make[2]: Nothing to be done for `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 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 mod/*.o -L/usr/lib -ltcl8.5 -lm -ldl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
Undefined symbols:
"_res_9_mkquery", referenced from:
_dorequest in dns.o
"_res_9_init", referenced from:
_dns_start in dns.o
"_res_9_dn_expand", referenced from:
_dns_socket in dns.o
_dns_socket in dns.o
_dns_socket in dns.o
_dns_socket in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make: *** [static] Error 2
Robert-Makelas-Mac-mini:eggdrop1.6.18 eggdrop$
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

You'll have to add -lresolv to the link command.
Edit Makefile and locate the line starting with XLIBS=
Add " -lresolv" (without the quotes) to the end of the line, and then run make again.
NML_375
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

re

Post by w0by »

Ahh, thank you so much. As soon as I get home today I am going to try that out. I didn't realize that this website had a user forum, I've been trying to so long to find help but I haven't found anyone that knows about eggdrop yet. I'll let you know if I got it to work. Thanks again.
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

re: hmm

Post by w0by »

Ok, I added the -lresolv in front of this but I'm still getting the same error -
# the actual module objects.
XLIBS = @TCL_LIBS@ @LIBS@ -lresolv
MODULE_XLIBS = @MODULE_XLIBS@
Is that where it was supposed to go?

Thanks for your help again
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Yup,
Could you paste the three lines after "Linking eggdrop (static version)." from your most recent attempt (after editing the Makefile)?
NML_375
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

yes, here you go, thank you

Post by w0by »

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 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 mod/*.o -L/usr/local/lib -ltcl8.5 -lm -ldl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

That's odd...
the -lresolv should've been added to the commandline. What you could try, is to cd to the src directory, and manually type that command adding the -lresolv to the end of the commandline.

Code: Select all

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 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 mod/*.o -L/usr/local/lib -ltcl8.5 -lm -ldl -lresolv md5/md5c.o compat/*.o `cat mod/mod.xlibs`
NML_375
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

Post by w0by »

Do you mean when I type make, I should type make -lresolv, instead?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

No, type the command like in the code block in my previous post.
NML_375
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

Post by w0by »

I don't understand how to edit the code at all, I'm not sure where to look.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

If you'd look at my previous post, I had a "codeblock" with the following content:

Code: Select all

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 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 mod/*.o -L/usr/local/lib -ltcl8.5 -lm -ldl -lresolv md5/md5c.o compat/*.o `cat mod/mod.xlibs`
It is the very same as you posted earlier, but with the added -lresolv
This is what I ment for you to try and execute.
NML_375
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

Post by w0by »

Ok...I typed that into my eggdrop directory and I get:
eggdrop:eggdrop1.6.19 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 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 mod/*.o -L/usr/local/lib -ltcl8.5 -lm -ldl -lresolv md5/md5c.o compat/*.o `cat mod/mod.xlibs`
cat: mod/mod.xlibs: No such file or directory
i686-apple-darwin10-gcc-4.2.1: bg.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: botcmd.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: botmsg.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: botnet.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: chanprog.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: cmds.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: dcc.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: dccutil.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: dns.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: flags.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: language.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: match.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: main.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: mem.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: misc.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: misc_file.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: modules.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: net.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: rfc1459.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: tcl.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: tcldcc.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: tclhash.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: tclmisc.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: tcluser.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: userent.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: userrec.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: users.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: mod/*.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: md5/md5c.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: compat/*.o: No such file or directory
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

From the src directory..
NML_375
w
w0by
Voice
Posts: 14
Joined: Sun Jan 24, 2010 11:55 am

oops sorry, here's what it did when I hit enter

Post by w0by »

eggdrop:eggdrop1.6.19 eggdrop$ cd src
eggdrop:src 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 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 mod/*.o -L/usr/local/lib -ltcl8.5 -lm -ldl -lresolv md5/md5c.o compat/*.o `cat mod/mod.xlibs`
eggdrop:src eggdrop$
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Good, now it's compiled properly...
Next, go back to the eggdrop directory, and type the following:

Code: Select all

strip eggdrop
Once that's done, you can proceed with the next step of the installation (which I believe is "make install")
NML_375
Post Reply