You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jason E. Stewart" <ja...@openinformatics.com> on 2002/06/04 18:03:30 UTC

Re: install problem on HPUX with gcc3.1

Hey Thomas,

The issue is that the makefile doesn't know about g++ for HP/UX. It's
checking for aCC, but the 'else' clause still uses a bunch of aCC
specific compiler flags like '+eh +Z -Z', etc. I would steal the g++
configuration section from the Solaris configuration and add it to the
HP/UX section as a second else clause.

The whole platform configuration is a horrible mess, and really should
be redone to *completely* use autoconf instead of using it half-assed
like it currently is. Unfortunately, I don't know autoconf all that
well, so I'm not volunteering to do it. 

jas.

"Thomas Porschberg" <th...@osp-dd.de> writes:

> I configured with :
> ./runConfigure -p hp-11 -P /opt -r none -c /opt/gcc/gcc-3.1/bin/gcc \
> -x /opt/gcc/gcc-3.1/bin/g++
> 
> and I edited Makefile.incl a little bit:
> 
> I added -DAPP_NO_THREADS 
> in
> #================= HP SPECIFIC OPTIONS ===========================
> 
> The whole section looks:
> 
>   ifeq (${CXX}, aCC)
>     PLATFORM_COMPILE_OPTIONS = -D_HP_UX -DHPaCC \
>         -D${OSVERDEFINE} +DAportable +Z
>     MAKE_SHARED = ${CXX} -D${PLATFORM} -b ${LDFLAGS}
>     MAKE_SHARED_C = ${CC} -D${PLATFORM} -b ${LDFLAGS}
>     ifeq (${TRANSCODER}, ICU)
>         ALLLIBS = ${LIBS} -licuuc -licudata -lCsup -lstream
>     else
>         ALLLIBS = ${LIBS} -lCsup -lstream
>     endif
>     SHLIBSUFFIX=.sl
>   else
>     TEMPLATESREPOSITORY = ${XML_OBJ_DIR}/ptrepository
>     COMMON_COMPILE_OPTIONS = -D_HP_UX -DXERCES_TMPLSINC \
>         -D${OSVERDEFINE} +DAportable +eh +Z -Z +a1 +d -DAPP_NO_THREADS
>     ifeq ($(MODULE), dom)
>       PLATFORM_COMPILE_OPTIONS  = -DDOM_PROJ $(COMMON_COMPILE_OPTIONS)
>     else
>       PLATFORM_COMPILE_OPTIONS  = $(COMMON_COMPILE_OPTIONS) -ptr${TEMPLATESREPOSITORY}
>     endif
>     MAKE_SHARED = $(CXX) $(PLATFORM_COMPILE_OPTIONS) $(XML_INCL) ${LDFLAGS}
>     MAKE_SHARED_C = $(CC) $(PLATFORM_COMPILE_OPTIONS) $(XML_INCL) ${LDFLAGS}
>     ifeq (${TRANSCODER}, ICU)
>         ALLLIBS = ${LIBS} -licuuc -licudata
>     else
>         ALLLIBS = ${LIBS}
>     endif
>     EXTRA_LINK_OPTIONS = -b -Wl,+s -Wl,-a,shared
>     SHLIBSUFFIX=.sl
>   endif
> 
> and I'am in the second branch...
> 
> I think many programmer use gcc on HPUX and it would be a good
> thing to find some hints in the Building-documentation from apache
> about the right configure call for this purpose.
> 
> Do you have a idea how to call configure for this case?
> 
> 
> thomas
> 
> 
> 
> 
> On Tue, Jun 04, 2002 at 09:24:47AM -0600, Jason E. Stewart wrote:
> > "Thomas Porschberg" <th...@osp-dd.de> writes:
> > 
> > > I tried to compile with gcc3.1 on HPUX:
> > > The following error appears:
> > > 
> > > /opt/gcc/gcc-3.1/bin/g++ -D_HP_UX -DXERCES_TMPLSINC -DHPUX11 +DAportable 
> > > +eh +Z -Z +a1 +d -DAPP_NO_THREADS -ptr/opt/xerces-c-src1_7_0/obj/HPUX/ptrepository -c 
> > > -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER 
> > > -DAPP_NO_THREADS -DXML_USE_NO_THREADS -DXML_USE_NETACCESSOR_SOCKET  
> > > -I/opt/xerces-c-src1_7_0/include  -o /opt/xerces-c-src1_7_0/obj/HPUX/Base64.o Base64.cpp
> > > g++: cannot specify -o with -c or -S and multiple compilations
> > > make[1]: *** [Base64.o] Error 1
> > 
> > Looks like g++ is not configured for HP/UX. It's using the aCC
> > compilation flags.
> > 
> > Once again, I'd send this off to xerces-c-dev.
> > 
> > Cheers,
> > jas.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
> 
> -- 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org