Re: More on the Couldn't find standard target issue

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
On Wednesday 05 March 2003 14:22, Sander Smeenk wrote:
> Quoting Bart De Schuymer ([email protected]):
> > > Am I looking over something?
> >
> > Try putting a printf in extensions/ebt_standard.c::_init, my guess is
> > your configuration doesn't support the __attribute__ ((constructor)) gcc
> > magic.
>
> I guess you are right. The printf's I put in that function never show up
> when I run the binary. So I guess this is a dead end then? :/

If you can program in C a little, you can fix this easily. All you need to do 
is make sure every _init function in the extensions directory gets executed 
in the beginning of main(). Just rename those functions and execute them in 
the beginning of main(). Yes, a dirty hack...

-- 
cheers,
Bart



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.