[Bug 444555] [NEW] Wrong declaration of strcasestr() in mpeg4ip.h

Urs Fleisch ufleisch at users.sourceforge.net
Tue Oct 6 13:33:44 UTC 2009


Public bug reported:

The declaration of strcasestr() in /usr/include/mpeg4ip.h is wrong in
Ubuntu 9.10, thus the library is not usable in Ubuntu Karmic.

Reproduction (one line of code typed in via stdin, terminated by Ctrl-D):
$ g++ -x c++ -
#include <mp4.h>
In file included from /usr/include/mp4.h:35,
                 from <stdin>:1:
/usr/include/mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
/usr/include/string.h:367: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’

Fix:
Just omit the wrong declaration, strcasestr() is declared in string.h, which is included by mpeg4ip.h.

--- mpeg4ip-1.6dfsg.orig/include/mpeg4ip.h	2009-10-06 14:51:41.381661458 +0200
+++ mpeg4ip-1.6dfsg/include/mpeg4ip.h	2009-10-06 15:08:24.045607069 +0200
@@ -123,7 +123,6 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-char *strcasestr(const char *haystack, const char *needle);
 #ifdef __cplusplus
 }
 #endif

** Affects: mpeg4ip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Wrong declaration of strcasestr() in mpeg4ip.h
https://bugs.launchpad.net/bugs/444555
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


More information about the universe-bugs mailing list