You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Adam Witney <aw...@sghms.ac.uk> on 2002/02/01 17:33:18 UTC

Installation troubles

Hi,

I have been trying to install XML-Xerces-1.5.2_0 on macOSX however I receive
errors during the make

I downloaded and installed xerces-c-src1_5_2.tar.gz (everything seemed ok)

But during the 'make' step for XML-Xerces-1.5.2_0 I receive an error. Here
is the output from make

[mrc1-003:local/install/XML-Xerces-1.5.2_0] adam% make
mkdir blib
mkdir blib/lib
mkdir blib/lib/XML
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/XML
mkdir blib/arch/auto/XML/Xerces
mkdir blib/lib/auto
mkdir blib/lib/auto/XML
mkdir blib/lib/auto/XML/Xerces
mkdir blib/man3
cp Xerces.pm blib/lib/XML/Xerces.pm
cp DOMParse/DOMParse.pm blib/lib/XML/Xerces/DOMParse.pm
make -C Handler static
cc -c -I. -IHandler -I/usr/local/install/xerces-c-src1_5_2//include -g -pipe
-pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE
-fno-strict-aliasing -O3     -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\"
-I/System/Library/Perl/darwin/CORE  PerlContentCallbackHandler.cpp
cc: -flat_namespace: linker input file unused since linking not done
cc -c -I. -IHandler -I/usr/local/install/xerces-c-src1_5_2//include -g -pipe
-pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE
-fno-strict-aliasing -O3     -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\"
-I/System/Library/Perl/darwin/CORE  PerlDocumentCallbackHandler.cpp
cc: -flat_namespace: linker input file unused since linking not done
cc -c -I. -IHandler -I/usr/local/install/xerces-c-src1_5_2//include -g -pipe
-pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE
-fno-strict-aliasing -O3     -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\"
-I/System/Library/Perl/darwin/CORE  PerlErrorCallbackHandler.cpp
cc: -flat_namespace: linker input file unused since linking not done
mkdir ../blib/arch/auto/Handler
rm -rf ../blib/arch/auto/Handler/Handler.a
/usr/bin/ar cr ../blib/arch/auto/Handler/Handler.a
PerlContentCallbackHandler.o PerlDocumentCallbackHandler.o
PerlErrorCallbackHandler.o && /usr/bin/ranlib
../blib/arch/auto/Handler/Handler.a
chmod 755 ../blib/arch/auto/Handler/Handler.a
mkdir ../blib/arch/auto/XML/Xerces/DOMParse
mkdir ../blib/lib/auto/XML/Xerces/DOMParse
Skip ../blib/lib/XML/Xerces/DOMParse.pm (unchanged)
Manifying ../blib/man3/XML::Xerces::DOMParse.3
cc -c -I. -IHandler -I/usr/local/install/xerces-c-src1_5_2//include
-D_REENTRANT -O3     -DVERSION=\"1.5.2_0\" -DXS_VERSION=\"1.5.2_0\"
-I/System/Library/Perl/darwin/CORE  Xerces.C
Xerces.C: In function `void _wrap_new_MemBufInputSource(CV *)':
Xerces.C:54400: passing `unsigned int *' as argument 2 of `Perl_sv_2pv(SV *,
STRLEN *)'
make: *** [Xerces.o] Error 1



I am running Mac OS X 10.1.2 and the output from perl -V is



[mrc1-003:local/install/XML-Xerces-1.5.2_0] adam% perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=darwin, osvers=1.4, archname=darwin
    uname='darwin law 1.4 darwin kernel version 1.3: sun jul 22 16:20:35 pdt
2001; aramesh:buildobjrelease_ppc power macintosh powerpc '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags='
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-O3', gccversion=Apple devkit-based CPP 6.0
    cppflags='-g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
    ccflags ='-g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/usr/lib
    libs=-lm -lc
    libc=/System/Library/Frameworks/System.framework/System, so=dylib,
useshrplib=true, libperl=libperl.dylib
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-bundle  -flat_namespace -undefined suppress'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under darwin
  Compiled at Sep  2 2001 17:24:33
  @INC:
    /System/Library/Perl/darwin
    /System/Library/Perl
    /Library/Perl/darwin
    /Library/Perl
    /Library/Perl
    /Network/Library/Perl/darwin
    /Network/Library/Perl
    /Network/Library/Perl
    .
[mrc1-003:local/install/XML-Xerces-1.5.2_0] adam%


Thanks for any assistance

Adam


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


Re: Installation troubles

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Adam Witney" <aw...@sghms.ac.uk> writes:

> Hi,
> 
> I have been trying to install XML-Xerces-1.5.2_0 on macOSX however I receive
> errors during the make
> 
> I downloaded and installed xerces-c-src1_5_2.tar.gz (everything seemed ok)
> 
> But during the 'make' step for XML-Xerces-1.5.2_0 I receive an error. Here
> is the output from make
> 
> [mrc1-003:local/install/XML-Xerces-1.5.2_0] adam% make

[snip]

> Xerces.C: In function `void _wrap_new_MemBufInputSource(CV *)':
> Xerces.C:54400: passing `unsigned int *' as argument 2 of `Perl_sv_2pv(SV *,
> STRLEN *)'
> make: *** [Xerces.o] Error 1

This isn't the first time I've heard of this, but it makes no sense to
me. The only place that _wrap_new_MemBufInputSource access
Perl_sv_2pv() is:

        arg3 = (char *) SvPV(ST(1),PL_na); 

which is perfectly valid (if only slightly inefficient) Perl. Passing
the PL_na global variable is what Perl tells you to do. In fact the
nearly identical line appears many times throughout the file.

You may try to modify it to be:

        arg3 = (char *) SvPV_nolen(ST(1)); 

and let me know what happens to the compile.

jas.


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