public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* ada/5798: problem with sys/socket.h
@ 2002-03-01 2:16 markus.breuer
0 siblings, 0 replies; only message in thread
From: markus.breuer @ 2002-03-01 2:16 UTC (permalink / raw)
To: gcc-gnats; +Cc: markus.breuer
>Number: 5798
>Category: ada
>Synopsis: problem with sys/socket.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 01 02:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: markus.breuer@materna.de
>Release: unknown-1.0
>Organization:
>Environment:
Solaris 5.8
>Description:
There's a problem compiling following simple app:
#include <sys/socket.h>
void bind() { /* empty */ }
When using gcc 2.95.3 there are no problems. But when using 3.0.4 the compiler generates different symbols. Ich examined the cause and found following implementation within sys/socket.h:
--- snipp ---
#ifdef _XPG4_2
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname bind __xnet_bind
--- snipp ---
In my opinion the constructs act like #define bind __xnet_bind and causes that the above function is not named bind, instead of this it is named __xnet_bind.
In my concrete problem bind was a member method named bind.
>How-To-Repeat:
try the above example
>Fix:
?!
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-01 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-01 2:16 ada/5798: problem with sys/socket.h markus.breuer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).