- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: compile errors on DBI module
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 03:13 AM
12-22-2005 03:13 AM
Having issues compiling perl DBI module.
HPUX 11i
Perl5-32 D.5.8.3.B
gcc 3.3.3
binutils 2.15a
DBI-1.50
perl Makefile.PL "cc=/usr/local/bin/gcc" completes without error.
Looks like GCC does not like the OPTIMIZE options.
gcc: +Onolimit: No such file or directory
gcc: +Opromote_indirect_calls: No such file or directory
gcc: +DAportable: No such file or directory
gcc: +DS2.0: No such file or directory
gcc: +Z: No such file or directory
cc1: error: unrecognized option `-fast'
*** Error exit code 1
Any suggestions ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 03:25 AM
12-22-2005 03:25 AM
SolutionDBI tries to use the flags that perl was built with, and they are native C flags, not applicable to gcc
You can try to change the makefile
remove +Onolimit
remove +Opromote_indirect_calls
replace +DAportable with -mpa-risc-1-1
Ahhhrg: +DS2.0 contradicts +DAportable! remove or use -mpa-risc-2-0
replace +Z with -mPIC
remove -fast (which should never have been there, because it is unreliable with perl)
The EASIER solution would be to remove the perl distro as installed with swremove, and install a gcc built version instead. You can find very recent builds on my sit.
My HP ITRC site pages can be found at (please use LA as primary choice):
USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 04:40 AM
12-22-2005 04:40 AM
Re: compile errors on DBI module
Currently working on removing the options.
Ran into a issue with that as PIC was not a valid option.
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /opt/perl/lib/5.8.3/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.3/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
/usr/local/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mpa-risc-1-1 -DVERSION=\"1.50\" -DXS_VERSION=\"1.50\" -mPIC "-I/opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi/CORE" Perl.c
cc1: error: invalid option `PIC'
*** Error exit code 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 04:44 AM
12-22-2005 04:44 AM
Re: compile errors on DBI module
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 05:13 AM
12-22-2005 05:13 AM
Re: compile errors on DBI module
/perl/lib/5.8.3/PA-RISC1.1-thread-multi/CORE" Perl.c
*** Error exit code 1
I am pulling down the gcc compiled version of perl.
I will post the results.
Thanks again!!