Forum Topic - Undefined references for mudflap:
   
Undefined references for mudflap  
I'm trying to build some libraries and an application with mudflap for threads, but I get the following errors at link 
time:

MySocket.cpp:23: undefined reference to `__mfwrap_inet_ntoa'
TextMsgBroadcaster.cpp:87: undefined reference to `__mfwrap_getprotobyname'

Both those files are in static libraries that got compiled with no errors, but the error is raised on the link of the 
executable that uses them.

I saw something similar mentioned here: http://community.qnx.com/sf/go/projects.ide/discussion.ide.topc8951 but there 
was no real resolution.

The compile and link commands are tragically complex, so I can't reproduce them here in full, but I can verify that the 
compile commands included -fmudflapth, and the link command includes both -lsocket and -lmudflapth. I get the same 
problem with -fmudflap and -lmudflap.

Any ideas?

Thanks,
 - Tom
Re: Undefined references for mudflap  
What version of the OS are you running?
Re: Undefined references for mudflap  
I'm compiling for 6.4.1 using ntox86-gcc on Ubuntu.
Re: Undefined references for mudflap  
This was fixed in 6.5.0 not sure if there is a patch for 6.4.1.

----- Original Message -----
From: Tom Miller [mailto:community-noreply@qnx.com]
Sent: Tuesday, May 03, 2011 04:46 PM
To: general-toolchain <post85381@community.qnx.com>
Subject: Re: Undefined references for mudflap

I'm compiling for 6.4.1 using ntox86-gcc on Ubuntu.



_______________________________________________

General
http://community.qnx.com/sf/go/post85381
Re: Undefined references for mudflap  
A patch would be very useful. Is there a way to find out if one exists?

Alternatively, I have access to a similar compiler on QNX 6.5.0. Is there a way I could use that to compile an 
executable compatible with 6.4.1 that will have the mudflap wrappers?