| View previous topic :: View next topic |
| Author |
Message |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 12:05 pm Post subject: Problem with "make" on Snow Leopard/OSX |
|
|
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?
| Quote: |
\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$
|
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 12:21 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 12:26 pm Post subject: re |
|
|
| 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. |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 6:10 pm Post subject: re: hmm |
|
|
Ok, I added the -lresolv in front of this but I'm still getting the same error -
| Quote: |
# 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 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 6:12 pm Post subject: |
|
|
Yup,
Could you paste the three lines after "Linking eggdrop (static version)." from your most recent attempt (after editing the Makefile)? _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 6:16 pm Post subject: yes, here you go, thank you |
|
|
| Quote: |
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`
|
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 6:19 pm Post subject: |
|
|
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: | | 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 6:26 pm Post subject: |
|
|
| Do you mean when I type make, I should type make -lresolv, instead? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 6:31 pm Post subject: |
|
|
No, type the command like in the code block in my previous post. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 6:44 pm Post subject: |
|
|
| I don't understand how to edit the code at all, I'm not sure where to look. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 6:46 pm Post subject: |
|
|
If you'd look at my previous post, I had a "codeblock" with the following content:
| Code: | | 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 6:52 pm Post subject: |
|
|
Ok...I typed that into my eggdrop directory and I get:
| Quote: |
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
|
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 6:54 pm Post subject: |
|
|
From the src directory.. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w0by Voice
Joined: 24 Jan 2010 Posts: 14
|
Posted: Sun Jan 24, 2010 6:58 pm Post subject: oops sorry, here's what it did when I hit enter |
|
|
| Quote: |
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$
|
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jan 24, 2010 7:00 pm Post subject: |
|
|
Good, now it's compiled properly...
Next, go back to the eggdrop directory, and type the following:
Once that's done, you can proceed with the next step of the installation (which I believe is "make install") _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|