public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5798: problem with sys/socket.h
@ 2003-02-01 18:16 Craig Rodrigues
  0 siblings, 0 replies; 3+ messages in thread
From: Craig Rodrigues @ 2003-02-01 18:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/5798; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@attbi.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
   gcc-prs@gcc.gnu.org, markus.breuer@materna.de, markus.breuer@gmx.de
Cc:  
Subject: Re: c/5798: problem with sys/socket.h
Date: Sat, 01 Feb 2003 13:08:46 -0500

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5798
 
 Fixed with:
 http://gcc.gnu.org/ml/gcc-patches/2002-03/msg01261.html
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/5798: problem with sys/socket.h
@ 2002-03-04 17:26 Craig Rodrigues
  0 siblings, 0 replies; 3+ messages in thread
From: Craig Rodrigues @ 2002-03-04 17:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/5798; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@attbi.com>
To: "Breuer, Markus" <markus.breuer@materna.de>
Cc: "'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
   "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
   "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
   "'markus.breuer@gmx.de'" <markus.breuer@gmx.de>,
   "'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
   "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Subject: Re: c/5798: problem with sys/socket.h
Date: Mon, 4 Mar 2002 20:20:14 -0500

 On Mon, Mar 04, 2002 at 09:16:57AM +0100, Breuer, Markus wrote:
 > Hello,
 > 
 > i followed the thread within the refrenced link. The thread ended with no
 > real solution or alternative.
 > Possibly i found out a solution for the problem. The code within
 > sys/socket.h looks like following:
 > 
 > --- snipp ---
 > #ifdef  _XPG4_2
 > #ifdef  __PRAGMA_REDEFINE_EXTNAME
 > #pragma redefine_extname bind __xnet_bind
 
 What is #pragma redefine_extname?  Who uses it?
 The Sun compiler and Sun linker?  I don't think
 this is a gcc pragma.
 
 > [...]
 > #else   /* __PRAGMA_REDEFINE_EXTNAME */
 > #define bind    __xnet_bind
 > [...]
 > #endif  /* __PRAGMA_REDEFINE_EXTNAME */
 > --- snipp ---
 > 
 > When defining -D_XOPEN_SOURCE=500 only, the compiler uses the else branch of
 > the if-def directive. This uses the preprocessor for replacement. But when
 > -D__PRAGMA_REDEFINE_EXTNAME is additionally defined, the compiler uses the
 > #pragma directive. It acts after compiling, when the symbol names are
 > generated. It replaces the symbolname.
 > 
 > Is there any reason to avoid this workaround? My (sample) application work's
 > fine when using it.
 > 
 > regards, Markus
 > 
 
 I do not know enough about Solaris to say if your
 solution is workable or not, but it is certainly interesting.
 
 If you could test out the following and report back the results
 to us, that would be helpful:
 
 Edit gcc/config/sparc/sol2.h, change the following lines from:
 /* For C++ we need to add some additional macro definitions required
    by the C++ standard library.  */
 #define CPLUSPLUS_CPP_SPEC "\
 -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
 -D__EXTENSIONS__ \
 %(cpp) \
 "
 
 
 to:
 
 /* For C++ we need to add some additional macro definitions required
    by the C++ standard library.  */
 #define CPLUSPLUS_CPP_SPEC "\
 -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
 -D__EXTENSIONS__ -D__PRAGMA_REDEFINE_EXTNAME \
 %(cpp) \
 "
 
 
 Then you would have to:
 - configure
 - make boostrap
 - make check
 
 Also, report to us if you are using GNU binutils or
 the Sun linker/assembler.
 
 Thanks.
 -- 
 Craig Rodrigues        
 http://www.gis.net/~craigr    
 rodrigc@attbi.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/5798: problem with sys/socket.h
@ 2002-03-02 18:57 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-03-02 18:57 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, markus.breuer, markus.breuer, nobody

Synopsis: problem with sys/socket.h

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Mar  2 18:57:28 2002
State-Changed-Why:
    Duplicate of PR 5440.
    
    http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=5440&database=gcc
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5798


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-01 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-01 18:16 c/5798: problem with sys/socket.h Craig Rodrigues
  -- strict thread matches above, loose matches on Subject: below --
2002-03-04 17:26 Craig Rodrigues
2002-03-02 18:57 rodrigc

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).