Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

5.14.1linux x86_64 : off64_t -> _off64_t or off_t in proto.h

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


jason.vas.dias at gmail

Jun 3, 2011, 8:26 AM

Post #1 of 2 (606 views)
Permalink
5.14.1linux x86_64 : off64_t -> _off64_t or off_t in proto.h

Hi - after building perl-5.14-maint GIT branch, some modules are failing to build because of missing 'off64_t' type ;
this is for the native x86_64 build, where ( sizeof(off_t) == sizeof(_off64_t) ) - as my glibc-2.13 stat.h says :

$ grep off64 /usr/include/sys/stat.h
typedef __off64_t off_t;

So then modules such as Devel-Mallinfo fail :

$ make
gcc -c -fPIC -O -g -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"11\" -DXS_VERSION=\"11\" -fPIC "-I/usr/lib/perl5/5.14.0/x86_64-linux-thread-multi/CORE" Mallinfo.c
In file included from /usr/lib/perl5/5.14.0/x86_64-linux-thread-multi/CORE/perl.h:5040:0,
from Mallinfo.xs:26:
/usr/lib/perl5/5.14.0/x86_64-linux-thread-multi/CORE/proto.h:816:47: error: unknown type name 'off64_t'

I'm editing proto.h with :

'
#if defined(__linux__) && (__LONG_MAX__ > 0xffffffffU)
#undef off64_t
#define off64_t off_t
#endif
'
( -D_LARGEFILE_SOURCE -DFILE_OFFSET_BITS=64 is unecessary on my platform - this is the native mode - this is only necessary when compiling in -m32 mode ).

Shall I submit a formal patch about this or is above sufficient ?

Regards,
Jason


jesse at fsck

Jun 3, 2011, 8:48 AM

Post #2 of 2 (583 views)
Permalink
Re: 5.14.1linux x86_64 : off64_t -> _off64_t or off_t in proto.h [In reply to]

On Fri, Jun 03, 2011 at 04:26:13PM +0100, Jason Vas Dias wrote:
> Hi - after building perl-5.14-maint GIT branch, some modules are failing to build because of missing 'off64_t' type ;
> this is for the native x86_64 build, where ( sizeof(off_t) == sizeof(_off64_t) ) - as my glibc-2.13 stat.h says :
>
> Shall I submit a formal patch about this or is above sufficient ?

We need more to be able to reproduce this. A number of us build on linux
x86_64 and haven't seen this issue.

At this point, do you have a "clean" Configure invocation we can work
from to reproduce this?

-Jesse

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.