cinohub / libkml

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

Long Long Build error with 4.5.2 in Slackware 13.37 64 bits #170

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I tried to build libkml-1.2.0 under a 64 bits environment with gcc 4.5.2 and I 
get this errors:

cc1plus: warnings being treated as errors
In file included from ../../../third_party/boost_1_34_1/boost/config.hpp:57:0,
                 from ../../../third_party/boost_1_34_1/boost/intrusive_ptr.hpp:16,
                 from ../../../src/kml/base/xml_element.h:31,
                 from ../../../src/kml/dom/kml_cast.h:29,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/atom_util.h:34,
                 from atom_util.cc:28:
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:435:18: error: ISO 
C++ 1998 does not support 'long long'
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:436:18: error: ISO 
C++ 1998 does not support 'long long'

Any idea how can I correct it?

Thanks.
Carlos.

Original issue reported on code.google.com by qlands.s...@gmail.com on 17 Oct 2011 at 11:53

GoogleCodeExporter commented 8 years ago
Relax the compile flags in the makefiles. E.g. 
http://code.google.com/p/libkml/source/browse/trunk/src/kml/base/Makefile.am#8

Removing -Werror might be sufficient.

Original comment by kml.mash...@gmail.com on 17 Oct 2011 at 4:40

GoogleCodeExporter commented 8 years ago
I also had this issue on Ubuntu 11.10. Same error. Had to edit the makefiles...

Original comment by chris...@gmail.com on 11 Feb 2012 at 2:09

GoogleCodeExporter commented 8 years ago
> Removing -Werror might be sufficient.

or
  Adding -Wno-long-long # best?
or
  Removing -pedantic

# after editting all Makefile.am, then re-run autogen.sh and configure...

BTW.
for nerwer GNU autotools, i'm glad if configure.ac had
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) line.

Original comment by xwhhspri...@gmail.com on 31 May 2012 at 7:10

GoogleCodeExporter commented 8 years ago

Original comment by xwhhspri...@gmail.com on 31 May 2012 at 7:49

Attachments:

GoogleCodeExporter commented 8 years ago
i am new to linux and would like to apply this patch, what must i do

Original comment by sindile....@gmail.com on 7 Jun 2012 at 10:56

GoogleCodeExporter commented 8 years ago
i am new to linux and would like to apply this patch, what must i do

Original comment by sindile....@gmail.com on 7 Jun 2012 at 10:56

GoogleCodeExporter commented 8 years ago
> i am new to linux and would like to apply this patch, what must i do
sorry. i didn't intend it as patch, i had just copied the result from 'svn 
diff', in order to point out where we should edit, so you might not to be able 
to apply it as `patch'. (actually i don't know how to apply it, me too. ;-)

Original comment by xwhhspri...@gmail.com on 19 Jun 2012 at 6:57

GoogleCodeExporter commented 8 years ago
Same issue with ubuntu 12.04 / gcc 4.6.3

/bin/sh ../../../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 atom_util.lo 
-MD -MP -MF .deps/atom_util.Tpo -c -o atom_util.lo atom_util.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 atom_util.lo 
-MD -MP -MF .deps/atom_util.Tpo -c atom_util.cc  -fPIC -DPIC -o 
.libs/atom_util.o
In file included from ../../../third_party/boost_1_34_1/boost/config.hpp:57:0,
                 from ../../../third_party/boost_1_34_1/boost/intrusive_ptr.hpp:16,
                 from ../../../src/kml/base/xml_element.h:31,
                 from ../../../src/kml/dom/kml_cast.h:29,
                 from ../../../src/kml/dom.h:32,
                 from ../../../src/kml/convenience/atom_util.h:34,
                 from atom_util.cc:28:
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:435:18: error: ISO 
C++ 1998 does not support 'long long' [-Werror=long-long]
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:436:18: error: ISO 
C++ 1998 does not support 'long long' [-Werror=long-long]
cc1plus: all warnings being treated as errors

Original comment by schwehr@google.com on 20 Aug 2012 at 6:40

GoogleCodeExporter commented 8 years ago

Original comment by fwarmerdam@gmail.com on 30 Jan 2013 at 11:10