[Tugindia] [texhax] skt.c is not compiling (sanskrit for LaTeX2e package)
Mark Hale
mark.hale at concordia.ca
Tue Mar 10 14:14:44 CET 2015
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 [texhax-bounces at tug.org] on behalf of P. P. Narayanaswami [swami at mun.ca]
Sent: Tuesday, March 10, 2015 8:53 AM
To: texhax at tug.org
Cc: tugindia at tug.org
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: postmaster at tug.org
More information about the tugindia
mailing list