Mailinglist Archive: opensuse-packaging (183 mails)

< Previous Next >
[opensuse-packaging] error: invalid conversion from 'const char*' to 'char*'
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Mon, 1 Jun 2009 07:40:56 +0200
  • Message-id: <20090601054055.GA23538@xxxxxxxxxxxxxxxx>
Hi,

in case you wonder why your C++ package build started to fail with
error: invalid conversion from 'const char*' to 'char*'

It's because glibc-2.10 has been checked in which contains stricter
prototypes for some functions. Instead of the C prototype
char *strchr(const char *, int)
we have
char *strchr(char *, int)
const char *strchr(const char *, int)

Details are at http://udrepper.livejournal.com/20948.html

--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
List Navigation