- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Compiling perl 5.8.6 and later on HP-UX 11.23
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
Discussions
Discussions
Forums
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
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
тАО10-10-2005 02:42 AM
тАО10-10-2005 02:42 AM
I would like to reopen this case, as it would there be new issues to solve the problem.
I have gcc 3.4.4 installed on HP-UX 11.23 box. When trying to build perl 5.8.7 from source (CPAN)
sh Configure -Dcc=gcc -d
works fine, but then gmake fails:
`sh cflags "optimize='-g -O'" miniperlmain.o` miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -Wall
In file included from perl.h:4368,
from miniperlmain.c:36:
/usr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}' token
In file included from perl.h:4369,
from miniperlmain.c:36:
/usr/include/sys/sem.h:91: error: field `sem_perm' has incomplete type
gmake: *** [miniperlmain.o] Error 1
A workaround to thism problem I found in this forum consist on temporary replacing /usr/include/sys/ipc.h which the version for HP-UX 11.11. It really works, but of course it is not a good idea for keeping a stable system, and you have to switch the file every time you plan to upgrade perl and/or modules.
If you have found a permanent way to correct these (Configure options, editing config.sh, compiler version, etc) please let me know. Thanks in advance (and points granted) for your comments.
Jose Enrique
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 03:23 AM
тАО10-10-2005 03:23 AM
Re: Compiling perl 5.8.6 and later on HP-UX 11.23
Search for PERL5
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 03:33 AM
тАО10-10-2005 03:33 AM
Re: Compiling perl 5.8.6 and later on HP-UX 11.23
Remember that include/header files on impact on files being compiled. A running system is NOT influenced by changes in include files (thank god :) )
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 07:24 AM
тАО10-10-2005 07:24 AM
Re: Compiling perl 5.8.6 and later on HP-UX 11.23
I know you were able to build gcc-4.0 in an Itanium test drive. Could you succesfully build Perl on it? If so, I'd appreciate a million your comments. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 01:02 PM
тАО10-10-2005 01:02 PM
Re: Compiling perl 5.8.6 and later on HP-UX 11.23
GNU gcc caused me some headaches, but they were no showstoppers.
If you want a real temptation that causes headaches, try to build gcc-4.1 on AIX. It took me a week. But building perl with that was a breaze.
HP's testdrive systems have been moved to another phisical location and currentle are not as accessible to me as they used to be. And I have less time to experiment with Open Source on the testdrives.
I still think that fixing the include file can be done in a safe way. When building the kernel (if building it actually uses that file, which I'm not too sure of), it most likely has some other defines as well, like IN_KERNEL or something.
Try to find that our, put the original code in #ifdef IN_KERNEL and the correct code in the #else, and you're safe.
I hereby ask other people to tell the correct #ifdef if they know it. I do not have a 11.23 handy :)
Enjoy, Have FUN! H.Merijn
- Tags:
- test drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 07:23 PM
тАО10-10-2005 07:23 PM
SolutionOn my system gcc's private copy of types.h is found in
/usr/local/lib/gcc/hppa2.0w-hp-hpux11.23/4.0.0/include/sys/types.h
Of course your path will be different but you can make an educated guess.
Examine gcc's types.h and check if it has definition of cid_t. It should look like
# ifndef _CMPTID_T
# define _CMPTID_T
typedef int32_t cid_t; /* For compartment IDs */
typedef cid_t cmpt_t;
# endif /* _CMPTID_T */
If definition is not there add it. It's better then editing files in /usr/include.
Or better still download gcc for 11.23 from http://www.hp.com/go/gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 02:21 AM
тАО10-11-2005 02:21 AM