[opensuse-packaging] boinc_client: /usr/include/string.h:218: error: ambiguates old declaration 'char*
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? -- 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
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> Andreas -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Tue, 29 Sep 2009, Andreas Jaeger wrote:
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>
c) do not include <string.h> in C++ code Richard. -- Richard Guenther <rguenther@suse.de> Novell / SUSE Labs SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Andreas Jaeger
-
Richard Guenther
-
Sascha 'saigkill' Manns