azzeddine1265 / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

type qualifiers ignored error during make (building trunk r492) #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sh autogen.sh
2. ./configure --prefix=/usr/local/libkml/trunk-r492
3. make

What is the expected output? What do you see instead?

Make is expected to finish without errors.  Instead I see errors related to
type qualifiers:

Making all in convenience
make[4]: Entering directory
`/home/terickson/src/libkml/trunk/src/kml/convenience'
/bin/bash ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../..  -I../../../src -I../../../third_party/boost_1_34_1
-I../../../third_party/googletest-r108/include  -Wall -Wextra
-Wno-unused-parameter -Werror -ansi -pedantic -fno-rtti -g -O2 -MT
convenience.lo -MD -MP -MF .deps/convenience.Tpo -c -o convenience.lo
convenience.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src
-I../../../third_party/boost_1_34_1
-I../../../third_party/googletest-r108/include -Wall -Wextra
-Wno-unused-parameter -Werror -ansi -pedantic -fno-rtti -g -O2 -MT
convenience.lo -MD -MP -MF .deps/convenience.Tpo -c convenience.cc  -fPIC
-DPIC -o .libs/convenience.o
cc1plus: warnings being treated as errors
In file included from ../../../src/kml/dom/object.h:32,
                 from ../../../src/kml/dom/abstractview.h:29,
                 from ../../../src/kml/dom/kmldom.h:29,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/element.h:119: error: type qualifiers ignored on
function return type
../../../src/kml/dom/element.h:127: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:30,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/atom.h:159: error: type qualifiers ignored on function
return type
In file included from ../../../src/kml/dom/feature.h:33,
                 from ../../../src/kml/dom/container.h:30,
                 from ../../../src/kml/dom/kmldom.h:32,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/extendeddata.h:117: error: type qualifiers ignored on
function return type
../../../src/kml/dom/extendeddata.h:216: error: type qualifiers ignored on
function return type
../../../src/kml/dom/extendeddata.h:229: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:32,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/container.h:50: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/document.h:33,
                 from ../../../src/kml/dom/kmldom.h:33,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/schema.h:123: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:33,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/document.h:51: error: type qualifiers ignored on
function return type
../../../src/kml/dom/document.h:64: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:38,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/geometry.h:105: error: type qualifiers ignored on
function return type
../../../src/kml/dom/geometry.h:423: error: type qualifiers ignored on
function return type
../../../src/kml/dom/geometry.h:460: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/iconstyle.h:33,
                 from ../../../src/kml/dom/kmldom.h:39,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/link.h:83: error: type qualifiers ignored on function
return type
../../../src/kml/dom/link.h:99: error: type qualifiers ignored on function
return type
../../../src/kml/dom/link.h:115: error: type qualifiers ignored on function
return type
../../../src/kml/dom/link.h:131: error: type qualifiers ignored on function
return type
../../../src/kml/dom/link.h:147: error: type qualifiers ignored on function
return type
In file included from ../../../src/kml/dom/kml.h:33,
                 from ../../../src/kml/dom/kmldom.h:40,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/networklinkcontrol.h:71: error: type qualifiers
ignored on function return type
../../../src/kml/dom/networklinkcontrol.h:103: error: type qualifiers
ignored on function return type
../../../src/kml/dom/networklinkcontrol.h:135: error: type qualifiers
ignored on function return type
../../../src/kml/dom/networklinkcontrol.h:176: error: type qualifiers
ignored on function return type
In file included from ../../../src/kml/dom/kmldom.h:43,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/liststyle.h:64: error: type qualifiers ignored on
function return type
../../../src/kml/dom/liststyle.h:67: error: type qualifiers ignored on
function return type
../../../src/kml/dom/liststyle.h:160: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:44,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/model.h:327: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:55,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/stylemap.h:121: error: type qualifiers ignored on
function return type
In file included from ../../../src/kml/dom/kmldom.h:58,
                 from ../../../src/kml/dom/kml_cast.h:30,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/convenience.h:34,
                 from convenience.cc:26:
../../../src/kml/dom/gx_tour.h:94: error: type qualifiers ignored on
function return type
make[4]: *** [convenience.lo] Error 1
make[4]: Leaving directory
`/home/terickson/src/libkml/trunk/src/kml/convenience'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/terickson/src/libkml/trunk/src/kml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/terickson/src/libkml/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/terickson/src/libkml/trunk'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
trunk r492  Ubuntu 8.10

Did you run the unit test suite that comes with the project? Did all tests
pass?
No, didn't get that far.

Please provide any additional information below.

Original issue reported on code.google.com by tylerick...@gmail.com on 6 Mar 2009 at 11:49

GoogleCodeExporter commented 9 years ago
What's the output of gcc --version on your system? I have no problems with GCC 
4.2.4
on Ubuntu 8.04.

The root cause is the -Wextra in the Makefiles. Remove that (or the -Werror to 
not
treat warnings as errors) and you should get farther. But I'd like to 
understand why
it's failing for you.

Original comment by kml.mash...@gmail.com on 6 Mar 2009 at 8:19

GoogleCodeExporter commented 9 years ago
taericks@optiplexe:~$ gcc --version
gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2

Original comment by tylerick...@gmail.com on 7 Mar 2009 at 2:10

GoogleCodeExporter commented 9 years ago
I grabbed GCC 4.3.3 and it looks like they're finally enforcing the redundancy 
of
"const size_t get_foo() const;". Trivial fix for us.

Thanks for acting as the advance guard and finding this one!

Original comment by kml.mash...@gmail.com on 7 Mar 2009 at 6:24

GoogleCodeExporter commented 9 years ago
Fixed in r498

http://code.google.com/p/libkml/source/detail?r=498

Original comment by kml.mash...@gmail.com on 10 Mar 2009 at 10:46