| View previous topic :: View next topic |
| Author |
Message |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Thu Sep 08, 2005 5:13 am Post subject: module compilation in current 1.7 branch |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 11, 2005 4:55 am Post subject: Re: module compilation in current 1.7 branch |
|
|
| De Kus wrote: |
Solution: go through the source code of the module and remove ALL calls to 'Context;' / 'context;' |
ever heard of sed?  |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Tue Sep 13, 2005 3:08 pm Post subject: Re: module compilation in current 1.7 branch |
|
|
| demond wrote: | ever heard of sed?  |
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 . _________________ 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Sep 13, 2005 10:16 pm Post subject: |
|
|
that's why you should learn shell scripting 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 |
|
 |
|