Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: Build Problems on HP-UX 11
Hi,
At 10:01 AM 3/26/00 +0100, Malcolm Cowe wrote:
>Dear All,
>
>I'm having some difficulty building HylaFAX 4.1beta2 (or any other
>version of HylaFAX, for that matter) on HP-UX 11.
Could you try the current cvs version(http://www.hylafax.org/cvs.html), i
have got hylafax built with the cvs sourcetree on HP-UX 11.
> The hardware is a
>712/100 and I have installed GCC 2.95.2 along with binutils 2.9.1. The
>tiff libraries build without any difficulty, and I've built other
>software, such as bash, with no problems. However, during the build for
>HylaFAX I have encountered two problems. The first manifests itself like
>this:
That software was regular C, hylafax is C++...
>= regex
>/bin/ksh ../port/mkdepend -e 's@ /usr/include/@ /@' -c
>/opt/gcc/bin/gcc -D__ANSI_CPP__ -I. -I.. -I.././regex -I.././regex
>-I.././util -I/usr/local/include -g -O -c -M -i Makedepend regexec.c
>regcomp.c regfree.c regerror.c
>Make: Don't know how to make
>/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.../../../hppa2.0n-hp-hpux11
>.00/include/assert.h.
>Stop.
...i think this problem is fixed in cvs.
>= util
> /opt/gcc/bin/g++ -I.././zlib -D__ANSI_CPP__ -I. -I..
>-I.././regex -I.././util -I.././util -I/usr/local/include -g -O -c
>Array.c++
>In file included from Types.h:29,
> from Obj.h:29,
> from Array.h:28,
> from Array.c++:26:
>/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:29:
>warning: declaration of `int memcmp(const void *, const void *, long
>unsigned int)'
>....
Broken compiler - it has internal routines for memcmp(), memcpy() and
memset() which use size_t and assume it is a certain type. HP changed the
definition of size_t between 10.20 and 11 to help with migration to 64 bits.
gcc 2.95 was only ported to 10.20 not 11.00 by cygnus i think, when the
compiler is being built it needs to correctly determine size_t - but gcc
-2.95 always ends up using 10.20 values.
>In file included from
>/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new.h:6,
> from Types.h:32,
> from Obj.h:29,
> from Array.h:28,
> from Array.c++:26:
>/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:28:
>`operator new' takes type `size_t' as first parameter
...size_t is also needed for the C++ new operator, meaning your compiler is
pretty much useless for most C++ programs :-(
>GCC-2.95.2 is the only development environment I have for HP-UX 11 so
>I'm hoping there's a fix for this. If not, can anyone point me to
>working binaries for 11? I have heard that there are problems with
>HylaFAX and gcc-2.95.x on other platforms (such as AIX), so would a
>downgrade to 2.7.2.x be more appropriate? If so, do you know where I can
>get a version for HP-UX 11?
For the above reasons < gcc-2.95 will probably not work to well either on
HP11, try downloading a precompiled/ported version of gcc-2.95 from the HP
Users group:
http://hpux.cs.utah.edu/
or download a cvs version of gcc2.96 from cygnus which have the problems fixed.
- Robert