Re: tugindia Digest, Vol 143, Issue 1
"S. venkataraman" <[email protected]> Wed, 11 Mar 2015 19:41:31 +0530
| Newsgroups | gmane.comp.tex.tugindia |
|---|---|
| Message-ID | <CAPn=JaZMP=bzF2cxPbBC5Y0zYWERVBL7TJq4P8LZuHMOznSDGg@mail.gmail.com> |
Apparently, getline clashes with some other library function. Just open the file in a text editor and replace getline everywhere by Getline. It compiles OK. Best. On Wed, Mar 11, 2015 at 4:30 PM, <[email protected]> wrote: > Send tugindia mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://tug.org/mailman/listinfo/tugindia > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of tugindia digest..." > > Today's Topics: > > 1. skt.c is not compiling (sanskrit for LaTeX2e package) > (P. P. Narayanaswami) > 2. Re: [texhax] skt.c is not compiling (sanskrit for LaTeX2e > package) (Mark Hale) > > > ---------- Forwarded message ---------- > From: "P. P. Narayanaswami" <[email protected]> > To: <[email protected]> > Cc: [email protected] > Date: Tue, 10 Mar 2015 10:23:29 -0230 > Subject: [Tugindia] skt.c is not compiling (sanskrit for LaTeX2e package) > The file "skt.c" that resides in > http://ctan.org/tex-archive/language/sanskrit > (needed to get the executable "skt" that pre-processes the inputs) is not > compiling in Ubuntu 14.04 and I get the error messages. I am using > TeXLive2014, > the executable "skt" is absent there, and we have to compile it (however > all the > fonts and other material are present there in TeXLive2015). > When I compile the file "skt.c" in Ubuntu 14.04, using the command > gcc -o skt skt.c > I get the following error message : > > ****ERROR MESSAGE***** > skt.c:46:8: error: conflicting types for ‘getline’ > void getline (void); > ^ > In file included from skt.c:36:0: > /usr/include/stdio.h:678:20: note: previous declaration of ‘getline’ was > here > extern _IO_ssize_t getline (char **__restrict __lineptr, > ^ > skt.c: In function ‘main’: > skt.c:168:20: warning: format not a string literal and no format arguments > [-Wformat-security] > { printf("Input file: "); scanf(infilename); } > ^ > skt.c:170:14: warning: format not a string literal and no format arguments > [-Wformat-security] > scanf(outfilename); > ^ > skt.c: In function ‘write_outbuf’: > skt.c:274:20: warning: format ‘%d’ expects argument of type ‘int’, but > argument > 3 has type ‘size_t’ [-Wformat=] > line_cnt, strlen(outbuf) ); > ^ > skt.c: At top level: > skt.c:333:6: error: conflicting types for ‘getline’ > void getline(void) > ^ > In file included from skt.c:36:0: > /usr/include/stdio.h:678:20: note: previous declaration of ‘getline’ was > here > extern _IO_ssize_t getline (char **__restrict __lineptr, > ************************* ^ > Without generating the pre-processor "skt", I cannot use this package. > Any help will be appreciated. > > > > > > > ---------- Forwarded message ---------- > From: Mark Hale <[email protected]> > To: "P. P. Narayanaswami" <[email protected]>, "[email protected]" <[email protected] > > > Cc: "[email protected]" <[email protected]> > Date: Tue, 10 Mar 2015 13:14:44 +0000 > Subject: Re: [Tugindia] [texhax] skt.c is not compiling (sanskrit for > LaTeX2e package) > I don't have a Ubuntu box here, and I get your same > error message (on Arch Linux). > > The following seems to avoid it, but could have other effects > of which I am not aware: > > gcc -ansi -o skt skt.c > > Good luck, > > Mark > ________________________________________ > From: texhax [[email protected]] on behalf of P. P. Narayanaswami [ > [email protected]] > Sent: Tuesday, March 10, 2015 8:53 AM > To: [email protected] > Cc: [email protected] > Subject: [texhax] skt.c is not compiling (sanskrit for LaTeX2e package) > > The file "skt.c" that resides in > http://ctan.org/tex-archive/language/sanskrit > (needed to get the executable "skt" that pre-processes the inputs) is not > compiling in Ubuntu 14.04 and I get the error messages. I am using > TeXLive2014, > the executable "skt" is absent there, and we have to compile it (however > all the > fonts and other material are present there in TeXLive2015). > When I compile the file "skt.c" in Ubuntu 14.04, using the command > gcc -o skt skt.c > I get the following error message : > > ****ERROR MESSAGE***** > skt.c:46:8: error: conflicting types for ‘getline’ > void getline (void); > ^ > In file included from skt.c:36:0: > /usr/include/stdio.h:678:20: note: previous declaration of ‘getline’ was > here > extern _IO_ssize_t getline (char **__restrict __lineptr, > ^ > skt.c: In function ‘main’: > skt.c:168:20: warning: format not a string literal and no format arguments > [-Wformat-security] > { printf("Input file: "); scanf(infilename); } > ^ > skt.c:170:14: warning: format not a string literal and no format arguments > [-Wformat-security] > scanf(outfilename); > ^ > skt.c: In function ‘write_outbuf’: > skt.c:274:20: warning: format ‘%d’ expects argument of type ‘int’, but > argument > 3 has type ‘size_t’ [-Wformat=] > line_cnt, strlen(outbuf) ); > ^ > skt.c: At top level: > skt.c:333:6: error: conflicting types for ‘getline’ > void getline(void) > ^ > In file included from skt.c:36:0: > /usr/include/stdio.h:678:20: note: previous declaration of ‘getline’ was > here > extern _IO_ssize_t getline (char **__restrict __lineptr, > ************************* ^ > Without generating the pre-processor "skt", I cannot use this package. > Any help will be appreciated. > > > > _______________________________________________ > TeX FAQ: http://www.tex.ac.uk/faq > Mailing list archives: http://tug.org/pipermail/texhax/ > More links: http://tug.org/begin.html > > Automated subscription management: http://tug.org/mailman/listinfo/texhax > Human mailing list managers: [email protected] > > > > _______________________________________________ > tugindia mailing list > [email protected] > http://tug.org/mailman/listinfo/tugindia > > -- Dr. S. Venkataraman Associate Professor in Mathematics School of Sciences IGNOU Tel. :29572812(o) _______________________________________________ Home: http://www.tug.org.in/ TeX FAQ: http://www.tex.ac.uk/faq unsubscribe: http://tug.org/mailman/listinfo/tugindia