failure to implement O_LARGEFILES

Colin Law clanlaw at googlemail.com
Fri Jul 13 06:30:58 UTC 2012


On 12 July 2012 22:40, Kayven Riese <kayvey at gmail.com> wrote:
> bounced I can't include my source.  all necessary files are here
>
> http://kayve.net/promog/
>
> On Thu, Jul 12, 2012 at 2:25 PM, Kayven Riese <kayvey at gmail.com> wrote:
>>
>> I am trying to recompile a project in c using cairo graphics that I
>> created a while back and I got a new version of an input file and I realized
>> that I need to use large files for open().   I am running Ubunu Precise:
>>
>> kayve at kayve-Ubuntu11:~/Documents/microArray/Project/release$ uname -a
>> Linux kayve-Ubuntu11 3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14
>> 16:45:14 UTC 2012 i686 i686 i386 GNU/Linux
>> kayve at kayve-Ubuntu11:~/Documents/microArray/Project/release$
>>
>> I have attached source code and Makefile.  I didn't make a ./configure
>> script, sorry, but I haven't needed it on a number of different Linux
>> distros.
>>
>> Although I have implemented everything necessar in the Makefile (to my
>> knowledge) I am still getting this error:
>>
>> kayve at kayve-Ubuntu11:~/Documents/microArray/Project/release$ make promog
>> gcc -g -O0 `-D_GNU_SOURCE` -c promog.c  `pkg-config --cflags --libs cairo

I don't actually know anything about this in detail (that is not
unusual) but it seems a bit odd to have -D_GNU_SOURCE in backticks.
Google suggested that they should not be there.  These might be of
help.
http://www.titov.net/2006/01/02/using-o_largefile-or-o_direct-on-linux/
http://cboard.cprogramming.com/c-programming/130012-o_largefile.html
though presumably you have already seen them since they are on the
first page of googling for the error.

Colin




More information about the ubuntu-users mailing list