Updated patch, asprintf removed entirely, vasprintf moved from stdio.h
into the .a (gcc can't inline varargs functions anyway).

On Sat, Jun 30, 2012 at 5:44 PM, JonY <jo...@users.sourceforge.net> wrote:
> On 6/30/2012 22:23, Ray Donnelly wrote:
>> Hi guys,
>>
>> I've attached a fairly simple patch as requested by Kai on IRC which
>> allows GDB to be compiled successfully.
>>
>> Without the patch, configure for libiberty fails to find the functions
>> and tries to build its own versions which then leads to multiply
>> defined symbols due to the inclusion of stdio.h
>>
>> Since Windows doesn't provide either of these two functions it should
>> be safe to move them from being inlined functions into the lib.
>>
>
> asprintf prototype should not exist, you should be using the mingw stdio
> macro thing to reach it instead.
>
> These inlines should stay in the header, see the __CRT__NO_INLINE macro,
> the non-inline prototypes can go in there.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

Attachment: mingw-w64-asprintf-not-inlined-2.patch
Description: Binary data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to