[Tugindia] tugindia Digest, Vol 143, Issue 1

S. venkataraman svenkat at ignou.ac.in
Wed Mar 11 15:11:31 CET 2015


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, <tugindia-request at tug.org> wrote:

> Send tugindia mailing list submissions to
>         tugindia at tug.org
>
> 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
>         tugindia-request at tug.org
>
> You can reach the person managing the list at
>         tugindia-owner at tug.org
>
> 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" <swami at mun.ca>
> To: <texhax at tug.org>
> Cc: tugindia at tug.org
> 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 <mark.hale at concordia.ca>
> To: "P. P. Narayanaswami" <swami at mun.ca>, "texhax at tug.org" <texhax at tug.org
> >
> Cc: "tugindia at tug.org" <tugindia at tug.org>
> 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 [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
>
>
>
> _______________________________________________
> tugindia mailing list
> tugindia at tug.org
> http://tug.org/mailman/listinfo/tugindia
>
>


-- 
Dr. S. Venkataraman
Associate Professor in Mathematics
School of Sciences
IGNOU
Tel. :29572812(o)


More information about the tugindia mailing list