unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* build errors (error: conflicting types for 'yyget_leng')
@ 2010-03-26  3:59 Andrew Milkowski
  2010-03-26  9:20 ` Sergey Poznyakoff
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Milkowski @ 2010-03-26  3:59 UTC (permalink / raw)
  To: guile-devel

Hi there

using latest git clone from git clone git://git.sv.gnu.org/guile.git
made an attempt to build with the following script
(all dependencies are resolving, error occurs at the install phase)

thanks for any guide in this!

1. environment

bash-3.2$ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin10.0
bash-3.2$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646.1~2/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
--program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
--target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)
bash-3.2$ flex -v
^C
bash-3.2$ flex -V
flex 2.5.35


2. script

export LDFLAGS="-L/opt/local/src/bdw-gc/current/lib"
export BDW_GC_CFLAGS=-I/opt/local/src/bdw-gc/current/include
export BDW_GC_LIBS=-lgc

./configure --prefix=/opt/local/src/guile/git/dist \
--with-libgmp-prefix=/opt/local/src/gmp/current \
--with-libunistring-prefix=/opt/local/src/libunistring/current

make
make install

3. error output:

make  install-am
if [ "no" = "yes" ]; then \
		gcc -std=gnu99 -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I..
-I../lib -I../lib -I/opt/local/lib/libffi-3.0.9/include   -c -o
c-tokenize.o c-tokenize.c; \
	else \
		gcc -std=gnu99 -DHAVE_CONFIG_H   -DBUILDING_LIBGUILE=1 -I.. -I..
-I../lib -I../lib -I/opt/local/lib/libffi-3.0.9/include
-I/opt/local/src/libunistring/current/include
-I/opt/local/src/gmp/current/include -Wall -Wmissing-prototypes
-Wdeclaration-after-statement -Wundef -Wswitch-enum
-fvisibility=hidden -I/opt/local/src/bdw-gc/current/include -g -O2 -c
-o c-tokenize.o c-tokenize.c; \
	fi
<stdout>:658: error: conflicting types for 'yyget_leng'
./c-tokenize.lex:32: error: previous declaration of 'yyget_leng' was here
<stdout>:2051: error: conflicting types for 'yyget_leng'
./c-tokenize.lex:32: error: previous declaration of 'yyget_leng' was here
make[2]: *** [c-tokenize.o] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build errors (error: conflicting types for 'yyget_leng')
  2010-03-26  3:59 build errors (error: conflicting types for 'yyget_leng') Andrew Milkowski
@ 2010-03-26  9:20 ` Sergey Poznyakoff
  2010-03-26 12:22   ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Poznyakoff @ 2010-03-26  9:20 UTC (permalink / raw)
  To: Andrew Milkowski; +Cc: guile-devel

Andrew Milkowski <andrewmilkowski@gmail.com> ha escrit:

> <stdout>:2051: error: conflicting types for 'yyget_leng'
> ./c-tokenize.lex:32: error: previous declaration of 'yyget_leng' was here

This function (yyget_leng) is provided by flex parser skeleton. As such,
flex also provides a forward declaration for it. Since c-tokenize.lex
has a declaration on its own, the resulting file c-tokenize.c ends
up having two declarations for that function (the same holds true for
other parser functions: yyget_in, yyget_out, etc.). These declarations
are not necessarily the same, because the ones generated by flex may
differ in some slight ways from the ones hardcoded in c-tokenize.lex.

To summarize: I'd propose to remove the spurious declarations of
the 'yy*' functions (between lines 27 and 39 in c-tokenize.lex).

Regards,
Sergey




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build errors (error: conflicting types for 'yyget_leng')
  2010-03-26  9:20 ` Sergey Poznyakoff
@ 2010-03-26 12:22   ` Andy Wingo
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Wingo @ 2010-03-26 12:22 UTC (permalink / raw)
  To: Sergey Poznyakoff; +Cc: guile-devel

On Fri 26 Mar 2010 10:20, Sergey Poznyakoff <gray@gnu.org.ua> writes:

> Andrew Milkowski <andrewmilkowski@gmail.com> ha escrit:
>
>> <stdout>:2051: error: conflicting types for 'yyget_leng'
>> ./c-tokenize.lex:32: error: previous declaration of 'yyget_leng' was here
>

There was a thread that was about this:
  http://www.mail-archive.com/guile-devel@gnu.org/msg05103.html

But it seems it wasn't quite resolved.

> To summarize: I'd propose to remove the spurious declarations of
> the 'yy*' functions (between lines 27 and 39 in c-tokenize.lex).

I have done so locally, will push later today.

Thanks!

Andy
-- 
http://wingolog.org/




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-26 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26  3:59 build errors (error: conflicting types for 'yyget_leng') Andrew Milkowski
2010-03-26  9:20 ` Sergey Poznyakoff
2010-03-26 12:22   ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).