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's eggdrop1.6.18+ssl tcl8.4.14

General support and discussion of Eggdrop bots.
Post Reply
b
bleh1234
Voice
Posts: 11
Joined: Thu Mar 22, 2007 8:10 pm

Compiling error's eggdrop1.6.18+ssl tcl8.4.14

Post by bleh1234 »

while compiling eggdrop 1.6.18 with ssl patch i ran in to these error's/warning's

I have searched the web several times re-downloaded packages but still gettting them.

Anyone has a clue?

Code: Select all

gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c tcl.c
tcl.c:493: warning: dereferencing type-punned pointer will break strict-aliasing
 rules
tcl.c: In function `readtclprog':
tcl.c:746: warning: assignment discards qualifiers from pointer target type
tcl.c line:
493: {"uptime", (int *) &online_since, 2},
746: result = Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY);

Code: Select all

gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c userent.c
userent.c: In function `del_entry_type':
userent.c:1135: warning: dereferencing type-punned pointer will break strict-ali
asing rules
userent.c line:
1135: return list_delete((struct list_type **) &entry_type_list,

Don't know what i'm doing wrong or if it harms eggdrop.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

take note that it says "warning", not "error"

did eggdrop finish compiling?
if it finished compiling did it install?
if it installed does it run?
b
bleh1234
Voice
Posts: 11
Joined: Thu Mar 22, 2007 8:10 pm

Post by bleh1234 »

DragnLord wrote:take note that it says "warning", not "error"

did eggdrop finish compiling?
if it finished compiling did it install?
if it installed does it run?
Yup it does all of that but those warnings aren't for nothing and have no idea how it effects eggdrop itself.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

They are simply warnings. These are similar to the putlog entries of eggdrop; they are there for the benefit of the coder and do not affect the working of eggdrop if it compiled error free!
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Don't know what i'm doing wrong or if it harms eggdrop.
Don't worry it won't harm your eggdrop. Even if your eggdrop drops, I'm sure it wont shatter to pieces, as it has a hard shell around it. :P

If there was an error the compiling would have immediately stopped right there. So then you know theres a problem with either the open source eggdrop, tcl package installed or maybe your OS.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Those warnings are just peculiarities in the differences between types of compilers and C programming styles (vintages?) Newer versions of gcc in particular are getting a lot stricter so throws more warnings, but generally if a piece of code compiles and runs without segfaulting, warnings are harmless.

Wouldn't hurt to read up on C programming and gcc's peculiarities, there's a lot of websites out there devoted to teaching C and Gnu C, and in particular, the "make" program, so you can actually use error messages effectively (just cos make said an error occurred on a certain line, doesn't always mean it was THAT line, it could be preceding lines in the chain.)
Post Reply