- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Perl compilation woes!
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
11-16-2001 05:35 AM
11-16-2001 05:35 AM
Perl compilation woes!
Having trouble compiling Perl 5.6.1 on 11.11 with gcc 3.0.1 (and DBI, but its the same problem). I keep getting an error in relation to /usr/lib/include/symbol.h as shown below. Anyone got any "pearls" of wisdom?!
Heres the error:
Checking to see on how many bits at a time your select() operates...
In file included from try.c:23:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:439: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:441: parse error before "bsize_t"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 05:45 AM
11-16-2001 05:45 AM
Re: Perl compilation woes!
Does this error prevents you from compiling/linking perl?
Could you attach the complete listing of you compilation?
Andre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 06:26 AM
11-16-2001 06:26 AM
Re: Perl compilation woes!
This is actually happening at configure time rather than compile time plus I'm getting the same problem when doing the compile for DBI. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 06:32 AM
11-16-2001 06:32 AM
Re: Perl compilation woes!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 06:36 AM
11-16-2001 06:36 AM
Re: Perl compilation woes!
Any documentation we have come across suggests this is the only way to compile the ORACLE DBD for perl on HP-UX 11.XX
We are also getting the Error when trying to make DBI with no changes in its configuration.
This seems to be a compiler problem although I'm loath to conclude that there is a problem with the socket.h header file. This does not seem logical!
We have tried both gcc 3.0, 3.01 and the bundled non-ANSI compliant CC compilers and all produce the same error.
Regards,
Barry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 06:51 AM
11-16-2001 06:51 AM
Re: Perl compilation woes!
Hope it helps.
Andre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 07:10 AM
11-16-2001 07:10 AM
Re: Perl compilation woes!
That is pretty much out software setup but we are getting a parse error in socket.h
We have tried both GCC and the HP Ansi C compiler.
We get the following output when trying to do a make on DBI after a successful perl Makefile.PL
gcc -c -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-strict-aliasing -I/usr/lo
cal/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" -fPIC -I/opt/perl/lib/5.6.1/PA-
RISC1.1-thread-multi/CORE -Wall -Wno-comment Perl.c
the Error produced is:
In file included from /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE/perl.h:713,
from DBIXS.h:19,
from Perl.xs:1:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:439: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:441: parse error before "bsize_t"
/usr/include/sys/socket.h:456: parse error before "__sendfile64"
/usr/include/sys/socket.h:456: parse error before "bsize_t"
/usr/include/sys/socket.h:457: parse error before "__sendpath64"
/usr/include/sys/socket.h:457: parse error before "bsize_t"
/usr/include/sys/socket.h:459: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:459: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:460: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:460: parse error before "bsize_t"
make: *** [Perl.o] Error 1
At this stage, we have tried several versions of GCC and the HP Ansi C Compiler.
When building Perl itself, we encounter similar parse errors in other standard C header files such as time.h
The following is a sample from trying to build Perl after a successful Configure:
# pwd
/tmp/Compilers/perl-5.6.1
# make
`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = /opt/gcc/bin/gcc -DPERL_CORE -c -fpic -O
In file included from perl.h:713,
from miniperlmain.c:12:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:439: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:441: parse error before "bsize_t"
make: *** [miniperlmain.o] Error 1
Regards,
Barry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 07:29 AM
11-16-2001 07:29 AM
Re: Perl compilation woes!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2001 08:06 AM
11-16-2001 08:06 AM
Re: Perl compilation woes!
We finally got it sorted by installing the HP Ansi C Compiler. Everything compiled relatively smoothly after that.
Thanks again for all the help, much appreciated.
Regards,
Barry