First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 229603
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Professional Audio Applications Maintainers <proaudio@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Olivier Huber <oli.huber@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
lash.patch patch proposal patch Olivier Huber 2008-06-26 14:01 0000 337 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 229603 depends on: Show dependency tree
Bug 229603 blocks: 225459
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-06-26 13:59 0000
In file included from ../lash/list.h:37,
                 from socket.c:36:
../lash/xmalloc.h: In function 'lash_strdup':
../lash/xmalloc.h:51: warning: incompatible implicit declaration of built-in
function 'strdup'
socket.c: In function 'lash_lookup_peer_name':
socket.c:266: error: 'NI_MAXHOST' undeclared (first use in this function)
socket.c:266: error: (Each undeclared identifier is reported only once
socket.c:266: error: for each function it appears in.)
socket.c: In function 'lash_lookup_peer_port':
socket.c:279: error: 'NI_MAXSERV' undeclared (first use in this function)

This seems to be a little bit odd : in lash/xmalloc.h, _GNU_SOURCE is defined
by : 

#ifdef LASH_BUILD
#define _GNU_SOURCE
#include "config.h"
#endif /* LASH_BUILD */

Do everything should be fine : socket.c includes lash/list.h which includes
lash/xmalloc.h. But it fails ...

------- Comment #1 From Olivier Huber 2008-06-26 14:01:24 0000 -------
Created an attachment (id=158509) [details]
patch proposal

I just copy/past code from lash/xmalloc.h in socket.c and it works.

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2008-06-26 16:30:12 0000 -------
it should just define _GNU_SOURCE over all the sources I think...

------- Comment #3 From Alexis Ballier 2008-08-07 17:07:56 0000 -------
well... I don't like the current situation, so I applied your patch anyway.
Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug