compiling pgsql_perl5 modul (Pg) fails on hp-ux

compiling pgsql_perl5 modul (Pg) fails on hp-ux

Post by TDV Wirtg » Sat, 12 Oct 2002 14:23:37



Hello,

im currently trying to compile the 1.8.0 version of pgsql_perl5 (Pg)
modul by Edmund Mergl, which is part of the source distribution of
postgresql 7.2.1.

If I try to create the module by compiling postgresql with the
parameter "--with-perl", the compilation fails when it comes to the
module (required libpq.sl and libpq-fe.h should exist at that point).

Compiling postgresql without the modul works perfectly, but compiling
the module afterwards fails (errors are identical).

An important point may be that the os of the current test-system is
hp-ux 10.20 and it also has to work on 11.00 at a later date.

Of course the environment variables POSTGRES_LIB and POSTGRES_INCLUDE
have been set/exported (tested the absolute paths of the installed
postgresql and the compiled source-path). The source of the module
resides inside the source-tree of postgresql. Setting the env variable
SRCDIR to . or to the absolute source-path only changes the errors,
setting PGLIBDIR didnt make a difference.

Using make instead of gmake and using gcc instead of cc (symbolic link
needed to fool make/gmake) also resulted only in varying errors
(listed below). Btw gcc is 3.0.2 and gmake 3.79.1.

I suppose the separate installation of pgsql_perl5 is identical on
every unix, so the environment variables have to be the key.

Some of the errors are listed below,
thank you for your assistance,
yours Andreas Hoffmann.

Error when using "--with-perl" parameter (gcc and gmake necessary):
gmake -C ../../../src/interfaces/libpq all
gmake[1]: Entering directory
`/hdd2/postgresql-7.2.1/src/interfaces/libpq'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/hdd2/postgresql-7.2.1/src/interfaces/libpq'
gmake -f Makefile all VPATH=
gmake[1]: Entering directory
`/hdd2/postgresql-7.2.1/src/interfaces/perl5'
cp ./Pg.pm blib/lib/Pg.pm
AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
/opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC1.1
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap
/opt/perl5/lib/5.6.1/ExtUtils/typemap -typemap typemap Pg.xs > Pg.c
cc -c -I/opt/postgresql/include -Ae -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O +Onolimit   -DVERSION=\"1.9.0\"
-DXS_VERSION=\"1.9.0\" +z -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE  Pg.c
cc: +Onolimit: No such file or directory
cc: +z: No such file or directory
<command line>: missing '(' after predicate
gmake[1]: *** [Pg.o] Error 1
gmake[1]: Leaving directory
`/hdd2/postgresql-7.2.1/src/interfaces/perl5'
gmake: *** [all] Error 2

Error when using all mentioned environment variables (gcc and gmake
used):
gmake -C ../../../src/interfaces/libpq all
gmake[1]: Entering directory
`/hdd2/postgresql-7.2.1/src/interfaces/libpq'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/hdd2/postgresql-7.2.1/src/interfaces/libpq'
gmake -f Makefile all VPATH=
gmake[1]: Entering directory
`/hdd2/postgresql-7.2.1/src/interfaces/perl5'
cp ./Pg.pm blib/lib/Pg.pm
AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
/opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC1.1
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap
/opt/perl5/lib/5.6.1/ExtUtils/typemap -typemap typemap Pg.xs > Pg.c
cc -c -I/opt/postgresql/include -Ae -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O +Onolimit   -DVERSION=\"1.9.0\"
-DXS_VERSION=\"1.9.0\" +z -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE  Pg.c
cc: +Onolimit: No such file or directory
cc: +z: No such file or directory
<command line>: missing '(' after predicate
gmake[1]: *** [Pg.o] Error 1
gmake[1]: Leaving directory
`/hdd2/postgresql-7.2.1/src/interfaces/perl5'
gmake: *** [all] Error 2

Error when using all mentioned environment variables (cc and gmake
used):
abs_builddir=`pwd`; \
abs_libpq_builddir=`cd ../../../src/interfaces/libpq && pwd`; \
cd . && \
SRCDIR=. \
PGLIBDIR=/opt/postgresql/lib \
/opt/perl5/bin/perl Makefile.PL \
  INC='-I. -I../../../src/interfaces/libpq -I../../../src/include
-I/opt/TWWfsw/libopenssl09/include' \
  LIBS="-L$abs_libpq_builddir -lpq" \
  INSTALLSITEARCH='$(DESTDIR)' \
  INSTALLSITELIB='$(DESTDIR)' \
  INSTALLMAN3DIR='$(DESTDIR)' \
  MAKEFILE="$abs_builddir/Makefile"
Checking if your kit is complete...
Looks good
Writing /hdd2/postgresql-7.2.1/src/interfaces/perl5/Makefile for Pg
gmake -C ../../../src/interfaces/libpq all
gmake[1]: Entering directory
`/hdd2/postgresql-7.2.1/src/interfaces/libpq'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/hdd2/postgresql-7.2.1/src/interfaces/libpq'
gmake -f Makefile all VPATH=
gmake[1]: Entering directory
`/hdd2/postgresql-7.2.1/src/interfaces/perl5'
cp ./Pg.pm blib/lib/Pg.pm
AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
/opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC1.1
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap
/opt/perl5/lib/5.6.1/ExtUtils/typemap -typemap typemap Pg.xs > Pg.c
cc -c -I. -I../../../src/interfaces/libpq -I../../../src/include
-I/opt/TWWfsw/libopenssl09/include -Ae -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O +Onolimit   -DVERSION=\"1.9.0\"
-DXS_VERSION=\"1.9.0\" +z -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE  Pg.c
(Bundled) cc: warning 480: The -A option is available only with the
C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the
C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Onolimit option is available only with
the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +z option is available only with the
C/ANSI C product; ignored.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538:
error 1000: Unexpected symbol: "nbytes".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539:
error 1000: Unexpected symbol: "elements".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540:
error 1000: Unexpected symbol: "size_t".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538:
error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539:
error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539:
error 1573: Type of "size" is undefined due to an illegal declaration.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540:
error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540:
error 1573: Type of "nbytes" is undefined due to an illegal
declaration.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 543:
error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
1940: error 1000: Unexpected symbol: "SV".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h", line
417: warning 5: "const" will become a keyword.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h", line
417: error 1000: Unexpected symbol: "const".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/regexp.h", line
13: error 1000: Unexpected symbol: "U8".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 339:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 340:
error 1000: Unexpected symbol: "ANY".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 341:
error 1000: Unexpected symbol: "GV".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 25:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 26:
error 1000: Unexpected symbol: "ANY".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 27:
error 1000: Unexpected symbol: "GV".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16:
error 1000: Unexpected symbol: "U32".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18:
error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 23:
error 1000: Unexpected symbol: "MAGIC".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line 25:
warning 5: "const" will become a keyword.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line 25:
error 1000: Unexpected symbol: "unsigned".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
1976: error 1000: Unexpected symbol: "CURCUR".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
2187: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
2188: error 1000: Unexpected symbol: "I32".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
2188: error 1000: Unexpected symbol: "SV".
(Bundled) cc: error 2017: Cannot recover from earlier errors,
terminating.
gmake[1]: *** [Pg.o] Error 1
gmake[1]: Leaving directory
`/hdd2/postgresql-7.2.1/src/interfaces/perl5'
gmake: *** [all] Error 2

 
 
 

1. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN--HP-UX, Oracle DBA, Baan

******** VISIT US AT http://www.selectjobs.com ***********
=
*************************************************************
Company    : SW Consulting, Inc.
Job Title  : HP-UX, Oracle DBA, Baan
Location   : Phoenix, AZ
Job Type   : Contract or Full-Time Salaried
============================
SW Consulting, Inc is currently seeking programmer/analysts and project leaders
for consulting opportunities in Detroit, Michigan Salaries for professionals
with the following skills start at $70,000/year

SW Consulting is currently seeking a DBA or HP-UX System Administrator with
HP-UX, Oracle, Baan skills

Travel Required          :None
Educational Requirements :None
=
Required Skills
* HP-9000 2 Years
* HP-UX 2 Years
* ORACLE 2 Years
* BAAN
*
=
Hourly Rates for individuals with these skills range from $35 - $55/hour with
some paying much higher depending upon skills and qualifications For more
information please contact Bruce Ragain at SW Consulting, Inc
=
Contact Information:
Reference : SWC110597
Bruce Ragain
SW Consulting, Inc.
13180 N. Cleveland Ave.
Suite 112
N. Ft. Myers, FL 33903

Phone: 800-494-4977
941-656-1011
Fax No: 941-656-1777
***********************  http://www.selectjobs.com  ****************************

                The On-Line, On-Target Job Finder for Computer Professionals

** Post Your Resume and see results immediately!! ** Always free **
** Post jobs for 30 days for $40, unlimited postings $250/month
** Matching Resumes E-mailed daily
**  Your ads are virtually guaranteed to be seen by jobseekers on the NET' **

                    ** Automatic Posting to **
   ** Yahoo            ** Americas Job Bank    ** Career City
   ** HeadHunter.Net   ** Classifieds 2000     ** Usenet Newsgroups
               *** OVER 20 MILLION HITS/MONTH COMBINED !!! ***

***********************  http://www.selectjobs.com  ****************************

2. Connecting to DB via Applet

3. Reading X number of records from a table

4. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN-HP-UX, Oracle DBA, Baan

5. Array Popup

6. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN--HP-UX, Oracle DBA, Baan

7. SQL Server 7.0 and Jobs.

8. HP UX 10.20 -> HP UX 11

9. 18004-Nationwide-HP-HP-9000-HP-UX-HP Speedware-PowerHouse-Amisys-PowerBuilder-Vi

10. Migration from HP-UX 9.01 to HP-UX 10.10

11. 18004-Nationwide-HP-HP-9000-HP-UX-HP Speedware-PowerHouse-Amisys-PowerBuilder-Vi

12. Brio Query on HP-UX : BQ performance on HP-UX