[HPADM] problems compiling perl 5.8.3

From: Goerke, Michael (Michael.Goerke@IUE.it)
Date: Tue Mar 02 2004 - 03:57:48 EST


Dear list,

I would like to get some help on how to overcome a compilation error when trying to compile perl 5.8.3. I downloaded the source from Software Porting And Archive Centre for HP-UX (http://hpux.connect.org.uk/ with several mirrors), where I picked the prerequisites as well: gcc-3.2.2, bison-1.875, flex-2.5.4a, gmake-3.80 - all four were taken in binary format.
When trying to compile the perl source I get now:
$ gmake
`sh cflags "optimize='-O2'" miniperlmain.o` miniperlmain.c
          CCCMD = gcc -DPERL_CORE -c -D_HPUX_SOURCE -mpa-risc-2-0 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -O2 -Wall
In file included from perl.h:709,
                 from miniperlmain.c:27:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:484: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:486: error: parse error before "bsize_t"
gmake: *** [miniperlmain.o] Error 1

Seraching the archive gave me some idea about a missing library/include PATH in the compilation environment. So I set

export LDOPTS="+s -s -L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2 -L/usr/local/lib -L/usr/lib"

but the result is identical to the first one.

Could you provide any insights how to overcome the problem? (Installing the binary wouldn't help, as I have to install additional modules as well, and sooner or later the gcc thing would re-appear.)

TIA, I'll summarize,
Michael

---
Michael Goerke, European University Institute, Computing Service
                Via Boccaccio 121, 50133 Firenze, Italy
                phone: +39 055 4685-531 (voice), 4685-205 (fax)
                email: michael.goerke@iue.it
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:39 EDT