This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libjava build failure on branch for sparc-sun-solaris2.7

>>>>> "Jeff" == Jeff Sturm <> writes:

    Jeff> I saw this too.  It turns out that Solaris <sys/socket.h>
    Jeff> does:

    Jeff> #define bind __xnet_bind

Wa, ha, ha, ha.  

Now we see just how important it will be to fix V3 to allow users to
define the _XOPEN_FOO and _POSIX_FOO things they are used to on each
and every platform.

Unfortunately, this functionality was not designed into V3.  It will
be a lot of work, because you must handle all the feature macros that
users are allowed to define on each and every different operating
system.  There is simply no way to avoid lots of ugly
platform-dependent #ifdefs.  And, you want to be sufficiently clever
that you can use the same binary, independent of which
#defines are turned on.  (Hey, the system vendors do it, so can we.)

Short term, I'd say you'll have to do the `#undef' thing, grotesque
though it is.

Sorry for the breakage.  If you do not feel like fixing it, it is
certainly my regression, and I will fix it.  Put it in GNATS, mark it
high priority.  But, I would be very grateful if you would fix it. :-)


Mark Mitchell         
CodeSourcery, LLC     

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]