Subject: Re: Compiling libg++-2.6.2 on NetBSD 1.0
To: None <kue@zerberus.hai.siemens.co.at>
From: Niklas Hallqvist <niklas@appli.se>
List: port-i386
Date: 10/04/1995 11:46:25
>>>>> "Werner" == Werner Kuehnert <kue@zerberus.hai.siemens.co.at> writes:

Werner> Hi !  Has anyone succesfully compiled libg++ version 2.6.2
Werner> under NetBSD-1.0 ?  gcc-2.6.2 works fine, but when compiling
Werner> libg++ the compilation succeeds for libiberty and dies in
Werner> libio not finding quad_t (I guess from the error message).
Werner> quad_t is defined in sys/types.h and this file is included in
Werner> the source (sorry I forgot the name of the c-source file). Has
Werner> anybody had more luck ?  Any hints are highly appreciated.

I think this is fixed in later libg++, otherwise what needs to be done
is something like:

Please replace libio/config/netbsd.mt by the following:

# Flags to pass to gen-params when building _G_config.h.
# For example: G_CONFIG_ARGS = size_t="unsigned long"
# The NetBSD include files have a chain where fpos_t is defined as off_t,
# which is defined as quad_t, which is defined as int64_t, which is defined 
# as 'long long'.  Such a long chain is too much for gen-params.
G_CONFIG_ARGS = fpos_t="long long" off_t="long long"