Hi Guys,
I have ( I thought ) up untill now, had inline wourking successfully under HP-UX 11.00
with everything compiled using the gcc (suppied by devresources.hp.com ).
Using Inline 0.42 I now have a problem where the compile barfs when I try and load the
program: perl -MMY::MODULE -e 1 - but if I go to the build directory and type"make" -
it does!
which cc in my shell returns: /opt/hppa-000310/H-hppa1.1-hp-hpux11.00/bin/cc which is
a link to the gcc.
I'm a bit stumped!
I apologise for the size of the email - below is hopefully the relevent info.
program extract...
use Inline ( C=> Config =>
DIRECTORY => '/tmp/Inline',
ENABLE => 'UNTAINT',
INC => '-I/usr/local/include',
LIBS => '-L/usr/local/lib -ltidy' );
some time later...
use Inline C => <<'END_C';
#include <tidy.h>
SV* tidyParser(char* filein, char* fileout, char* errorfile){
int ret;
ret = tidyParse( filein, fileout, errorfile);
return newSViv( ret );
}
END_C
My perl buld is:
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=hpux, osvers=11.00, archname=PA-RISC2.0
uname='hp-ux edi02 b.11.00 a 9000861 2007681247 two-user license '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O', gccversion=2.9-hppa-000310
cppflags='-D_HPUX_SOURCE -I/usr/local/include'
ccflags ='-D_HPUX_SOURCE -I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lnm -lndbm -lgdbm -ldld -lm -lc -lndir -lcrypt
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under hpux
Compiled at Feb 12 2001 18:19:42
@INC:
/web/gccperl5/lib/5.00503/PA-RISC2.0
/web/gccperl5/lib/5.00503
/web/gccperl5/lib/site_perl/5.005/PA-RISC2.0
/web/gccperl5/lib/site_perl/5.005
A
The out.make file is:
mkdir blib
mkdir blib/lib
mkdir blib/lib/DVS
mkdir blib/lib/DVS/Tidy
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/DVS
mkdir blib/arch/auto/DVS/Tidy
mkdir blib/arch/auto/DVS/Tidy/Tidy_319a
mkdir blib/lib/auto
mkdir blib/lib/auto/DVS
mkdir blib/lib/auto/DVS/Tidy
mkdir blib/lib/auto/DVS/Tidy/Tidy_319a
/web/gccperl5/bin/perl -I/web/gccperl5/lib/5.00503/PA-RISC2.0
-I/web/gccperl5/lib/5.00503 /web/gccperl5/lib/5.00503/ExtUtils/xsubpp -typemap
/web/gccperl5/lib/5.00503/ExtUtils/typemap Tidy_319a.xs >xstmp.c && mv xstmp.c
Tidy_319a.c
cc -c -I/usr/local/include -D_HPUX_SOURCE -I/usr/local/include -O
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fpic
-I/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE Tidy_319a.c
cc: warning 422: Unknown option "f" ignored.
cc: warning 422: Unknown option "i" ignored.
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/iperlsys.h", line 319: error 1000:
Unexpected symbol: "__attribute__".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/iperlsys.h", line 319: error 1000:
Unexpected symbol: ")".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/iperlsys.h", line 318: error 1518:
Function may not be initialized.
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/proto.h", line 71: error 1000:
Unexpected symbol: "__attribute__".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/proto.h", line 294: error 1000:
Unexpected symbol: "__attribute__".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/proto.h", line 294: error 1000:
Unexpected symbol: ";".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/proto.h", line 295: error 1000:
Unexpected symbol: "__attribute__".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/perl.h", line 2389: error 1000:
Unexpected symbol: ";".
cc: "/web/gccperl5/lib/5.00503/PA-RISC2.0/CORE/perl.h", line 2437: error 1000:
Unexpected symbol: ";".
cc: "/usr/include/sys/ipc.h", line 116: error 1000: Unexpected symbol: ";".
cc: "/usr/include/sys/sem.h", line 58: error 1000: Unexpected symbol: ";".
cc: "/usr/include/sys/sem.h", line 83: error 1000: Unexpected symbol: ";".
cc: "/usr/include/sys/sem.h", line 164: error 1000: Unexpected symbol: ";".
cc: "/usr/include/sys/sem.h", line 179: error 1000: Unexpected symbol: ";".
cc: "/w
Blah, blah blah.