Hi,
I am trying to make a package for a web configuration tool, I am using the 
DBI module for Mysql ,
I need to get the perl code compiled , I tried the following ,
the test file is f.pl
----------------------------------------------------------------------------------------
 

perl -MO=C f.pl >f.c

and included the following lines to f.c
EXTERN_C void boot_DynaLoader _((CV* cv));
EXTERN_C void boot_DBI _((CV* cv));
EXTERN_C void boot_DBD__mysql _((CV* cv));
static void
xs_init(){
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, __FILE__);
newXS("DBI::bootstrap", boot_DBI, __FILE__);
newXS("DBD::mysql::bootstrap", boot_DBD__mysql, __FILE__);
}
----------------------------------------------------------------------------------------
I tried to compile it and here is what I get
-----------------------------------------------------------------------------------------------------------------
bash# gcc -fno-strict-aliasing -I/usr/libdata/perl/5.00503/mach/CORE \
 > -o f f.c -Wl,-u,boot_DBI -Wl,-u,boot_DBD__mysql \
 > /usr/libdata/perl/5.00503/mach/auto/DynaLoader/DynaLoader.a \
 > /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI/DBI.a \
 > /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/mysql/mysql.so \
 > /usr/lib/libperl.so.3 -Wl,-E -lperl -lm /usr/lib/libperl.so.3 \
 > -lm -lc -lcrypt
bash# ./f
Can't locate object method "unimport" via package "strict" at 
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm line 247.
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm line 247.
-----------------------------------------------------------------------------------------------------------------
Can you please help me get out of this errors,
Thanks in advance ,
                                         Jacob ( [EMAIL PROTECTED] )

Reply via email to