Problems compiling cruft-cleanout branch on Snow Leopard and Ubuntu 9.10

Nick Hilliard nick at inex.ie
Mon Jan 25 23:43:21 UTC 2010


On 16/11/2009 05:50, Simon Knight wrote:
> On Ubuntu 9.10, I get the error:
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -g -O2 -MT
> prefix.lo -MD -MP -MF .deps/prefix.Tpo -c prefix.cc  -fPIC -DPIC -o
> .libs/prefix.o
> prefix.cc: In member function ‘void PrefixRange::parse(const char*)’:
> prefix.cc:187: error: invalid conversion from ‘const char*’ to ‘char*’
> prefix.cc:189: error: invalid conversion from ‘const char*’ to ‘char*’
> prefix.cc:192: error: invalid conversion from ‘const char*’ to ‘char*’
> prefix.cc: In member function ‘void IPv6PrefixRange::parse(const char*)’:
> prefix.cc:596: error: invalid conversion from ‘const char*’ to ‘char*’
[...]

> This looks to be related to version 4.4 of GCC that Ubuntu 9.10 uses
> by default - http://gcc.gnu.org/gcc-4.4/porting_to.html
> It might be worth updating the wiki to reflect this.

Yes, this is a GNUC4.4 peculiarity; they fixed a problem associated with
the typecasting of various str*() functions.  I've committed a fix for this
in the trunk. Can you try recompiling and see if it works now?

Nick



More information about the irrtoolset mailing list