Also looking at my other error (related to sigjmp_buf), I compiled with --save-temp (and -D_LARGEFILE64_SOURCE), so that I get the definition of off64_t from:
# 127 "/usr/include/sys/types.h" 3 4
typedef longlong_t off_t;
typedef longlong_t off64_t;
This shows that the branch taken is the '#else' to '#ifdef _LP64'.
What I am concerned with now, is that I am not sure the issues are with Compress::Bzip2 or actually with Perl 5.16.3 built with gcc 4.7.2.
It strikes me that the flags recorded seem not to match the config.h...
Compress-Bzip2-2.13> perl -V
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.10, archname=arch-thread-multi
uname='sunos selid1t010 5.10 generic_147440-23 sun4v sparc sun4v solaris '
config_args='-Dcc=gcc -Dprefix=/vobs/cello/cade_A_tools_perl -Dinc_version_list=none -Dusethreads -Darchname=arch -des'
hint=recommended, useposix=true, d_sigaction=define
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='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV',
optimize='-O',
cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.7.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E'
cccdlflags='-fPIC', lddlflags=' -Wl,-E -G -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Built under solaris
Compiled at Apr 2 2013 19:39:24
%ENV:
PERL5LIB="/home/emagiro/sstperl/lib"
PERLLIB="/home/emagiro/perl/lib"
@INC:
/home/emagiro/sstperl/lib
/vobs/cello/cade_A_tools_perl/lib/site_perl/5.16.3/arch-thread-multi
/vobs/cello/cade_A_tools_perl/lib/site_perl/5.16.3
/vobs/cello/cade_A_tools_perl/lib/5.16.3/arch-thread-multi
/vobs/cello/cade_A_tools_perl/lib/5.16.3
.
...and config.h:
lines 2300-2309:
#define HAS_SIGSETJMP /**/
#ifdef HAS_SIGSETJMP
#define Sigjmp_buf sigjmp_buf
#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
#else
#define Sigjmp_buf jmp_buf
#define Sigsetjmp(buf,save_mask) setjmp((buf))
#define Siglongjmp(buf,retval) longjmp((buf),(retval))
#endif
line 3821:
#define HAS_OFF64_T /**/
Thanks