Re: [ecasound] largefile update

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] largefile update
From: S. Massy (theanaloguekid_AT_tak.net.dhis.org)
Date: Tue Dec 04 2001 - 02:58:57 EET


On Tue, 04 Dec 2001, Kai Vehmanen <k_AT_eca.cx> wrote:

> On Mon, 3 Dec 2001, The Eye wrote:
>
> > just tried this and it gives me the exact same error than when running
> > with largefile support .. i.e.:
> > eye_AT_lormoral:~/ecasound-cvs/libecasound > c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../kvutils -O2 -D_REENTRANT -DNDEBUG -ffast-math -fstrict-aliasing -funroll-loops -DENABLE_DBC -Wp,-MD,.deps/audioio-cdr.pp -c -fPIC -DPIC audioio-cdr.cpp -o .libs/audioio-cdr.lo
> > audioio-cdr.cpp: In method `void CDRFILE::seek_position()':
> > audioio-cdr.cpp:125: conversion from `long long int' to non-scalar type `_G_fpos_t' requested
Yeah, I get something similar...
-----
audioio-cdr.cpp: In method `void CDRFILE::seek_position()':
audioio-cdr.cpp:125: conversion from `long long int' to non-scalar type`_G_fpos_t' requested
audioio-cdr.cpp: In method `void CDRFILE::set_length_in_bytes()':
audioio-cdr.cpp:150: no match for `fpos_t & / int'
>
> Hmm, this doesn't look good. The line in question is...:
>
> fpos_t newpos = position_in_samples() * frame_size();
>
> ... here position_in_sample() is a 'long long int' (and thus also the
> whole expression 'position_in_samples() * frame_size()' is a long long
> int). The above errors tells that 'f_pos_t' is defined to be '_G_fpos_t',
> which again is not defined to any real scalar type.
>
> What does "grep _G_fpos_t /usr/include/*.h" show on your machine? With
> glibc2.1.3 I get:
>
> --cut--
> ###| ~ |$ grep _G_fpos_t /usr/include/*.h
> /usr/include/_G_config.h:#define _G_fpos_t __off_t
> /usr/include/libio.h:#define _IO_pos_t _G_fpos_t /* obsolete */
> /usr/include/libio.h:#define _IO_fpos_t _G_fpos_t
> /usr/include/stdio.h:typedef _G_fpos_t fpos_t;
> --cut--
With glibc 2.2.4:
/usr/include/_G_config.h:30:} _G_fpos_t;
/usr/include/libio.h:34:#define _IO_pos_t _G_fpos_t /* obsolete */
/usr/include/libio.h:35:#define _IO_fpos_t _G_fpos_t
/usr/include/stdio.h:80:typedef _G_fpos_t fpos_t;

>
> ... this means that '_G_fpos_t' is actually an '__off_t', which again is
Seems to have been redefined...
-----
typedef struct
{
  __off_t __pos;
  __mbstate_t __state;
} _G_fpos_t;
-----

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Dec 04 2001 - 02:51:50 EET