Bug 24094 - AIX 51 configure fails with getopt.h not found
Summary: AIX 51 configure fails with getopt.h not found
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 22:22 UTC by David Favor
Modified: 2005-10-02 04:38 UTC (History)
1 user (show)

See Also:
Host:
Target: powerpc-ibm-aix5.1.0.0
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Favor 2005-09-27 22:22:38 UTC
The file fastjar/jartool.c does an "#include <getopt.h>"
and AIX provides the getopt definition in "<unistd.h>".

Doing:

   #ifdef _AIX
   #include <unistd.h>
   #else
   #include <getopt.h>
   #endif

causes other failures.

Suggestions?
Comment 1 Andrew Pinski 2005-09-27 22:42:44 UTC
Hmm, fastjar is only built when java is enabled which is not very useful as libgcj is not yet builtable for 
AIX.
Comment 2 David Favor 2005-09-27 22:45:27 UTC
This actually fails in the bootstrap, rather than the configure step.

I'm currently building 4.0.1 and it seems to get past this and fails
later with another problem of:

   gmake[2]: *** No rule to make target `../zlib/libz.a',
      needed by `fastjar'.  Stop.

Comment 3 Andrew Pinski 2005-09-27 23:26:53 UTC
This is not critical as there is a work around of not configuring java, so doing --enable-
languages=c,c++,f90,objc while configuring.  But from the looks of it, libz is not building before 
fastjar.
Comment 4 David Edelsohn 2005-09-30 16:28:15 UTC
The GCC configuration for AIX already includes libgcj in the noconfigdirs list,
so it should not be configured nor built by default.  If it is being built, you
have made some unsupported change to the GCC configuration.
Comment 5 David Edelsohn 2005-10-02 04:38:19 UTC
libjava and fastjar currently are not a supported configuration on AIX.