greetings,

i do not have a lot of experience with C/C++, so i feel a little lost. i 
hope someone can point me in the right direction.

i am trying to compile the p5-DBD-Pg port under FreeBSD. it seems to 
fail when compiling of "Pg.c" starts. i have tried this on two other 
FreeBSD boxen, with none of them failing. it seems that this problem 
only exists on my installation. the same thing happens if i try to 
compile DBD-Pg from scratch myself (w/o ports), from the tarball from CPAN.


som info about my system:


uname -a
FreeBSD xxx.xxx.xxx 4.7-RC FreeBSD 4.7-RC #0: Fri Sep 27 20:04:25 CEST 
2002    [EMAIL PROTECTED]/usr/src/sys/compile/TANGO_SMP-20020926  i386


perl -v
This is perl, version 5.005_03 built for i386-freebsd


perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
   Platform:
     osname=freebsd, osvers=4.0-current, archname=i386-freebsd
     uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current 
#0: $Dat
e$'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef useperlio=undef d_sfio=undef
   Compiler:
     cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release)
     cppflags=''
     ccflags =''
     stdchar='char', d_stdstdio=undef, usevfork=true
     intsize=4, longsize=4, ptrsize=4, doublesize=8
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     alignbytes=4, usemymalloc=n, prototype=define
   Linker and Libraries:
     ld='cc', ldflags ='-Wl,-E -lperl -lm '
     libpth=/usr/lib
     libs=-lm -lc -lcrypt
     libc=, so=so, useshrplib=true, libperl=libperl.so.3
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' 
-Wl,-R/usr/lib'
     cccdlflags='-DPIC -fpic', lddlflags='-Wl,-E -shared -lperl -lm '


Characteristics of this binary (from libperl):
   Built under freebsd
   Compiled at Sep 27 2002 18:40:39
   @INC:
     /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
     /usr/local/lib/perl5/site_perl/5.005
     .
     /usr/libdata/perl/5.00503/mach
     /usr/libdata/perl/5.00503



PostgreSQL version: postgresql-7.2.2

DBD-Pg version: p5-DBD-Pg-1.13

DBI version: DBI 1.28



output from make:

===>  Extracting for p5-DBD-Pg-1.13
 >> Checksum OK for DBD-Pg-1.13.tar.gz.
===>   p5-DBD-Pg-1.13 depends on file: 
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/DBI.pm - found
===>   p5-DBD-Pg-1.13 depends on shared library: pq.2 - found
===>  Patching for p5-DBD-Pg-1.13
===>  Configuring for p5-DBD-Pg-1.13
Configuring Pg
Remember to actually read the README file !
OS: freebsd
Using DBI 1.28 installed in 
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI
Checking if your kit is complete...
Looks good
Writing Makefile for DBD::Pg
===>  Building for p5-DBD-Pg-1.13
mkdir blib
mkdir blib/lib
mkdir blib/lib/DBD
cp Pg.pm blib/lib/DBD/Pg.pm
cp dbd-pg.pod blib/lib/DBD/dbd-pg.pod
/usr/bin/perl5.00503 -I/usr/libdata/perl/5.00503/mach 
-I/usr/libdata/perl/5.00503 /usr/libdata/perl/5.00503/ExtUtils/xsubpp 
-typemap /usr/libdata/perl/5.00503/ExtUtils/typemap Pg.xs >xstmp.c && mv 
xstmp.c Pg.c
cc -c -I/usr/local/include 
-I/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI -O -pipe 
    -DVERSION=\"1.13\"  -DXS_VERSION=\"1.13\" -DPIC -fpic 
-I/usr/libdata/perl/5.00503/mach/CORE  Pg.c
Pg.xs: In function `XS_DBD__Pg__dr_discon_all_':
Pg.xs:52: `sv_yes' undeclared (first use in this function)
Pg.xs:52: (Each undeclared identifier is reported only once
Pg.xs:52: for each function it appears in.)
Pg.xs:52: `sv_no' undeclared (first use in this function)
Pg.xs: In function `XS_DBD__Pg__db__login':
Pg.xs:69: `sv_yes' undeclared (first use in this function)
Pg.xs:69: `sv_no' undeclared (first use in this function)
Pg.xs: In function `XS_DBD__Pg__db_commit':
Pg.xs:93: `sv_yes' undeclared (first use in this function)
Pg.xs:93: `sv_no' undeclared (first use in this function)
Pg.xs: In function `XS_DBD__Pg__db_rollback':
Pg.xs:104: `sv_yes' undeclared (first use in this function)
Pg.xs:104: `sv_no' undeclared (first use in this function)
[...]
Pg.xs: In function `XS_DBD__Pg__st_DESTROY':
Pg.xs:575: `sv_yes' undeclared (first use in this function)
Pg.xs:578: `na' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/databases/p5-DBD-Pg/work/DBD-Pg-1.13.
*** Error code 1

Stop in /usr/ports/databases/p5-DBD-Pg.



i anyone could give me some pointers as to where i start to look, that 
would be great. i have done a lot of searches on Google and it seems 
this is no common problem, at least not with DBD-Pg.


thank you :)
-- 
Terje With Lunndal
Catch Communications AS

Reply via email to