Thread: [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
Attachments:
signature.asc
|
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."
|
|
From: David M. <dav...@fi...> - 2008-08-06 01:11:26
|
It looks like the configure script isn't able to detect mmap. You
should be able to make distclean, run configure again, then manually
edit include/rudiments/private/config.h and replace:
/* Some systems have mmap */
/* #undef RUDIMENTS_HAVE_MMAP */
with:
/* Some systems have mmap */
#define RUDIMENTS_HAVE_MMAP 1
That will force the build to realize that mmap exists. You should be
able to get a little further.
Send me your config.log file too, maybe I'll be able to figure out why
mmap isn't auto-detected.
Dave
On Wed, 2008-07-30 at 11:57 -0500, Brian Millett wrote:
> 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
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ Sqlrelay-discussion mailing list Sql...@li... https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion
__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
http://www.doteasy.com
|