error: conflicting types for operator new

AN andy at neu.net
Wed Jan 16 17:43:42 UTC 2013


FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #23 r245402: Sun Jan 13 22:39:58 EST 2013     root at FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64



c++ -o nsGnomeVFSProtocolHandler.o -c -I../../dist/stl_wrappers 
-I../../dist/system_wrappers -include ../../../config/gcc_hidden.h 
-DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT 
-I/usr/local/include/gnome-vfs-2.0 
-I/usr/local/include/gnome-vfs-module-2.0 
-I/usr/local/lib/gnome-vfs-2.0/include -I/usr/local/include/gconf/2 
-I/usr/local/include/orbit-2.0 -DORBIT2=1 -D_REENTRANT 
-I/usr/local/include/glib-2.0   -I../../../extensions/gnomevfs -I. 
-I../../dist/include  -I/usr/local/include/nspr 
-I/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/obj-x86_64-portbld-freebsd10.0/dist/include/nss 
-I/usr/local/include -I/usr/local/include    -fPIC -Qunused-arguments 
-isystem/usr/local/include  -I/usr/local/include -Qunused-arguments -Wall 
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits 
-Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings 
-Wno-invalid-offsetof -Wno-variadic-macros -Wno-c++0x-extensions 
-Wno-extended-offsetof -Wno-unknown-warning-option 
-Wno-return-type-c-linkage -Wno-mismatched-tags -O2 -pipe 
-fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fno-rtti 
-ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pipe 
-DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer  -Qunused-arguments 
-isystem/usr/local/include  -I/usr/local/include -DMOZILLA_CLIENT -include 
../../mozilla-config.h -MD -MF .deps/nsGnomeVFSProtocolHandler.o.pp 
/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp
In file included from 
/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp:11:
In file included from ../../dist/stl_wrappers/algorithm:38:
../../dist/include/mozilla/mozalloc.h:204:7: error: conflicting types for 
'operator new'
void* operator new(size_t size, const std::nothrow_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
       ^
../../dist/include/mozilla/mozalloc.h:198:7: note: previous definition is 
here
void* operator new(size_t size) MOZALLOC_THROW_BAD_ALLOC
       ^
../../dist/include/mozilla/mozalloc.h:216:7: error: conflicting types for 
'operator new[]'
void* operator new[](size_t size, const std::nothrow_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
       ^
../../dist/include/mozilla/mozalloc.h:210:7: note: previous definition is 
here
void* operator new[](size_t size) MOZALLOC_THROW_BAD_ALLOC
       ^
../../dist/include/mozilla/mozalloc.h:228:6: error: conflicting types for 
'operator delete'
void operator delete(void* ptr, const std::nothrow_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:222:6: note: previous definition is 
here
void operator delete(void* ptr) MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:240:6: error: conflicting types for 
'operator delete[]'
void operator delete[](void* ptr, const std::nothrow_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:234:6: note: previous definition is 
here
void operator delete[](void* ptr) MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:266:7: error: conflicting types for 
'operator new'
void* operator new(size_t size, const mozilla::fallible_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
       ^
../../dist/include/mozilla/mozalloc.h:198:7: note: previous definition is 
here
void* operator new(size_t size) MOZALLOC_THROW_BAD_ALLOC
       ^
../../dist/include/mozilla/mozalloc.h:272:7: error: conflicting types for 
'operator new[]'
void* operator new[](size_t size, const mozilla::fallible_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
       ^
../../dist/include/mozilla/mozalloc.h:210:7: note: previous definition is 
here
void* operator new[](size_t size) MOZALLOC_THROW_BAD_ALLOC
       ^
../../dist/include/mozilla/mozalloc.h:278:6: error: conflicting types for 
'operator delete'
void operator delete(void* ptr, const mozilla::fallible_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:222:6: note: previous definition is 
here
void operator delete(void* ptr) MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:284:6: error: conflicting types for 
'operator delete[]'
void operator delete[](void* ptr, const mozilla::fallible_t&) 
MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
../../dist/include/mozilla/mozalloc.h:234:6: note: previous definition is 
here
void operator delete[](void* ptr) MOZALLOC_THROW_IF_HAS_EXCEPTIONS
      ^
In file included from 
/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp:11:
In file included from ../../dist/stl_wrappers/algorithm:54:
In file included from ../../dist/system_wrappers/algorithm:2:
In file included from /usr/include/c++/4.2/algorithm:64:
In file included from /usr/include/c++/4.2/bits/stl_algobase.h:66:
In file included from ../../dist/stl_wrappers/cstring:54:
In file included from ../../dist/system_wrappers/cstring:2:
/usr/include/c++/4.2/cstring:100:3: error: declaration conflicts with 
target of using declaration already in scope
   memchr(void* __p, int __c, size_t __n)
   ^
/usr/include/string.h:57:7: note: target of using declaration
void    *memchr(const void *, int, size_t) __pure;
          ^
/usr/include/c++/4.2/cstring:97:11: note: using declaration
   using ::memchr;
           ^
/usr/include/c++/4.2/cstring:106:3: error: declaration conflicts with 
target of using declaration already in scope
   strchr(char* __s1, int __n)
   ^
/usr/include/string.h:76:7: note: target of using declaration
char    *strchr(const char *, int) __pure;
          ^
/usr/include/c++/4.2/cstring:103:11: note: using declaration
   using ::strchr;
           ^
/usr/include/c++/4.2/cstring:112:3: error: declaration conflicts with 
target of using declaration already in scope
   strpbrk(char* __s1, const char* __s2)
   ^
/usr/include/string.h:106:7: note: target of using declaration
char    *strpbrk(const char *, const char *) __pure;
          ^
/usr/include/c++/4.2/cstring:109:11: note: using declaration
   using ::strpbrk;
           ^
/usr/include/c++/4.2/cstring:118:3: error: declaration conflicts with 
target of using declaration already in scope
   strrchr(char* __s1, int __n)
   ^
/usr/include/string.h:107:7: note: target of using declaration
char    *strrchr(const char *, int) __pure;
          ^
/usr/include/c++/4.2/cstring:115:11: note: using declaration
   using ::strrchr;
           ^
/usr/include/c++/4.2/cstring:124:3: error: declaration conflicts with 
target of using declaration already in scope
   strstr(char* __s1, const char* __s2)
   ^
/usr/include/string.h:115:7: note: target of using declaration
char    *strstr(const char *, const char *) __pure;
          ^
/usr/include/c++/4.2/cstring:121:11: note: using declaration
   using ::strstr;
           ^
In file included from 
/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp:11:
In file included from ../../dist/stl_wrappers/algorithm:54:
In file included from ../../dist/system_wrappers/algorithm:2:
In file included from /usr/include/c++/4.2/algorithm:64:
In file included from /usr/include/c++/4.2/bits/stl_algobase.h:68:
In file included from ../../dist/stl_wrappers/cstdlib:54:
In file included from ../../dist/system_wrappers/cstdlib:2:
/usr/include/c++/4.2/cstdlib:142:3: error: declaration conflicts with 
target of using declaration already in scope
   abs(long __i) { return labs(__i); }
   ^
/usr/include/stdlib.h:83:6: note: target of using declaration
int      abs(int) __pure2;
          ^
/usr/include/c++/4.2/cstdlib:109:11: note: using declaration
   using ::abs;
           ^
/usr/include/c++/4.2/cstdlib:145:3: error: declaration conflicts with 
target of using declaration already in scope
   div(long __i, long __j) { return ldiv(__i, __j); }
   ^
/usr/include/stdlib.h:91:8: note: target of using declaration
div_t    div(int, int) __pure2;
          ^
/usr/include/c++/4.2/cstdlib:116:11: note: using declaration
   using ::div;
           ^
In file included from 
/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp:11:
In file included from ../../dist/stl_wrappers/algorithm:54:
In file included from ../../dist/system_wrappers/algorithm:2:
In file included from /usr/include/c++/4.2/algorithm:64:
In file included from /usr/include/c++/4.2/bits/stl_algobase.h:70:
In file included from /usr/include/c++/4.2/iosfwd:48:
In file included from /usr/include/c++/4.2/bits/postypes.h:45:
In file included from ../../dist/stl_wrappers/cwchar:54:
/usr/include/c++/4.2/cwchar:210:3: error: declaration conflicts with 
target of using declaration already in scope
   wcschr(wchar_t* __p, wchar_t __c)
   ^
/usr/include/wchar.h:135:10: note: target of using declaration
wchar_t *wcschr(const wchar_t *, wchar_t) __pure;
          ^
/usr/include/c++/4.2/cwchar:207:11: note: using declaration
   using ::wcschr;
           ^
/usr/include/c++/4.2/cwchar:216:3: error: declaration conflicts with 
target of using declaration already in scope
   wcspbrk(wchar_t* __s1, const wchar_t* __s2)
   ^
/usr/include/wchar.h:147:10: note: target of using declaration
wchar_t *wcspbrk(const wchar_t *, const wchar_t *) __pure;
          ^
/usr/include/c++/4.2/cwchar:213:11: note: using declaration
   using ::wcspbrk;
           ^
/usr/include/c++/4.2/cwchar:222:3: error: declaration conflicts with 
target of using declaration already in scope
   wcsrchr(wchar_t* __p, wchar_t __c)
   ^
/usr/include/wchar.h:148:10: note: target of using declaration
wchar_t *wcsrchr(const wchar_t *, wchar_t) __pure;
          ^
/usr/include/c++/4.2/cwchar:219:11: note: using declaration
   using ::wcsrchr;
           ^
/usr/include/c++/4.2/cwchar:228:3: error: declaration conflicts with 
target of using declaration already in scope
   wcsstr(wchar_t* __s1, const wchar_t* __s2)
   ^
/usr/include/wchar.h:152:10: note: target of using declaration
wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict)
          ^
/usr/include/c++/4.2/cwchar:225:11: note: using declaration
   using ::wcsstr;
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[4]: *** [nsGnomeVFSProtocolHandler.o] Error 1
gmake[4]: Leaving directory 
`/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/obj-x86_64-portbld-freebsd10.0/extensions/gnomevfs'
gmake[3]: *** [gnomevfs_libs] Error 2
gmake[3]: Leaving directory 
`/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/obj-x86_64-portbld-freebsd10.0/extensions'
gmake[2]: *** [libs_tier_app] Error 2
gmake[2]: Leaving directory 
`/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/obj-x86_64-portbld-freebsd10.0'
gmake[1]: *** [tier_app] Error 2
gmake[1]: Leaving directory 
`/usr/ports/www/FF_nightly/work/mozilla-central-8d8912467c41/obj-x86_64-portbld-freebsd10.0'
gmake: *** [default] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/www/FF_nightly.
*** [/usr/ports/www/FF_nightly/work/.build_done.firefox._usr_local] Error 
code 1




More information about the freebsd-gecko mailing list