|
|
sybperl-l Archive
Up Prev Next
From: David Waldo <waldo at cos dot com>
Subject: Problems compiling DBD-Sybase-0.21
Date: Mar 7 2000 7:21PM
I'm having problems installing DBD-Sybase-0.21 on
a Digital Alpha machine running perl 5.004_05:
I get an error in dbdimp.c:
chablis:/projects/perl.dev/src/DBD-Sybase-0.21> make
/usr/local/bin/gcc -c -I/usr/local/sybase/include -I/projects/perl.dev/lib/site_
perl/alpha-dec_osf/auto/DBI -ieee -D_INTRINSICS -DDEBUGGING -I/usr/local/include
-D__LANGUAGE_C__ -g -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fpic -I/proj
ects/perl.dev/lib/alpha-dec_osf/5.00405/CORE dbdimp.c
dbdimp.c: In function `clientmsg_cb':
dbdimp.c:74: `debug' undeclared (first use in this function)
dbdimp.c:74: (Each undeclared identifier is reported only once
dbdimp.c:74: for each function it appears in.)
dbdimp.c: In function `servermsg_cb':
dbdimp.c:182: `debug' undeclared (first use in this function)
*** Exit 1
Stop.
It looks like the problem is with the ENTER macro, which
evaluates to:
(void)( { Perl_push_scope (); if (debug & 4) Perl_deb ("ENTE
R scope %ld at %s:%d\n", Perl_scopestack_ix , "dbdimp.c", 74) ; } ) ;
Perl_save_int ((int*)& Perl_tmps_floor ), Perl_tmps_floor = Perl_tm
ps_ix ;
So 'debug' is not being declared somewhere. Is my perl too old?
I'm trying in my test environment, so I have '-g' enabled.
Here's the `perl -V` output:
Summary of my perl5 (5.0 patchlevel 4 subversion 5) configuration:
Platform:
osname=dec_osf, osvers=4.0, archname=alpha-dec_osf
uname='osf1 chablis.cos.com v4.0 878 alpha '
hint=recommended, useposix=true, d_sigaction=define
bincompat3=n useperlio=undef d_sfio=undef
Compiler:
cc='/usr/local/bin/gcc', optimize='-g', gccversion=2.8.1
cppflags='-ieee -D_INTRINSICS -DDEBUGGING -I/usr/local/include -D__LANGUAGE_
C__'
ccflags ='-ieee -D_INTRINSICS -DDEBUGGING -I/usr/local/include -D__LANGUAGE_
C__'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=8, ptrsize=undef, doublesize=undef
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /v
ar/shlib
libs=-lm
libc=/usr/shlib/libc.so, so=so
useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fpic', lddlflags='-shared -expect_unresolved "*" -O4 -msym -s -
L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING
Built under dec_osf
Compiled at Jan 3 2000 10:18:14
@INC:
/projects/perl.dev/lib/alpha-dec_osf/5.00405
/projects/perl.dev/lib
/projects/perl.dev/lib/site_perl/alpha-dec_osf
/projects/perl.dev/lib/site_perl
.
- Dave Waldo
|