Hi all,

I'm trying to cross-compile iperf for an Opensource Netgear based device 
and am running into some problems..
If the software I compile for this Netgear device has the __cx_atexit 
function linked to the libc, then the binary doesn't run and gives me 
the error:
"can't resolve symbol '__cxa_atexit'".
I can't disable UCLIBC_DYNAMIC_ATEXIT=y in the uClibc as it breaks other 
parts of the firmware for which I have no info on how they were 
initially built.
I had a similar issue with tcpdump and I convinced it to compile without 
the __cxa_atexit by slightly modifying the resulting config.h.

Now with Iperf I've put it to compile for mips, to use my mips-uclibc 
compiler, I've even checked the Makefile and saw that HAVE_ATEXIT is 
undefined now (tried also to define it = 0 with no luck/changes).

Still, the resulting binary reports like this:

$ nm src/iperf | grep exit
          U __cxa_atexit
0040f470 T atexit
          U exit
          U pthread_exit
0040efe0 T sig_exit

normally it should not have the __cxa_atexit reported.

config.h:
$ cat config.h | grep EXIT
/* #undef HAVE_ATEXIT */

Is there any way for me to convince iperf to obey the flags and compile 
without the cxa_atexit libc stuff ?

P.S: Using gcc/g++ 4.2.3, uClibc-0.9.28

Can you help me out ?

Thanks,
Mihai

Thanks,
Mihai

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Iperf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to