HP's Bundled C-Compiler CC is not the best compiler around (to say the least)
so you better install HP-Ansi C or Softbench C compiler ($$$) or go with 
gcc (it is better to compile perl and all the xs modules with the same compiler)

With the installed archive of perl you have you should use HP Ansi C compiler
(available on an Add-ON CD from HP, ask your Unix-Support, they probably have
a depot for it)

Cheers
 
+rl
-------------------------------------
Roland Lammel
-------------------------------------
Services / Technical Assistance / PPA
Kapsch AG, CarrierCom 
Wagenseilgasse, A-1121 Wien
-------------------------------------
mailto:[EMAIL PROTECTED]
Tel:   +43 1 60501 - 3456
Fax:   +43 1 60501 - 3405
Mobil: +43 664 628 - 3456
-------------------------------------

"Ramirez, Luis" wrote:
> 
> Hi!!!
> I installed perl 5.6.1 with  HP-UX 10.20 Dynamically Linked  Binary
> (gzipped)  package.
> I'm trying to install DBI module (DBI-1.21) but when I run the make, it has
> problems.
> This is the result:
> 
> ttyqb->triconhp:/opt/prod/dataware/prl5_6_1/DBI-1.21# make
>         cp Changes blib/lib/DBI/Changes.pm
> cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
> cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
> cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
> cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
> cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
> cp dbipport.h blib/arch/auto/DBI/dbipport.h
> cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
> cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
> cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
> cp DBI.pm blib/lib/DBI.pm
> cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
> cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
> cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
> cp Driver.xst blib/arch/auto/DBI/Driver.xst
> cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
> cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
> cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
> cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
>         /opt/perl5/bin/perl -p -e "s/~DRIVER~/Perl/g" <
> blib/arch/auto/DBI/Drive
> r.xst > Perl.xsi
>         /opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC1.1
> -I/opt/perl5/lib/5
> ..6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap
> /opt/perl5/lib/5.6.1/ExtUtil
> s/typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
>         cc -c  -Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit
> -D
> VERSION=\"1.21\"  -DXS_VERSION=\"1.21\" +z
> -I/opt/perl5/lib/5.6.1/PA-RISC1.1/COR
> E -DDBI_NO_THREADS Perl.c
> (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
> pro
> duct; ignored.
> (Bundled) cc: warning 480: The -O option is available only with the C/ANSI C
> pro
> duct; ignored.
> (Bundled) cc: warning 480: The +Onolimit option is available only with the
> C/ANS
> I C product; ignored.
> (Bundled) cc: warning 480: The +z option is available only with the C/ANSI C
> pro
> duct; ignored.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538: error
> 100
> 0: Unexpected symbol: "nbytes".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error
> 100
> 0: Unexpected symbol: "elements".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error
> 100
> 0: Unexpected symbol: "size_t".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538: error
> 150
> 6: Parameters allowed in function definition only.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error
> 170
> 5: Function prototypes are an ANSI feature.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error
> 157
> 3: Type of "size" is undefined due to an illegal declaration.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error
> 170
> 5: Function prototypes are an ANSI feature.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error
> 157
> 3: Type of "nbytes" is undefined due to an illegal declaration.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 543: error
> 170
> 5: Function prototypes are an ANSI feature.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 1940:
> error 10
> 00: Unexpected symbol: "SV".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h", line 417:
> warni
> ng 5: "const" will become a keyword.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h", line 417:
> error
>  1000: Unexpected symbol: "const".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/regexp.h", line 13:
> error 10
> 00: Unexpected symbol: "U8".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 339: error
> 1000:
>  Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 340: error
> 1000:
>  Unexpected symbol: "ANY".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 341: error
> 1000:
>  Unexpected symbol: "GV".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 25: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 26: error
> 1000:
> Unexpected symbol: "ANY".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 27: error
> 1000:
> Unexpected symbol: "GV".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16: error
> 1000:
> Unexpected symbol: "U32".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18: error
> 1000:
> Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 23: error
> 1000:
> Unexpected symbol: "MAGIC".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line 25:
> warning 5:
>  "const" will become a keyword.
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line 25: error
> 1000
> : Unexpected symbol: "unsigned".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 1976:
> error 10
> 00: Unexpected symbol: "CURCUR".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 2187:
> error 10
> 00: Unexpected symbol: "*".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 2188:
> error 10
> 00: Unexpected symbol: "I32".
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 2188:
> error 10
> 00: Unexpected symbol: "SV".
> (Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
> *** Error exit code 1
> 
> Stop.
> 
> This is the output of perl -V:
> 
> Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
>   Platform:
>     osname=hpux, osvers=10.20, archname=PA-RISC1.1
>     uname='hp-ux rydal b.10.20 a 9000777 2011764956 two-user license '
>     config_args=''
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=unde
> f
>     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>   Compiler:
>     cc='cc', ccflags =' -Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',
>     optimize='-O +Onolimit',
>     cppflags='-Ae'
>     ccversion='A.10.32.18', gccversion='', gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize
> =8
>     alignbytes=8, usemymalloc=y, prototype=define
> 
>   Linker and Libraries:
>     ld='ld', ldflags =''
>     libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
>     libs=-lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt -lsec
>     perllibs=-lnsl_s -ldld -lm -lc -lndir -lcrypt -lsec
>     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,deferr
> ed '
>     cccdlflags='+z', lddlflags='-b -s -a shared'
> 
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_LARGE_FILES
>   Built under hpux
>   Compiled at May 31 2001 16:56:39
>   @INC:
>     /opt/perl5/lib/5.6.1/PA-RISC1.1
>     /opt/perl5/lib/5.6.1
>     /opt/perl5/lib/site_perl/5.6.1/PA-RISC1.1
>     /opt/perl5/lib/site_perl/5.6.1
>     /opt/perl5/lib/site_perl
>     .
> 
> Reading the README file, it said that If  I get compiler errors, I must use
> a Perl that was built on the system
> And use the same compiler that was used to build the Perl I'm using.
> 
> What Should I do??
> Must I configure some variable or preinstall before another module??
> If the README file is correct, What compiler I must use??
> 
> Thanks for your help!!!
> Greetings!!
> 
> Luis Manuel Ram�rez
> 
> ----------------------------
> This communication is confidential and may be legally privileged.  If you
> are not the intended recipient, (i) please do not read or disclose to
> others, (ii) please notify the sender by reply mail, and (iii) please delete
> this communication from your system.  Failure to follow this process may be
> unlawful.  Thank you for your cooperation.
> ----------------------------

Reply via email to