failure to implement O_LARGEFILES

Tony Arnold tony.arnold at manchester.ac.uk
Thu Jul 12 21:55:15 UTC 2012


Kayven,

remove the back quotes around the definitions of

LARGEFILE_FLAG = `-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64`
GNU_SOURCE_FLAG = `-D_GNU_SOURCE`

Back quotes causes the enclosed string to be run by bash which is not
what you want.

Regards,
Tony.

On 12/07/12 22:47, Kayven Riese 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$
> 
> Source code and Makefile available from http://kayve.net/promog.  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 `
> /bin/sh: 1: -D_GNU_SOURCE: not found
> promog.c: In function ‘main’:
> promog.c:268:46: error: ‘O_LARGEFILE’ undeclared (first use in this
> function)
> promog.c:268:46: note: each undeclared identifier is reported only once
> for each function it appears in
> make: *** [promog.o] Error 1
> kayve at kayve-Ubuntu11:~/Documents/microArray/Project/release$
> 
> 
> Can someone please help me compile my work or perhaps make a suggestion
> where to go instead for help?  Thank you in advance.
> 
> 
> -- 
>   Sincerely,
> 
>   Kayven Riese
> *----------------------------------------------------------*
>   Kayven Riese, MSCS,
>                       MS  (Physiology and Biophysics)
>   (415) 902 5513 <tel:%28415%29%20902%205513> cellular
>   http://kayve.net
>   Webmaster http://ChessYoga.org
> *----------------------------------------------------------*
> 
> 
> 
> 
> 

-- 
Tony Arnold,                        Tel: +44 (0) 161 275 6093
Head of IT Security,                Fax: +44 (0) 705 344 3082
University of Manchester,           Mob: +44 (0) 773 330 0039
Manchester M13 9PL.                 Email: tony.arnold at manchester.ac.uk






More information about the ubuntu-users mailing list