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.

Compiling error again.

General support and discussion of Eggdrop bots.
Post Reply
c
ckin-
Voice
Posts: 12
Joined: Tue Sep 09, 2003 8:08 am

Compiling error again.

Post by ckin- »

I get this after doing make
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 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/usr/local/lib -ltcl8.3 -lm -ldl -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs` -lssl -lcrypto -L/usr/lib -L/usr/lib
touch ../eggdrop

Successful compile: eggdrop

make[1]: Leaving directory `/home/mee/eggdrop1.6.17/src'
make[1]: Entering directory `/home/mee/eggdrop1.6.17/src/mod'
make[2]: Entering directory `/home/mee/eggdrop1.6.17/src/mod/assoc.mod'
gcc -pipe -I/usr/kerberos/include/ -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE_CONFIG_H -DMAKING_MODS -c .././assoc.mod/assoc.c
mv assoc.o ../
gcc -pipe -o ../../../assoc.so ../assoc.o -L/usr/local/lib -ltcl8.3 -lm -ldl -lnsl
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [../../../assoc.so] Error 1
make[2]: Leaving directory `/home/mee/eggdrop1.6.17/src/mod/assoc.mod'
make[1]: *** [assoc.mod_so] Error 2
make[1]: Leaving directory `/home/mee/eggdrop1.6.17/src/mod'
make: *** [modules] Error 2
I did
CFLAGS="-I/usr/kerberos/include/" ./configure --with-ssl=/usr
then I edited the Makefile and removed the line in XSSL include something that has been mentioned here before. I thought that would fix the previous compiling error I got but then this came up instead.

any ideas?
TIA
c
ckin-
Voice
Posts: 12
Joined: Tue Sep 09, 2003 8:08 am

Post by ckin- »

c'mon someone must know something about this error ;/
c
ckin-
Voice
Posts: 12
Joined: Tue Sep 09, 2003 8:08 am

Post by ckin- »

81 views and not a single eggdrop expert who can give a helping hand? guess I'm screwed..
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

It's probably a RH specific problem and you should research the RH forums.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

screwed up Makefile, gcc tries to link an executable, and .so module is not an executable (no main() entry point); gcc (or ld) should be invoked with -Bshareable
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
c
ckin-
Voice
Posts: 12
Joined: Tue Sep 09, 2003 8:08 am

Post by ckin- »

I noticed now I forgot to mention that I dont have access to the command uname, so I get error after ./configure that it cant determine the system it's trying to compile on. maybe that's what messing it up. I've mailed the admins about them maybe giving me access to that command.

also demond I have no idea what your talking about heh. I havent messed with the Makefile at all, although with the compiler not getting access to what system it's on it maybe messes that stuff up? I dunno.

maybe u know the solution to the prob and can be more specific on how to solve it?

I'll try googling on the RedHat forums as Alchera mentioned aswell.

any more help is appreciated!

TIA

EDIT::
Ok the only prob was the uname access. worked now after admin made me use the command. thx for the help anyways :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

@ ckin- It would have been more helpful (to all) if you'd stated from the outset that it was not your box.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

uname is essential for configure, talk to your admin and demand execution permissions for it
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

demond wrote:uname is essential for configure, talk to your admin and demand execution permissions for it
is there really not way? Can't it be used from the .cache file or the env vars (all neccessary informations are stored there as well)? My admin probably accicently blocked uname and now i cant configure there, too :(.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well, you can always patch your configure script with uname's output
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Or use mine simplified uname and modify configure script a little ;)
Que?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

KrzychuG wrote:Or use mine simplified uname and modify configure script a little ;)
wow, this looks so simply, but its simply great, because putting it as bin/uname in my home dir I could use ./configure without any modifcations again :).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
D
DonnaA2Z
Voice
Posts: 5
Joined: Mon Oct 31, 2005 1:37 am

Re: Compiling error again.

Post by DonnaA2Z »

Believe me, I'm no bot expert, I'm a newbie and am here for help as well. But your problem sounds like a similar problem that I had in the beginning.

What kind of shell is your bot on, linux ... Solaris... do you know?

If it is a Solaris, you should use "make eggdrop" instead of just "make" at that step.

The "uname" file ... I can recall having an issue with that myself, but I can't recall what the exact solution was unfortunately.

You can try to chmod +x uname in order to get permissions, if you know where the file is and can change the permissions.

Or it could be a problem with the bot installation finding all the TCL stuff it needs. Or the wrong version is installed on the server for your bot. In which case will probably require assistance from your admin.

Donna
Post Reply