I am trying to get Inline::CPP (0.22) to compile on my system (using 
Peanut linux which has perl 5.7.0 for some reason.) It fails on the 
testing step; the out.make file reports the errors listed below. It 
looks like a possible "extern C" problem...

Any tips on getting it to work would be greatly appreciated.
Thanks.

-David
[EMAIL PROTECTED]

g++ -c -I/tmp/cpan/build/Inline-CPP-0.22/t -D_REENTRANT 
-fno-strict-aliasing -I/usr/local/include -D
_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -s     -DVERSION=\"0.00\" 
-DXS_VERSION=\"0.00\" -Os -s
-I/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE  _02prefix_t_4ede.c
In file included from 
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/perl.h:2743,
                  from _02prefix_t_4ede.xs:8:
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/perl.h:542: previous 
declaration of `void * Perl_m
alloc(unsigned int)' with C++ linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/proto.h:28: conflicts 
with new declaration with C
linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/perl.h:543: previous 
declaration of `void * Perl_c
alloc(unsigned int, unsigned int)' with C++ linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/proto.h:29: conflicts 
with new declaration with C
linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/perl.h:544: previous 
declaration of `void * Perl_r
ealloc(void *, unsigned int)' with C++ linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/proto.h:30: conflicts 
with new declaration with C
linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/perl.h:547: previous 
declaration of `void Perl_mfr
ee(void *)' with C++ linkage
/usr/lib/perl5/5.7.0/i386-linux-thread-multi/CORE/proto.h:31: conflicts 
with new declaration with C
linkage
make[1]: *** [_02prefix_t_4ede.o] Error 1
make[1]: Leaving directory 
`/tmp/cpan/build/Inline-CPP-0.22/_Inline/build/_02prefix_t_4ede'



-----------------------
Here, if it makes a difference, is the output of 'perl -V':

Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
   Platform:
     osname=linux, osvers=2.2.18, archname=i386-linux-thread-multi
     uname='linux unix 2.2.18 #2 fri sep 1 23:29:39 utc 2000 i686 
genuineintel '
     config_args=''
     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
   Compiler:
     cc='cc', ccflags ='-D_REENTRANT -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D
_FILE_OFFSET_BITS=64', optimize='-Os -s', cppflags='-D_REENTRANT 
-fno-strict-aliasing -I/usr/local/i
nclude'
     ccversion='', gccversion='2.95.2 20000116 (Debian GNU/Linux)', 
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, usemymalloc=y, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix 
-lcrypt -lutil
     libc=/lib/libc-2.1.3.so, so=so, useshrplib=true, libperl=libperl.so
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.
7.0/i386-linux-thread-multi/CORE'
     cccdlflags='-Os -s', lddlflags='-shared -L/usr/lib'


Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
   Built under linux
   Compiled at Jan  1 2001 21:42:30
   @INC:
     /usr/lib/perl5/5.7.0/i386-linux-thread-multi
     /usr/lib/perl5/5.7.0
     /usr/lib/perl5/site_perl/5.7.0/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.7.0
     /usr/lib/perl5/site_perl
     .



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to