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 

module compilation in current 1.7 branch

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Sep 08, 2005 5:13 am    Post subject: module compilation in current 1.7 branch Reply with quote

Sympton: You will most likely get following compiler error depending on the module you are triing to compile:
Code:
In file included from gseen.c:98:
seentree.c: In function `tcl_killseen':
seentree.c:202: error: `context' undeclared (first use in this function)


Reason: wcc removed context debugging completly

Solution: go through the source code of the module and remove ALL calls to 'Context;' / 'context;'. After that the module should compile again (except if you still need to adjust the Makefile reflecting changed header filenames).
_________________
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...
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Sep 11, 2005 4:55 am    Post subject: Re: module compilation in current 1.7 branch Reply with quote

De Kus wrote:

Solution: go through the source code of the module and remove ALL calls to 'Context;' / 'context;'


ever heard of sed? Wink
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Tue Sep 13, 2005 3:08 pm    Post subject: Re: module compilation in current 1.7 branch Reply with quote

demond wrote:
ever heard of sed? Wink

read in Mafefile or Configure script, but never really looked what it does and so I have no clue how to filter it out ^-^. But how you remove it, is everyones own decition Wink.
_________________
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...
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Sep 13, 2005 10:16 pm    Post subject: Reply with quote

that's why you should learn shell scripting Smile instead of editing 2537523 files manually, this one-liner could do the job for you:
Code:

find ~/eggdrop1.7.0 -name '*.c' | while read i; do sed -e 's/[Cc]ontext\;//g' $i >tmp && mv tmp $i; done
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming 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