Did you get this error compiling the source code for STAF V3.4.8, or did
you make some changes to STAFCommandParser.cpp (as this error does not
appear to match anything at line 100 in stafif/STAFCommandParser.cpp)?
I suggest you build STAF following the instructions in the STAF
Developer's Guide at http://staf.sourceforge.net/current/stafdg.html and
using the source code for STAF V3.4.8. In its "Requirements for Building
STAF" section it says that aCC 3.25 or later and GNU Make 3.78 or later
are required to build STAF on HP-UX :
HP-UX
aCC 3.25 or later
GNU Make 3.78 or later
Follow the instructions in the "Building STAF" section to build STAF using
the makefiles provided. For example, if you downloaded the STAF source
code to the /build directory so that you have a /build/src/staf directory,
from that directory you'll run the "make" command to build STAF after
you've set the appropriate environment variables needed to build STAF for
HP-UX. For example, you'll need to set OS_NAME=hpux and you'll need to
set the BUILD_ARCH environment variable as discussed in this section:
BUILD_ARCH - Set to the architecture type being used.
It is supported for the following operating systems:
hpux - Valid values are:
PA-RISC - Specifies to build for HP-UX PA-RISC 32-bit. This is the default
value if not specified.
PA-RISC64 - Specifies to build for HP-UX PA-RISC 64-bit.
IA64-32 - Specifies to build for HP-UX IA64 32-bit.
IA64-64 - Specifies to build for HP-UX IA64 64-bit.
So, to build STAF core and the STAF connection providers component on a
HP-UX PA RISC 32-bit system, you could do:
# cd /build/src/staf
# export OS_NAME=hpux
# export BUILD_ARCH=PA-RISC
# export STAF_USE_SSL=0 (to build STAF without SSL support)
# make PROJECTS="staf connprov*"
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: "Andersen, Jan" <jander...@informatica.com>
To: "staf" <staf-users@lists.sourceforge.net>,
Date: 01/27/2012 06:12 AM
Subject: [staf-users] Compile error on HP-UX 11.31: incomplete
type?
Any idea what this is about - and how to fix it? Should I use GNU C
instead?
I am trying to build STAF on HP-UX 11.31, using the native compiler (aCC),
but it fails with the following (a bit long, sorry):
aCC -AA -c -o /repo/staf/obj/hpux/staf/retail/stafif/STAFCommandParser.o
-DSTAF_OS_NAME_HPUX -D_REENTRANT -DSTAF_NO_GETHOSTBYNAME_R
-DSTAF_NO_GETHOSTBYADDR_R -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE +O1
+DD64 -mt +z -DSTAF_SHARED_LIB_PREFIX=lib -DSTAF_SHARED_LIB_SUFFIX=.so
-DSTAF_NATIVE_COMPILER +W829,4285 -DSTAF_USE_SSL -I/usr/local/ssl/include
-I/repo/staf/src/staf/stafif -I/repo/staf/src/staf/stafif/unix
-I/repo/staf/src/staf/stafif/unix -I/repo/staf/src/staf/stafif
/repo/staf/src/staf/stafif/STAFCommandParser.cpp
"/opt/aCC/include_std/utility", line 100: error #2070: incomplete type is
not
allowed
second_type second;
^
detected during:
instantiation of class "std::pair<_TypeT, _TypeU> [with
_TypeT=const int, _TypeU=twig]" at line 97 of
"/opt/aCC/include_std/rw/tree"
instantiation of class "__rw::__rw_rb_tree_node<_Alloc, _Val,
_Key, _KeyOf> [with
_Alloc=std::allocator<std::pair<const int, twig>>,
_Val=std::pair<const int, twig>, _Key=int,
_KeyOf=__rw::__select1st<std::pair<const int, twig>,
int>]" at line 282 of "/opt/aCC/include_std/rw/tree"
instantiation of class "__rw::__rb_tree<_Key, _Val, _KeyOf,
_Comp,
_Alloc> [with _Key=int, _Val=std::pair<const int,
twig>,
_KeyOf=__rw::__select1st<std::pair<const int, twig>,
int>, _Comp=std::less<int>,
_Alloc=std::allocator<std::pair<const int, twig>>]"
at
line 102 of "/opt/aCC/include_std/map"
instantiation of class "std::map<_Key, _TypeT, _Compare,
_Allocator> [with _Key=int, _TypeT=twig,
_Compare=std::less<int>,
_Allocator=std::allocator<std::pair<const int,
twig>>]"
at line 438 of
"/repo/staf/src/staf/stafif/STAFCommandParser.h"
1 error detected in the compilation of
"/repo/staf/src/staf/stafif/STAFCommandParser.cpp".
gmake: *** [/repo/staf/obj/hpux/staf/retail/stafif/STAFCommandParser.o]
Error 2
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users