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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-12-2012, 09:47 PM
Kayven Riese
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
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
*----------------------------------------------------------*
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
07-12-2012, 10:03 PM
Tony Arnold
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
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
07-13-2012, 06:30 AM
Colin Law
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