Re: [texhax] skt.c is not compiling (sanskrit for LaTeX2e package)
Mark Hale <[email protected]> Tue, 10 Mar 2015 13:14:44 +0000
| Newsgroups | gmane.comp.tex.tugindia,gmane.comp.tex.texhax |
|---|---|
| Message-ID | <16F3DFBEF91E524A9DF1CA00B01B90FEB73E1A24@UMS-SGWMBS3.concordia.ca> |
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] _______________________________________________ Home: http://www.tug.org.in/ TeX FAQ: http://www.tex.ac.uk/faq unsubscribe: http://tug.org/mailman/listinfo/tugindia