Mailinglist Archive: opensuse-packaging (220 mails)

< Previous Next >
Re: [opensuse-packaging] boinc_client: /usr/include/string.h:218: error: ambiguates old declaration 'char*
  • From: "Sascha 'saigkill' Manns" <samannsml@xxxxxxxxxxxxx>
  • Date: Wed, 30 Sep 2009 13:33:15 +0200
  • Message-id: <200909301333.15337@xxxxxxxxxxxxxxxxxxx>
Am Dienstag 29 September 2009 22:20:16 wrote Andreas Jaeger:
On Tuesday 29 September 2009 19:44:22 Sascha 'saigkill' Manns wrote:
Hello Mates,

In file included from cpu_sched.cpp:45:
.../lib/str_util.h:41: error: new declaration 'const char*
strcasestr(const char*, const char*)'
/usr/include/string.h:218: error: ambiguates old declaration 'char*
strcasestr(const char*, const char*)'
make[2]: *** [boinc_client-cpu_sched.o] Error 1

Does anyone know what to do?

a) remove from lib/str_util.h the declation of strcasestr.
b) if the package implements strcasestr: Rename the function to avoid a
conflict with the system header <string.h>
Thanks for that hint. Now it builds to the end...

--
Sincerely yours

Sascha Manns
openSUSE Member
openSUSE Ambassador
openSUSE Marketing Team
openSUSE Build Service
Web: http://saschamanns.gulli.to
Blog: http://saigkill.wordpress.com
ClaimID: http://claimid.com/saigkill

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >