Thread

  1. build of PL/Perl cannot find include files.

    PostgreSQL Bugs List <pgsql-bugs@postgresql.org> — 2001-04-24T14:36:19Z

    Mark Hollomon (mhh@nortelnetworks.com) reports a bug with a severity of 1
    The lower the number the more severe it is.
    
    Short Description
    build of PL/Perl cannot find include files.
    
    Long Description
    HPUX 10.20
    PostgreSQL 7.1
    native compiler
    
    A build that includes PL/Perl fails with :
    
    gmake[1]: Entering directory `/home/mhh/src/postgresql-7.1/src/pl/plperl'
    cc -c  -Ae -O +Onolimit    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z -I/home/u2/vobadm/perl5/lib/5.00503/PA-RISC1.1/CORE  plperl.c
    cpp: "plperl.c", line 51: error 4036: Can't open include file 'executor/spi.h'.
    cpp: "plperl.c", line 52: error 4036: Can't open include file 'commands/trigger.h'.
    cpp: "plperl.c", line 53: error 4036: Can't open include file 'utils/elog.h'.
    cpp: "plperl.c", line 54: error 4036: Can't open include file 'fmgr.h'.
    cpp: "plperl.c", line 55: error 4036: Can't open include file 'access/heapam.h'.
    cpp: "plperl.c", line 57: error 4036: Can't open include file 'tcop/tcopprot.h'.
    cpp: "plperl.c", line 58: error 4036: Can't open include file 'utils/syscache.h'.
    cpp: "plperl.c", line 59: error 4036: Can't open include file 'catalog/pg_proc.h'.
    cpp: "plperl.c", line 60: error 4036: Can't open include file 'catalog/pg_type.h'.
    gmake[1]: *** [plperl.o] Error 1
    
    
    Sample Code
    
    
    No file was uploaded with this report
    
    
    
  2. Re: build of PL/Perl cannot find include files.

    Tom Lane <tgl@sss.pgh.pa.us> — 2001-04-25T20:12:05Z

    Mark Hollomon (mhh@nortelnetworks.com) writes:
    > A build that includes PL/Perl fails with :
    
    > gmake[1]: Entering directory `/home/mhh/src/postgresql-7.1/src/pl/plperl'
    > cc -c  -Ae -O +Onolimit    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z -I/home/u2/vobadm/perl5/lib/5.00503/PA-RISC1.1/CORE  plperl.c
    
    Hm.  It works fine for me -- I get cc lines like
    
    cc -c -I../../../src/include -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -O     -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z -I/opt/perl5.6.0/lib/5.6.0/PA-RISC2.0/CORE  plperl.c
    
    Please see if you can figure out why EXTRA_INCLUDES isn't getting
    propagated from Makefile.PL into the finished Makefile.  (The lack of 
    -D_HPUX_SOURCE in your command lines also seems pretty fishy...)
    
    			regards, tom lane