help needed with gcc-4.4 build failure

Julian Sikorski belegdol at
Wed Feb 18 13:39:03 UTC 2009


I am trying to make gnome-chemistry-utils ready for the mass rebuild.
Unfortunately, there are some issues which are beyond my skills. The
first one is the fact that some adjustments for new xulrunner are
needed. With gcc-4.4, however, build fails even earlier: In function 'void ReadValue(const char*, GcuValue&)': error: invalid conversion from 'const char*' to 'char*' In function 'void ReadDimensionalValue(const char*,
GcuDimensionalValue&)': error: invalid conversion from 'const char*' to 'char*'

Full build log is here:

Upstream unfortunately cannot reproduce the problem, here is his comment:

Looks like the issue comes with strchr.

man strchr says:
char *strchr(const char *s, int c);

I don't see what is wrong since the argument is a const char* string.

I can't reproduce the issue. May be the signature of strchr changed in
Anyway, the above signature is not consistent since it returns a char* which
is a substring of a const char*.
If this is the case, there is a need for a test in configure to find which
signature version is available.

Thank you very much in advance.


More information about the devel mailing list