Unix Technical Forum

new(unsigned,void*) undefined

This is a discussion on new(unsigned,void*) undefined within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Sorry if this ends up as a duplicate post, but I think that my first try did not go ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-10-2008, 02:57 PM
Thomas Schulz
 
Posts: n/a
Default new(unsigned,void*) undefined

Sorry if this ends up as a duplicate post, but I think that my first try
did not go out.

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?

--
Tom Schulz
schulz@adi.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-13-2008, 07:09 PM
Thomas Schulz
 
Posts: n/a
Default Re: new(unsigned,void*) undefined

In article <g01nl0$1iam$1@nef.ens.fr>, Marc <marc.glisse@gmail.com> wrote:
>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.


That was it. I had downloaded a new version of that patch some time ago,
but I forgot that I forgot to install it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com