[texhax] skt.c is not compiling (sanskrit for LaTeX2e package)

P. P. Narayanaswami swami at mun.ca
Tue Mar 10 13:53:29 CET 2015


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.





More information about the texhax mailing list