develooper Front page | perl.perl5.porters | Postings from January 2001

sys/types.h vs. inttypes.h

Thread Next
From:
Doug MacEachern
Date:
January 1, 2001 11:13
Subject:
sys/types.h vs. inttypes.h
Message ID:
Pine.LNX.4.10.10101011109330.3379-100000@mojo.covalent.net
with perl-current:
/usr/include/inttypes.h:1: warning: redefinition of `int8_t'
/usr/include/sys/types.h:103: warning: `int8_t' previously declared here
/usr/include/inttypes.h:2: warning: redefinition of `int16_t'
/usr/include/sys/types.h:105: warning: `int16_t' previously declared here
/usr/include/inttypes.h:3: warning: redefinition of `int32_t'
/usr/include/sys/types.h:107: warning: `int32_t' previously declared here
/usr/include/inttypes.h:4: warning: redefinition of `int64_t'
/usr/include/sys/types.h:109: warning: `int64_t' previously declared here

if i remove this from handy.h warnings go away:
#ifdef I_INTTYPES /* e.g. Linux has int64_t without <inttypes.h> */
#   include <inttypes.h>
#endif

my Configure fu is too weak to try fixing.

% perl -V:i_inttypes
i_inttypes='define';

% perl -V
Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.16, archname=i686-linux-thread-multi
    uname='linux mojo 2.2.16 #1 smp fri sep 15 14:51:18 pdt 2000 i686 unknown '
    config_args='-des -Dprefix=/usr/local/ithrperl -Dusethreads -Doptimize=-g -Dusedevel'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='egcs-2.91.66 19990314 (egcs-1.1.2 release)', 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=4
    alignbytes=4, usemymalloc=n, 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
    perllibs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
  	DEVEL8268
  Built under linux
  Compiled at Jan  1 2001 10:57:02
  @INC:
    lib
    /usr/local/ithrperl/lib/5.7.0/i686-linux-thread-multi
    /usr/local/ithrperl/lib/5.7.0
    /usr/local/ithrperl/lib/site_perl/5.7.0/i686-linux-thread-multi
    /usr/local/ithrperl/lib/site_perl/5.7.0
    /usr/local/ithrperl/lib/site_perl/5.6.0/i686-linux-thread-multi
    /usr/local/ithrperl/lib/site_perl/5.6.0
    /usr/local/ithrperl/lib/site_perl
    .


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About