View Single Post

   
  #2 (permalink)  
Old 05-10-2008, 02:57 PM
Marc
 
Posts: n/a
Default Re: new(unsigned,void*) undefined

Thomas Schulz wrote:

> I am trying to build the latest mozilla on Solaris 8 with Sun's
> C++ 5.8 2005/10/13. When it gets to the xpcom part I get the following error:
>
> Undefined first referenced
> symbol in file
> void*operator new(unsigned,void*) ../../dist/bin/libxpcom.so
> void operator delete(void*,void*) ../../dist/bin/libxpcom.so
> ld: fatal: Symbol referencing errors. No output written to nsIFileEnumerator
>
>
> Note that it is looking for a 'new' and a 'delete' with two arguments. If
> I switch to Sun's CC: Forte Developer 7 C++ 5.4 the above undefined symbols
> do not occur. If I then check libxpcom.so for 'new' and 'delete' I find
> them with just one argument which can be found. Did I do something wrong
> when I installed C++ 5.8 2005/10/13 or do I need some special library?


Apparently, you forgot to install the required OS patches. You can find a
list here:
http://developers.sun.com/sunstudio/...1_patches.html

The two symbols you are missing should come with recent enough versions
of patch 108434 I believe.
Reply With Quote