failure to implement O_LARGEFILES
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@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@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@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@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@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 cellular Â* http://kayve.net Â* Webmaster http://ChessYoga.org *----------------------------------------------------------* -- Â* Sincerely, Â* Kayven Riese *----------------------------------------------------------* Â* Kayven Riese, MSCS, Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* MSÂ* (Physiology and Biophysics) Â* (415) 902 5513 cellular Â* http://kayve.net Â* Webmaster http://ChessYoga.org *----------------------------------------------------------* -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
failure to implement O_LARGEFILES
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@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@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@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@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 cellular Â* http://kayve.net Â* Webmaster http://ChessYoga.org *----------------------------------------------------------* -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
failure to implement O_LARGEFILES
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@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@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@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@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@manchester.ac.uk -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
failure to implement O_LARGEFILES
The attached Makefile works on my system!
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@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@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@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@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@manchester.ac.uk DEBUG_FLAG = -g -O0 CAIRO_FLAG = `pkg-config --cflags --libs cairo` LARGEFILE_FLAG = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 GNU_SOURCE_FLAG = -D_GNU_SOURCE hello : gcc -o hello ${CAIRO_FLAG} hello.c parse_tiss : parse_tiss.o gcc ${DEBUG_FLAG} -o parse_tiss -lrt parse_tiss.o parse_tiss.o : gcc ${DEBUG_FLAG} -c parse_tiss.c promog : promog.o cellgram.o print_interval.o gcc -o promog promog.o cellgram.o print_interval.o ${LARGEFILE_FLAG} ${CAIRO_FLAG} -lrt promog.o : gcc ${DEBUG_FLAG} ${GNU_SOURCE_FLAG} -c promog.c ${LAGEFILE_FLAG} ${CAIRO_FLAG} cellgram.o : gcc ${DEBUG_FLAG} -c cellgram.c ${CAIRO_FLAG} stub : stub.o cellgram.o gcc ${CAIRO_FLAG} -o stub -lrt stub.o cellgram.o stub.o : gcc ${DEBUG_FLAG} ${CAIRO_FLAG} -c stub.c dirty_demog : dirty_demog.o print_interval.o gcc ${DEBUG_FLAG} -o dirty_demog -lrt print_interval.o dirty_demog.o dirty_demog.o : gcc ${DEBUG_FLAG} -c dirty_demog.c simple_read : simple_read.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o simple_read -lrt simple_read.o simple_scanf : simple_scanf.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o simple_scanf -lrt simple_scanf.o simple_gets : simple_gets.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o simple_gets -lrt simple_gets.o demog_gets: demog_gets.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o demog_gets -lrt demog_gets.o demog_script_friendly: demog_script_friendly.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o demog_script_friendly -lrt demog_script_friendly.o demog_strcmp: demog_strcmp.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o demog_strcmp -lrt demog_strcmp.o demog_gets_sf: demog_gets_sf.o print_interval.o gcc ${DEBUG_FLAG} print_interval.o -o demog_gets_sf -lrt demog_gets_sf.o simple_read.o : gcc ${DEBUG_FLAG} -c simple_read.c simple_scanf.o : gcc ${DEBUG_FLAG} -c simple_scanf.c demog_gets.o : gcc ${DEBUG_FLAG} -c demog_gets.c simple_gets.o : gcc ${DEBUG_FLAG} -c simple_gets.c print_interval.o : gcc ${DEBUG_FLAG} -c print_interval.c demog_script_friendly.o : gcc ${DEBUG_FLAG} -c demog_script_friendly.c demog_gets_sf.o : gcc ${DEBUG_FLAG} -c demog_gets_sf.c clean : rm ./*.o -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
failure to implement O_LARGEFILES
On 12 July 2012 22:40, Kayven Riese <kayvey@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@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@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@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@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 -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 10:10 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.