"Cooperstock, Dan" <[EMAIL PROTECTED]> writes:

> Sorry to bother you, but I can't get the "make test" part to work in
> the build.

No bother, that's what this list is for.

> I'm on Solaris, and this is the output of uname -a:
>       SunOS apollo 5.8 Generic_108528-04 sun4u sparc SUNW,Ultra-80
> 
> I had compiled Xerces-C 1.5.2 with the Sun Forte C compiler
> (cc). When I tried compiling the Xerces-Perl stuff with that
> compiler, I got all sorts of errors and warnings. So, I compiled
> Xerces-Perl with gcc. Then "make test" gave all sorts of errors.

It would be pretty useful to see a sample of those errors. It would be
best to get Xerces-P compiling under your compiler.

> The perl is a binary version 5.6.1 that we downloaded for Solaris. I
> don't know what it was compiled with.

This is probably the issue. It probably isn't given the necessary
CCFLAGS/LDFLAGS to locate libstdc++ from gcc.

> Optimally, I would like to not have to compile Xerces-C with gcc,
> since it seems that that commits us to using gcc for anything that
> calls the Xerces-C library, and our standard here is to use
> cc. Plus, the Xerces-C build instructions seem to suggest that for
> Solaris, we should use cc.

Yes, this will be a problem for you. What should work is to ensure
that the CCFLAGS that are used for building Xerces-C with cc
are *also* used when build Xerces-P.

Try compiling Xerces-P again, and see what compiler flags it uses, and
compare it to the compiler flags that are used when cc compiles
Xerces-C, and add the correct ones to hints/solaris_2.pl.

Change:

  # if we are using gcc
  if ($Config{gccversion}) {
  
    # gcc on solaris needs HAS_BOOL
    $self->{CCFLAGS} .= " -DHAS_BOOL";
  }

to:

  # if we are using gcc
  if ($Config{gccversion}) {
  
    # gcc on solaris needs HAS_BOOL
    $self->{CCFLAGS} .= " -DHAS_BOOL";
  } else {
    # we're using cc
    $self->{CCFLAGS} = "<WHATEVER YOU FIND>";
  }

Here is the list that Tinny Ng from IBM sent me:

compiler:

  -KPIC -mt -xs -features=rtti -DSOLARIS -D_REENTRANT
  -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER
  -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET

The -DXML_* defines are most likely unnecessary, but -DSOLARIS and -mt
-xs -features=rtti are probably important. Perhaps -KPIC isn't being
used either.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to