Dmitry Semikin wrote:
>
> Hello, once again.
>
> Now I've looked onto error I've got, and I see, that there is problem, while
> makeing noweb.
> Althogh one problem ending with [stamp-noweb] is mentioned in
> INSTALL.CYGWIN, but this is another problem (that problem is with elisp).
> But I've got the following error, when try to build noweb:
>
> Making in noweb
> ( mkdir noweb && \
> cd noweb && \
> tar -zxf
> "/home/semikin/builds/fricas_110929/fricas-1.1.3/zips/noweb-2.10a.tgz" && \
> cd src && \
> cat Makefile \
> | sed -e
> "s|^BIN=.*|BIN=/home/semikin/builds/fricas_110929/fricas-1.1.3-build/build/i686-pc-cygwin/bin|"
> \
> -e
> "s|^LIB=.*|LIB=/home/semikin/builds/fricas_110929/fricas-1.1.3-build/build/i686-pc-cygwin/lib|"
> \
> -e
> "s|^MAN=.*|MAN=/home/semikin/builds/fricas_110929/fricas-1.1.3-build/build/i686-pc-cygwin/man|"
> \
> -e
> "s|^TEXINPUTS=.*|TEXINPUTS=/home/semikin/builds/fricas_110929/fricas-1.1.3-build/target/i686-pc-cygwin/share/texmf/tex|"
> \
> -e 's/ make / $\(MAKE\) /' \
> -e "s,c/nt,c/nt.exe," \
> -e "s,c/markup,c/markup.exe," \
> -e "s,c/mnt,c/mnt.exe," \
> -e "s,c/finduses,c/finduses.exe," \
> > Makefile.tmp && mv Makefile.tmp Makefile && \
> ./awkname gawk && make -j 1 all install )
> make[1]: Entering directory
> `/home/semikin/builds/fricas_110929/fricas-1.1.3-build/noweb/src'
> cd c; make "CC=gcc -ansi -pedantic" "CFLAGS=" all
> make[2]: Entering directory
> `/home/semikin/builds/fricas_110929/fricas-1.1.3-build/noweb/src/c'
> gcc -ansi -pedantic -c -o notangle.o notangle.c
> In file included from notangle.nw:28:
> getline.h:4: error: conflicting types for 'getline'
> /usr/include/sys/stdio.h:37: error: previous declaration of 'getline' was
> here
> getline.h:4: error: conflicting types for 'getline'
> /usr/include/sys/stdio.h:37: error: previous declaration of 'getline' was
> here
> make[2]: *** [notangle.o] Error 1
> make[2]: Leaving directory
> `/home/semikin/builds/fricas_110929/fricas-1.1.3-build/noweb/src/c'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/semikin/builds/fricas_110929/fricas-1.1.3-build/noweb/src'
> make: *** [stamp-noweb] Error 2
>
>
>
> May be there some problems with gcc options? or gcc version? (I use gcc
> 3.4.4 - default one)
>
Looks like bug in Cygwin 'stdio.h': ANSI C says that stdio.h is not
allowed to define symbols not mentioned in the standard and I could
not see 'getline' in the standard. And via '-ansi' we request strict
ANSI compliance, so all extensions should be deactivated.
Anyway, there was no change to nowed and it did compile on Cygwin,
so that must be relatively recent Cygwin change.
However, given broken Cygwin 'stdio.h' it seems that the only solution
is to rename getline in noweb to new name, say 'noweb_getline'.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.