(
Jump to the original submission)
Wed 28 Sep 2011 04:46:12 AM UTC, comment #6:
I have reported that the gnulib bug to the gnulib ML.
http://old.nabble.com/_GL_CXXALIAS_SYS-%28raise%2C-int%2C-%28int-sig%29%29--in-signal.h-may-give-complie-error-in-C%2B%2B-source.-to32545775.html
The bug has been fixed and complie of f77-extern.cc can be passed with the recently updated gnulib components.
I think that this post are able to be closed now.
|
Tue 27 Sep 2011 05:07:25 AM UTC, comment #5:
Situation seems to be the same in the MinGW build.
After I commented out one of the duplicate lines in signal.h, compile of libcruft/misc/f77-extern.cc went well.
|
Sun 25 Sep 2011 04:42:48 AM UTC, comment #4:
John,
This seems correct. In the meantime it is easy to
comment out one of the duplicate lines, and the build then
works normally.
Michael
|
Sun 25 Sep 2011 04:29:41 AM UTC, comment #3:
I'm fairly sure this is a bug in gnulib, so needs to be fixed there. There shouldn't be two
lines in the libgnu/signal.h file, or if there are, they should be fixed so that they don't conflict. But in any case, that's something for the gnulib developers to fix.
|
Sat 24 Sep 2011 11:25:51 PM UTC, comment #2:
Sorry, I meant fails on FC14, too.
Michael
|
Sat 24 Sep 2011 11:24:52 PM UTC, comment #1:
Update: Fails on FC15 too. I had not done a complete
reinstall. This appears to be a gnulib problem.
Michael
|
Sat 24 Sep 2011 08:59:47 PM UTC, original submission:
As of a recent update, build fails at:
/libcruft_la-f77-extern.lo `test -f 'misc/f77-extern.cc' || echo './'`misc/f77-extern.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -g -O2 -DHAVE_CONFIG_H -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -g -O2 -MT misc/libcruft_la-f77-extern.lo -MD -MP -MF misc/.deps/libcruft_la-f77-extern.Tpo -c misc/f77-extern.cc -fPIC -DPIC -o misc/.libs/libcruft_la-f77-extern.o
In file included from misc/quit.h:33:0,
from misc/f77-fcn.h:26,
from misc/f77-extern.cc:28:
../libgnu/signal.h:629:48: error: redefinition of 'int (* gnulib::raise)(int)'
../libgnu/signal.h:481:33: error: 'int (* gnulib::raise)(int)' previously defined here
=============================================
The same Octave devel level builds correctly on Fedora 14, so this
problem is due to some change in Fedora 15, possibly a newer version of gfortran
On fc14: gcc-gfortran-4.5.1-4.fc14.x86_64
On fc15: gcc-gfortran-4.6.0-10.fc15.x86_64
============================================
After commenting out libgnu/signal.h line 629
the system builds OK. But, since signal.h is auto-generated,
this is not a solution.
Tell me if config logs or other information is needed.
|
(Note: upload size limit is set to 16384 kB, after insertion of the required
escape characters.)
Attach File(s):
Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one
Digest:
bug dependencies.
Follow 3 latest changes.