This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Re: AIX status


On Thu, Oct 12, 2000 at 05:39:05PM -0400, David Edelsohn wrote:
> 	I am able to compile libio by working around the _POSIX_SOURCE
> definition and defining:
> 
> typedef off_t __off_t;
> typedef off64_t __off64_t;
> typedef ssize_t __ssize_t;
> 
> in _G_config.h.  The __mbstate_t definition now is provided by
> _G_config.h.

The problem is that on some systems (notably Linux) those typedefs will
already exist, possibly with different definitions.

I handled both the _{POSIX,XOPEN}_SOURCE and the __foo_t definitions
in os_defines.h, which gets included automatically everywhere first.
The downside is that the real foo_t definitions aren't available that
early, so I had to use "#define __foo_t foo_t" instead.


> 	I normally configure without --maintainer-mode and
> @MAINTAINER_MODE_TRUE@ is not being replaced in Makefiles during
> configuration.

Happens all the time.  As long as the variables aren't referenced, they
don't need a correct definition.  For example, the generated libio Makefile
for my systems contains:

    DLLTOOL = @DLLTOOL@
    GCC_OBJDIR = @GCC_OBJDIR@
    GCJ = @GCJ@
    GCJFLAGS = @GCJFLAGS@
    LIBSTRINGOBJS = @LIBSTRINGOBJS@
    OBJDUMP = @OBJDUMP@


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

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