[Sqlrelay-discussion] compile sqlrelay/rudiments with HP-UX aCC compiler problems
Brought to you by:
mused
|
From: Brian M. <bmi...@gm...> - 2008-07-30 16:57:22
|
I'm trying to compile sqlrelay & rudiments with aCC: HP ANSI C++ B3910B A.03.52
system HP-UX B.11.11 U 9000/800 and I'm having all kinds of issues.
In rudiments, I have the following in the config.mk
BASECPPFLAGS = -D_REENTRANT -D_THREAD_SAFE -D__EXTENSIONS__ -D__STDC_EXT__ -AP
-D_HPUX_SOURCE -I/usr3/local/openssl-0.9.7b/include
But I cannot get passed compiling xmlsax.C
The HP-UX does have mmap, but I can not figure out what memorymap datatype is. There is a
src/memorymap.C, but that is not included in the xmlsax.C file.
I'm at an impasse. Any help will be greatly appreciated.
error:
/opt/softbench/bin/aCC -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DOPENSSL_THREADS -D_REENTRANT -D_THREAD_SAFE
-D__EXTENSIONS__ -D__STDC_EXT__ -AP -D_HPUX_SOURCE -I/usr3/local/openssl-0.9.7b/include
-I../ -I../include -c xmlsax.C +Z -DPIC -o .libs/xmlsax.o
Error (future) 600: "/usr/include/sys/stat.h", line 147 # Type specifier is omitted; "int"
is no longer assumed.
inline lstat __((const char *, struct stat *));
^^^^^
Warning (anachronism) 600: "/usr/include/sys/unistd.h", line 433 # Type specifier is
omitted; "int" is no longer
assumed.
inline truncate(const char *a, off_t b) { return __truncate64(a,b); }
^^^^^^^^
Warning (anachronism) 600: "/usr/include/sys/unistd.h", line 434 # Type specifier is
omitted; "int" is no longer
assumed.
inline prealloc(int a, off_t b) { return __prealloc64(a,b);
^^^^^^^^
Warning (anachronism) 600: "/usr/include/sys/unistd.h", line 435 # Type specifier is
omitted; "int" is no longer
assumed.
inline lockf(int a, int b, off_t c) { return __lockf64(a,b,c); }
^^^^^
Warning (anachronism) 600: "/usr/include/sys/unistd.h", line 436 # Type specifier is
omitted; "int" is no longer
assumed.
inline ftruncate(int a, off_t b) { return __ftruncate64(a,b); }
^^^^^^^^^
Error 419: "xmlsax.C", line 23 # 'memorymap' is used as a type, but has not been defined
as a type.
memorymap _mm;
^^^^^^^^^
Error 186: "xmlsax.C", line 108 # Left side of '.' requires a class object; type found was
'int'.
pvt->_mm.detach();
^^^^^^^^
Error 186: "xmlsax.C", line 821 # Left side of '.' requires a class object; type found was
'int'.
pvt->_mm.detach();
^^^^^^^^
Error 186: "xmlsax.C", line 832 # Left side of '.' requires a class object; type found was
'int'.
if (pvt->_mm.attach(pvt->_fl.getFileDescriptor(),
^^^^^^^^
Error 186: "xmlsax.C", line 834 # Left side of '.' requires a class object; type found was
'int'.
pvt->_string=static_cast<char *>(pvt->_mm.getData());
^^^^^^^^
Warning: 1 future errors were detected and ignored. Add a '+p' option to detect and fix
them before they become fatal errors in a future release. Behavior of this ill-formed
program is not guaranteed to match that of a well-formed program
gmake[1]: *** [xmlsax.lo] Error 1
--
Brian Millett - [ Laurel Takeshima, "The Gathering"]
"We were talking the other day about how nobody's seen a Vorlon before
and he said that according to legend, one human did see a Vorlon...he
turned to stone."
|