"the same compiler that was used..."

"the same compiler that was used..."

am 22.11.2006 08:37:39 von canfieldsteve

"the same compiler that was used..."

I'm getting the error that Tim Bunce described in the
README for DBI:

If you get compiler errors refering to Perl's own
header files (.../CORE/*.h) or the compiler
complains about bad options etc then there is
something wrong with your installation. It is
best to use a Perl that was built on the system
you are trying to use and it's also important to
use the same compiler that was used to build the
Perl you are using.

The entirety of the output of "perl Makefile.PL",
"make", and "perl -V" are echoed below. However, I
believe the problem lies in this error and others like
it:

/usr/lib/perl/5.8/CORE/perl.h:382:24: error:
sys/types.h: No such file or directory

OK, so I see that that is the type of error that Tim
is talking about, but I don't understand how to
address the problem. Perl was installed on this
machine as part of Ubuntu... I didn't seperately
install Perl at all. gcc was not installed on the
machine by default, I used Synaptic to install it. So
that means that my machine does not implement the
advice "it's also important to use the same compiler
that was used to build the Perl you are using".

Does anybody have advice on the best solution to this
problem? Do I really have to recompile Perl (which I
have no idea how to do) just so I can install DBI?

Here are the outputs:

-------------------------------------------------------
# perl Makefile.PL

*** You are using a perl configured with threading
enabled.
*** You should be aware that using multiple threads is
*** not recommended for production environments.

*** Note:
The optional PlRPC-modules (RPC::PlServer etc) are
not installed.
If you want to use the DBD::Proxy driver and
DBI::ProxyServer
modules, then you'll need to install the
RPC::PlServer, RPC::PlClient,
Storable and Net::Daemon modules. The CPAN
Bundle::DBI may help you.
You can install them any time after installing the
DBI.
You do *not* need these modules for typical DBI
usage.

Optional modules are available from any CPAN mirror,
in particular
http://search.cpan.org/
http://www.perl.com/CPAN/modules/by-module
http://www.perl.org/CPAN/modules/by-module

ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module

Your perl was compiled with gcc (version 4.0.3
20051204 (prerelease) (Ubuntu 4.0.2-5ubuntu2)), okay.
Creating DBI::PurePerl test variant:
t/zvpp_01basics.t
Creating DBI::PurePerl test variant:
t/zvpp_02dbidrv.t
Creating DBI::PurePerl test variant:
t/zvpp_03handle.t
Creating DBI::PurePerl test variant:
t/zvpp_04mods.t
Creating DBI::PurePerl test variant:
t/zvpp_05thrclone.t (use threads)
Creating DBI::PurePerl test variant:
t/zvpp_06attrs.t
Creating DBI::PurePerl test variant:
t/zvpp_07kids.t
Creating DBI::PurePerl test variant:
t/zvpp_08keeperr.t
Creating DBI::PurePerl test variant:
t/zvpp_09trace.t
Creating DBI::PurePerl test variant:
t/zvpp_10examp.t
Creating DBI::PurePerl test variant:
t/zvpp_11fetch.t
Creating DBI::PurePerl test variant:
t/zvpp_14utf8.t
Creating DBI::PurePerl test variant:
t/zvpp_15array.t
Creating DBI::PurePerl test variant:
t/zvpp_20meta.t
Creating DBI::PurePerl test variant:
t/zvpp_30subclass.t
Creating DBI::PurePerl test variant:
t/zvpp_40profile.t
Creating DBI::PurePerl test variant:
t/zvpp_41prof_dump.t
Creating DBI::PurePerl test variant:
t/zvpp_42prof_data.t
Creating DBI::PurePerl test variant:
t/zvpp_43prof_env.t
Creating DBI::PurePerl test variant: t/zvpp_50dbm.t
Creating DBI::PurePerl test variant:
t/zvpp_60preparse.t
Creating DBI::PurePerl test variant:
t/zvpp_70callbacks.t
Creating DBI::PurePerl test variant:
t/zvpp_72childhandles.t
Creating DBI::PurePerl test variant:
t/zvpp_80proxy.t
Checking if your kit is complete...
Looks good

I see you're using perl 5.008007 on
i486-linux-gnu-thread-multi, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake
on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then
delete this working
directory before unpacking and building any DBD::*
drivers.

Writing Makefile for DBI
#

-------------------------------------------------------
# make
/usr/bin/perl "-MExtUtils::Command" -e mkpath
blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
/usr/bin/perl "-MExtUtils::Command" -e mkpath
blib/lib/DBI
rm -f blib/lib/DBI/Roadmap.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBI/Const/GetInfoType.pm
blib/lib/DBI/Const/GetInfoType.pm
cp Roadmap.pod blib/lib/Roadmap.pod
cp lib/DBI/DBD/Metadata.pm
blib/lib/DBI/DBD/Metadata.pm
cp lib/DBI/Const/GetInfo/ODBC.pm
blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/ProfileDumper/Apache.pm
blib/lib/DBI/ProfileDumper/Apache.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/Const/GetInfo/ANSI.pm
blib/lib/DBI/Const/GetInfo/ANSI.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Const/GetInfoReturn.pm
blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp TASKS.pod blib/lib/TASKS.pod
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/ProfileDumper.pm
blib/lib/DBI/ProfileDumper.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst >
Perl.xsi
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp
-typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap
typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.53\"
-DXS_VERSION=\"1.53\" -fPIC "-I/usr/lib/perl/5.8/CORE"
-W -Wall -Wpointer-arith -Wbad-function-cast
-Wno-comment -Wno-sign-compare -Wno-cast-qual
-Wmissing-noreturn -Wno-unused-parameter Perl.c
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:382:24: error:
sys/types.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:413:19: error: ctype.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:425:23: error: locale.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:442:20: error: setjmp.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:448:26: error:
sys/param.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:453:23: error: stdlib.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:458:23: error: unistd.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:731:23: error: string.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:880:27: error:
netinet/in.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:884:26: error:
arpa/inet.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:894:25: error:
sys/stat.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:916:21: error: time.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:923:25: error:
sys/time.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:930:27: error:
sys/times.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:937:19: error: errno.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:952:25: error:
sys/socket.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:979:21: error: netdb.h:
No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:1081:24: error:
sys/ioctl.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:1110:23: error:
dirent.h: No such file or directory
In file included from
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7,
from
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11,
from
/usr/lib/perl/5.8/CORE/perl.h:1446,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122:61:
error: limits.h: No such file or directory
In file included from
/usr/lib/perl/5.8/CORE/perl.h:2056,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/handy.h:121:25: error:
inttypes.h: No such file or directory
In file included from
/usr/lib/perl/5.8/CORE/perl.h:2220,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/unixish.h:106:21: error:
signal.h: No such file or directory
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2322:33: error:
pthread.h: No such file or directory
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2324: error: syntax
error before ‘perl_os_thread’
/usr/lib/perl/5.8/CORE/perl.h:2324: warning: type
defaults to ‘int’ in declaration of ‘perl_os_thread’
/usr/lib/perl/5.8/CORE/perl.h:2324: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:2325: error: syntax
error before ‘perl_mutex’
/usr/lib/perl/5.8/CORE/perl.h:2325: warning: type
defaults to ‘int’ in declaration of ‘perl_mutex’
/usr/lib/perl/5.8/CORE/perl.h:2325: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:2326: error: syntax
error before ‘perl_cond’
/usr/lib/perl/5.8/CORE/perl.h:2326: warning: type
defaults to ‘int’ in declaration of ‘perl_cond’
/usr/lib/perl/5.8/CORE/perl.h:2326: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:2327: error: syntax
error before ‘perl_key’
/usr/lib/perl/5.8/CORE/perl.h:2327: warning: type
defaults to ‘int’ in declaration of ‘perl_key’
/usr/lib/perl/5.8/CORE/perl.h:2327: warning: data
definition has no type or storage class
In file included from
/usr/lib/perl/5.8/CORE/iperlsys.h:51,
from
/usr/lib/perl/5.8/CORE/perl.h:2579,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perlio.h:65:19: error: stdio.h:
No such file or directory
In file included from
/usr/lib/perl/5.8/CORE/iperlsys.h:51,
from
/usr/lib/perl/5.8/CORE/perl.h:2579,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perlio.h:253: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/perlio.h:256: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/perlio.h:256: warning: type
defaults to ‘int’ in declaration of
‘PerlIO_exportFILE’
/usr/lib/perl/5.8/CORE/perlio.h:256: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perlio.h:259: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/perlio.h:259: warning: type
defaults to ‘int’ in declaration of ‘PerlIO_findFILE’
/usr/lib/perl/5.8/CORE/perlio.h:259: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perlio.h:262: error: syntax
error before ‘FILE’
In file included from
/usr/lib/perl/5.8/CORE/perl.h:2593,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/sv.h:389: error: syntax error
before ‘DIR’
/usr/lib/perl/5.8/CORE/sv.h:389: warning: no semicolon
at end of struct or union
/usr/lib/perl/5.8/CORE/sv.h:389: warning: no semicolon
at end of struct or union
/usr/lib/perl/5.8/CORE/sv.h:391: error: syntax error
before ‘}’ token
/usr/lib/perl/5.8/CORE/sv.h:391: warning: type
defaults to ‘int’ in declaration of ‘xio_dirpu’
/usr/lib/perl/5.8/CORE/sv.h:391: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/sv.h:405: error: syntax error
before ‘}’ token
In file included from /usr/lib/perl/5.8/CORE/op.h:496,
from
/usr/lib/perl/5.8/CORE/perl.h:2600,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/reentr.h:71:20: error: pwd.h:
No such file or directory
/usr/lib/perl/5.8/CORE/reentr.h:74:20: error: grp.h:
No such file or directory
/usr/lib/perl/5.8/CORE/reentr.h:84:26: error: crypt.h:
No such file or directory
/usr/lib/perl/5.8/CORE/reentr.h:89:27: error:
shadow.h: No such file or directory
In file included from /usr/lib/perl/5.8/CORE/op.h:496,
from
/usr/lib/perl/5.8/CORE/perl.h:2600,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/reentr.h:611: error: field
‘_crypt_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:619: error: field
‘_drand48_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:623: error: field
‘_grent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:634: error: field
‘_hostent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:653: error: field
‘_netent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:668: error: field
‘_protoent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:683: error: field
‘_pwent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:694: error: field
‘_servent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:709: error: field
‘_spent_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:720: error: field
‘_gmtime_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:723: error: field
‘_localtime_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:770: error: field
‘_random_struct’ has incomplete type
/usr/lib/perl/5.8/CORE/reentr.h:771: error: syntax
error before ‘int32_t’
/usr/lib/perl/5.8/CORE/reentr.h:771: warning: no
semicolon at end of struct or union
/usr/lib/perl/5.8/CORE/reentr.h:779: error: syntax
error before ‘}’ token
/usr/lib/perl/5.8/CORE/reentr.h:779: warning: type
defaults to ‘int’ in declaration of ‘REENTR’
/usr/lib/perl/5.8/CORE/reentr.h:779: warning: data
definition has no type or storage class
In file included from
/usr/lib/perl/5.8/CORE/perl.h:2602,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/av.h:13: error: syntax error
before ‘ssize_t’
/usr/lib/perl/5.8/CORE/av.h:13: warning: no semicolon
at end of struct or union
/usr/lib/perl/5.8/CORE/av.h:14: warning: type defaults
to ‘int’ in declaration of ‘xav_max’
/usr/lib/perl/5.8/CORE/av.h:14: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/av.h:23: error: syntax error
before ‘}’ token
In file included from
/usr/lib/perl/5.8/CORE/perl.h:2605,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/scope.h:232: error: syntax
error before ‘sigjmp_buf’
/usr/lib/perl/5.8/CORE/scope.h:232: warning: no
semicolon at end of struct or union
/usr/lib/perl/5.8/CORE/scope.h:239: error: syntax
error before ‘}’ token
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2777: error: syntax
error before ‘getuid’
/usr/lib/perl/5.8/CORE/perl.h:2777: warning: type
defaults to ‘int’ in declaration of ‘getuid’
/usr/lib/perl/5.8/CORE/perl.h:2777: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:2778: error: syntax
error before ‘geteuid’
/usr/lib/perl/5.8/CORE/perl.h:2778: warning: type
defaults to ‘int’ in declaration of ‘geteuid’
/usr/lib/perl/5.8/CORE/perl.h:2778: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:2779: error: syntax
error before ‘getgid’
/usr/lib/perl/5.8/CORE/perl.h:2779: warning: type
defaults to ‘int’ in declaration of ‘getgid’
/usr/lib/perl/5.8/CORE/perl.h:2779: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:2780: error: syntax
error before ‘getegid’
/usr/lib/perl/5.8/CORE/perl.h:2780: warning: type
defaults to ‘int’ in declaration of ‘getegid’
/usr/lib/perl/5.8/CORE/perl.h:2780: warning: data
definition has no type or storage class
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:3093:22: error: math.h:
No such file or directory
In file included from
/usr/lib/perl/5.8/CORE/perl.h:3732,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/thrdvar.h:85: error: field
‘Tstatbuf’ has incomplete type
/usr/lib/perl/5.8/CORE/thrdvar.h:86: error: field
‘Tstatcache’ has incomplete type
/usr/lib/perl/5.8/CORE/thrdvar.h:91: error: field
‘Ttimesbuf’ has incomplete type
/usr/lib/perl/5.8/CORE/thrdvar.h:140: error: field
‘Tstart_env’ has incomplete type
In file included from
/usr/lib/perl/5.8/CORE/perl.h:3734,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/intrpvar.h:66: error: syntax
error before ‘time_t’
/usr/lib/perl/5.8/CORE/intrpvar.h:66: warning: no
semicolon at end of struct or union
/usr/lib/perl/5.8/CORE/intrpvar.h:237: error: syntax
error before ‘Iuid’
/usr/lib/perl/5.8/CORE/intrpvar.h:237: warning: type
defaults to ‘int’ in declaration of ‘Iuid’
/usr/lib/perl/5.8/CORE/intrpvar.h:237: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:238: error: syntax
error before ‘Ieuid’
/usr/lib/perl/5.8/CORE/intrpvar.h:238: warning: type
defaults to ‘int’ in declaration of ‘Ieuid’
/usr/lib/perl/5.8/CORE/intrpvar.h:238: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:239: error: syntax
error before ‘Igid’
/usr/lib/perl/5.8/CORE/intrpvar.h:239: warning: type
defaults to ‘int’ in declaration of ‘Igid’
/usr/lib/perl/5.8/CORE/intrpvar.h:239: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:240: error: syntax
error before ‘Iegid’
/usr/lib/perl/5.8/CORE/intrpvar.h:240: warning: type
defaults to ‘int’ in declaration of ‘Iegid’
/usr/lib/perl/5.8/CORE/intrpvar.h:240: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:497: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:497: warning: type
defaults to ‘int’ in declaration of
‘Ireentrant_buffer’
/usr/lib/perl/5.8/CORE/intrpvar.h:497: warning: data
definition has no type or storage class
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:3740: error: syntax
error before ‘}’ token
In file included from
/usr/lib/perl/5.8/CORE/perl.h:3811,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/proto.h:90: error: syntax error
before ‘mode_t’
/usr/lib/perl/5.8/CORE/proto.h:199: error: syntax
error before ‘off64_t’
/usr/lib/perl/5.8/CORE/proto.h:201: error: syntax
error before ‘Perl_do_sysseek’
/usr/lib/perl/5.8/CORE/proto.h:201: error: syntax
error before ‘off64_t’
/usr/lib/perl/5.8/CORE/proto.h:201: warning: type
defaults to ‘int’ in declaration of ‘Perl_do_sysseek’
/usr/lib/perl/5.8/CORE/proto.h:201: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:202: error: syntax
error before ‘Perl_do_tell’
/usr/lib/perl/5.8/CORE/proto.h:202: warning: type
defaults to ‘int’ in declaration of ‘Perl_do_tell’
/usr/lib/perl/5.8/CORE/proto.h:202: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:284: error: syntax
error before ‘gid_t’
/usr/lib/perl/5.8/CORE/proto.h:456: error: syntax
error before ‘Perl_my_fork’
/usr/lib/perl/5.8/CORE/proto.h:456: warning: type
defaults to ‘int’ in declaration of ‘Perl_my_fork’
/usr/lib/perl/5.8/CORE/proto.h:456: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:582: error: syntax
error before ‘pid_t’
/usr/lib/perl/5.8/CORE/proto.h:815: error: syntax
error before ‘pid_t’
/usr/lib/perl/5.8/CORE/proto.h:916: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/proto.h:916: error: syntax
error before ‘DIR’
/usr/lib/perl/5.8/CORE/proto.h:916: warning: type
defaults to ‘int’ in declaration of ‘Perl_dirp_dup’
/usr/lib/perl/5.8/CORE/proto.h:916: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:1305: error: syntax
error before ‘Perl_PerlIO_read’
/usr/lib/perl/5.8/CORE/proto.h:1305: warning: type
defaults to ‘int’ in declaration of ‘Perl_PerlIO_read’
/usr/lib/perl/5.8/CORE/proto.h:1305: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:1306: error: syntax
error before ‘Perl_PerlIO_write’
/usr/lib/perl/5.8/CORE/proto.h:1306: warning: type
defaults to ‘int’ in declaration of
‘Perl_PerlIO_write’
/usr/lib/perl/5.8/CORE/proto.h:1306: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:1307: error: syntax
error before ‘Perl_PerlIO_unread’
/usr/lib/perl/5.8/CORE/proto.h:1307: warning: type
defaults to ‘int’ in declaration of
‘Perl_PerlIO_unread’
/usr/lib/perl/5.8/CORE/proto.h:1307: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:1308: error: syntax
error before ‘Perl_PerlIO_tell’
/usr/lib/perl/5.8/CORE/proto.h:1308: warning: type
defaults to ‘int’ in declaration of ‘Perl_PerlIO_tell’
/usr/lib/perl/5.8/CORE/proto.h:1308: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/proto.h:1309: error: syntax
error before ‘off64_t’
In file included from
/usr/lib/perl/5.8/CORE/perl.h:3849,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perlvars.h:31: error: syntax
error before ‘PL_thr_key’
/usr/lib/perl/5.8/CORE/perlvars.h:31: warning: type
defaults to ‘int’ in declaration of ‘PL_thr_key’
/usr/lib/perl/5.8/CORE/perlvars.h:31: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perlvars.h:48: error: syntax
error before ‘PL_op_mutex’
/usr/lib/perl/5.8/CORE/perlvars.h:48: warning: type
defaults to ‘int’ in declaration of ‘PL_op_mutex’
/usr/lib/perl/5.8/CORE/perlvars.h:48: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perlvars.h:52: error: syntax
error before ‘PL_dollarzero_mutex’
/usr/lib/perl/5.8/CORE/perlvars.h:52: warning: type
defaults to ‘int’ in declaration of
‘PL_dollarzero_mutex’
/usr/lib/perl/5.8/CORE/perlvars.h:52: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perl.h:4366:24: error:
sys/ipc.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:4367:24: error:
sys/sem.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:4492:24: error:
sys/file.h: No such file or directory
In file included from
/usr/lib/perl/5.8/CORE/perlapi.h:37,
from
/usr/lib/perl/5.8/CORE/XSUB.h:320,
from DBIXS.h:20,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/intrpvar.h:66: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:66: warning: type
defaults to ‘int’ in declaration of
‘Perl_Ibasetime_ptr’
/usr/lib/perl/5.8/CORE/intrpvar.h:66: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:237: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:237: warning: type
defaults to ‘int’ in declaration of ‘Perl_Iuid_ptr’
/usr/lib/perl/5.8/CORE/intrpvar.h:237: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:238: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:238: warning: type
defaults to ‘int’ in declaration of ‘Perl_Ieuid_ptr’
/usr/lib/perl/5.8/CORE/intrpvar.h:238: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:239: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:239: warning: type
defaults to ‘int’ in declaration of ‘Perl_Igid_ptr’
/usr/lib/perl/5.8/CORE/intrpvar.h:239: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:240: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:240: warning: type
defaults to ‘int’ in declaration of ‘Perl_Iegid_ptr’
/usr/lib/perl/5.8/CORE/intrpvar.h:240: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/intrpvar.h:497: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/intrpvar.h:497: warning: type
defaults to ‘int’ in declaration of
‘Perl_Ireentrant_buffer_ptr’
/usr/lib/perl/5.8/CORE/intrpvar.h:497: warning: data
definition has no type or storage class
In file included from
/usr/lib/perl/5.8/CORE/perlapi.h:38,
from
/usr/lib/perl/5.8/CORE/XSUB.h:320,
from DBIXS.h:20,
from Perl.xs:6:
/usr/lib/perl/5.8/CORE/perlvars.h:31: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/perlvars.h:31: warning: type
defaults to ‘int’ in declaration of
‘Perl_Gthr_key_ptr’
/usr/lib/perl/5.8/CORE/perlvars.h:31: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perlvars.h:48: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/perlvars.h:48: warning: type
defaults to ‘int’ in declaration of
‘Perl_Gop_mutex_ptr’
/usr/lib/perl/5.8/CORE/perlvars.h:48: warning: data
definition has no type or storage class
/usr/lib/perl/5.8/CORE/perlvars.h:52: error: syntax
error before ‘*’ token
/usr/lib/perl/5.8/CORE/perlvars.h:52: warning: type
defaults to ‘int’ in declaration of
‘Perl_Gdollarzero_mutex_ptr’
/usr/lib/perl/5.8/CORE/perlvars.h:52: warning: data
definition has no type or storage class
Perl.xs: In function ‘dbd_st_rows’:
Perl.xs:42: warning: implicit declaration of function
‘pthread_getspecific’
Perl.xs:42: warning: cast from function call of type
‘int’ to non-matching type ‘struct PerlInterpreter *’
In file included from Perl.c:62:
Driver_xst.h: In function ‘dbixst_bounce_method’:
Driver_xst.h:12: warning: cast from function call of
type ‘int’ to non-matching type ‘struct
PerlInterpreter *’
Driver_xst.h: In function ‘dbdxst_bind_params’:
Driver_xst.h:50: warning: cast from function call of
type ‘int’ to non-matching type ‘struct
PerlInterpreter *’
Driver_xst.h:57: warning: implicit declaration of
function ‘sprintf’
Driver_xst.h:57: warning: incompatible implicit
declaration of built-in function ‘sprintf’
Driver_xst.h: In function ‘dbdxst_fetchall_arrayref’:
Driver_xst.h:80: warning: cast from function call of
type ‘int’ to non-matching type ‘struct
PerlInterpreter *’
Driver_xst.h:85: warning: incompatible implicit
declaration of built-in function ‘sprintf’
Driver_xst.h:103: error: dereferencing pointer to
incomplete type
Driver_xst.h:103: error: dereferencing pointer to
incomplete type
Perl.xsi: In function ‘XS_DBD__Perl__dr_data_sources’:
Perl.xsi:61: error: dereferencing pointer to
incomplete type
Perl.xsi:64: error: dereferencing pointer to
incomplete type
Perl.xsi: In function
‘XS_DBD__Perl__db_selectrow_arrayref’:
Perl.xsi:184: error: dereferencing pointer to
incomplete type
Perl.xsi:189: error: dereferencing pointer to
incomplete type
Perl.xsi: In function
‘XS_DBD__Perl__st_fetchrow_array’:
Perl.xsi:620: error: dereferencing pointer to
incomplete type
Perl.xsi:623: error: dereferencing pointer to
incomplete type
Perl.c: In function ‘boot_DBD__Perl’:
Perl.c:1111: warning: implicit declaration of function
‘strcmp’
make: *** [Perl.o] Error 1

-------------------------------------------------------
# perl -V
Summary of my perl5 (revision 5 version 8 subversion
7) configuration:
Platform:
osname=linux, osvers=2.6.10,
archname=i486-linux-gnu-thread-multi
uname='linux rothera 2.6.10 #1 smp fri may 13
09:24:22 utc 2005 i686 gnulinux '
config_args='-Dusethreads -Duselargefiles
-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC
-Darchname=i486-linux-gnu -Dprefix=/usr
-Dprivlib=/usr/share/perl/5.8
-Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr
-Dvendorlib=/usr/share/perl5
-Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl/5.8.7
-Dsitearch=/usr/local/lib/perl/5.8.7
-Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3
-Dsiteman1dir=/usr/local/man/man1
-Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1
-Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs
-Ud_csh -Uusesfio -Uusenm -Duseshrplib
-Dlibperl=libperl.so.5.8.7 -Dd_dosuid -des'
hint=recommended, useposix=true,
d_sigaction=define
usethreads=define use5005threads=undef
useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define
usesocks=undef
use64bitint=undef use64bitall=undef
uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include'
ccversion='', gccversion='4.0.3 20051204
(prerelease) (Ubuntu 4.0.2-5ubuntu2)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=1234
d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double',
nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread
-lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.3.5.so, so=so, useshrplib=true,
libperl=libperl.so.5.8.7
gnulibc_version='2.3.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared
-L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
SPRINTF0 - fixes for sprintf formatting issues
- CVE-2005-3962
Built under linux
Compiled at Dec 16 2005 07:48:39
%ENV:
PERL5LIB="/home/steve/projects/perllib/trunk"
@INC:
/home/steve/projects/perllib/trunk
/etc/perl
/usr/local/lib/perl/5.8.7
/usr/local/share/perl/5.8.7
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
.




____________________________________________________________ ________________________
Sponsored Link

Degrees online in as fast as 1 Yr
MBA, Bachelor's, Master's, Assoc
http://yahoo.degrees.info

RE: "the same compiler that was used..."

am 22.11.2006 14:57:52 von Philip.Garrett

Steve Canfield wrote:
> "the same compiler that was used..."
>=20
[snip]
>=20
> The entirety of the output of "perl Makefile.PL",
> "make", and "perl -V" are echoed below. However, I
> believe the problem lies in this error and others like
> it:
>=20
> /usr/lib/perl/5.8/CORE/perl.h:382:24: error:
> sys/types.h: No such file or directory

Looks to me like you need the libdevel/libc6-dev package:
http://packages.ubuntu.com/edgy/libdevel/libc6-dev

Good luck!

Regards,
Philip

RE: "the same compiler that was used..."

am 22.11.2006 18:24:02 von canfieldsteve

Thanks Philip!

This morning before your email arrived it occured to
me that binary Perl modules might be installed through
Synatpic package manager the same way I installed gcc.
For DBI and LWP that turned out to be the case.
Installing libc6-dev (using Synaptic) allowed me to
install the WeakRef perl module. I suspect that
installing libc6-dev would have allowed me to compile
DBI.

So it perhaps the README for DBI could be expanded
just a little. As I read the relevent section, it
appears that there is only one solution to the
problem: recompile Perl. Here's the section in
question:

"If you get compiler errors refering to Perl's own
header files (.../CORE/*.h) or the compiler complains
about bad options etc then there is something wrong
with your installation. It is best to use a Perl that
was built on the system you are trying to use and it's
also important to use the same compiler that was used
to build the Perl you are using."

There may be two other ways to address the problem.
Perhaps something like this would guide people towards
solutions:

"If you installed Perl using a binary distribution,
such as ActiveState Perl, or if Perl came installed
with the operating system you use, such as Debian or
Ubuntu, then you may be able to install a precompiled
binary of DBI using a package manager. Check the
package manager for your distribution of Perl (e.g.
ppm for ActiveState) or for your operating system (e.g
Synaptic for Ubuntu). See [some URL here] for more
information about package managers.

You may also be able to augment your compiler with
[not sure what to put here, perhaps someone in this
mailing list can come up with something]."


--- "Garrett, Philip (MAN-Corporate)"
wrote:

> Steve Canfield wrote:
> > "the same compiler that was used..."
> >
> [snip]
> >
> > The entirety of the output of "perl Makefile.PL",
> > "make", and "perl -V" are echoed below. However,
> I
> > believe the problem lies in this error and others
> like
> > it:
> >
> > /usr/lib/perl/5.8/CORE/perl.h:382:24: error:
> > sys/types.h: No such file or directory
>
> Looks to me like you need the libdevel/libc6-dev
> package:
> http://packages.ubuntu.com/edgy/libdevel/libc6-dev
>
> Good luck!
>
> Regards,
> Philip
>


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Re: "the same compiler that was used..."

am 22.11.2006 21:55:52 von Tim.Bunce

Thanks Steve. I've added something along those lines.

Tim.

On Wed, Nov 22, 2006 at 09:24:02AM -0800, Steve Canfield wrote:
> Thanks Philip!
>
> This morning before your email arrived it occured to
> me that binary Perl modules might be installed through
> Synatpic package manager the same way I installed gcc.
> For DBI and LWP that turned out to be the case.
> Installing libc6-dev (using Synaptic) allowed me to
> install the WeakRef perl module. I suspect that
> installing libc6-dev would have allowed me to compile
> DBI.
>
> So it perhaps the README for DBI could be expanded
> just a little. As I read the relevent section, it
> appears that there is only one solution to the
> problem: recompile Perl. Here's the section in
> question:
>
> "If you get compiler errors refering to Perl's own
> header files (.../CORE/*.h) or the compiler complains
> about bad options etc then there is something wrong
> with your installation. It is best to use a Perl that
> was built on the system you are trying to use and it's
> also important to use the same compiler that was used
> to build the Perl you are using."
>
> There may be two other ways to address the problem.
> Perhaps something like this would guide people towards
> solutions:
>
> "If you installed Perl using a binary distribution,
> such as ActiveState Perl, or if Perl came installed
> with the operating system you use, such as Debian or
> Ubuntu, then you may be able to install a precompiled
> binary of DBI using a package manager. Check the
> package manager for your distribution of Perl (e.g.
> ppm for ActiveState) or for your operating system (e.g
> Synaptic for Ubuntu). See [some URL here] for more
> information about package managers.
>
> You may also be able to augment your compiler with
> [not sure what to put here, perhaps someone in this
> mailing list can come up with something]."
>
>
> --- "Garrett, Philip (MAN-Corporate)"
> wrote:
>
> > Steve Canfield wrote:
> > > "the same compiler that was used..."
> > >
> > [snip]
> > >
> > > The entirety of the output of "perl Makefile.PL",
> > > "make", and "perl -V" are echoed below. However,
> > I
> > > believe the problem lies in this error and others
> > like
> > > it:
> > >
> > > /usr/lib/perl/5.8/CORE/perl.h:382:24: error:
> > > sys/types.h: No such file or directory
> >
> > Looks to me like you need the libdevel/libc6-dev
> > package:
> > http://packages.ubuntu.com/edgy/libdevel/libc6-dev
> >
> > Good luck!
> >
> > Regards,
> > Philip
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com