Re: [aseek-users] SUN

From: Kir Kolyshkin (no email)
Date: Mon Feb 03 2003 - 11:36:22 EST


As I believe most users do not want to dig deep into ASPseek source code, I
have answered to this most and moved the discussion to aseek-devel list.
Those interested in this thread can subscibe to aseek-devel (see
http://www.aspseek.org/ml-devell.php), or view list archives at either

Gregory Kozlovsky wrote:
> Hello, Kir,
>
> This I already tried to no avail. Today, I found that when linking
> the main program (index or searchd) the parameter ``-Wl,-export-dynamic''
> is needed. This is because (for reasons unknown to me) there is no
> stdc++.so in the gcc distribution for Sun 2.6.
>
> Now I have new problem. The program crashes at the last line of the
> following excerpt:
>
> WORD* buf;
> if (sz >= 10000)
> {
> buf = new WORD[sz];
> }
> else
> {
> buf = (WORD*)alloca(sz << 1);
> }
> WORD* pbuf = buf;
> for (iterator it = begin(); it != end(); it++)
> {
> CWordBuddyVector& vec = it->second;
> *(ULONG*)pbuf =
> m_cache->GetWordID(it->first.Word());
>
> The cast of course is illegal, although it will work on many systems
> because everything is allocated on 8 byte boundary. What are the reasons
> for this cast? I can fix this particular place, but how to find all the
> places where this trick is used. Can you help, Kir?
>
> Gregory Kozlovsky
>
> Project Manager for Information Systems Tel: +41 (0)1 632 63
> 70
> International Relations and Security Network (ISN) Fax: +41 (0)1 632 14
> 13
> Center for Security Studies Email:
>
> ETH Zürich (Swiss Federal Institute of Technology Zurich)
> http://www.isn.ch/
> Leonhardshalde 21, ETH-Zentrum / LEH
> CH-8092 Zürich, Switzerland
>
>
>
> -----Original Message-----
> From: Kir Kolyshkin [mailto:]
> Sent: Freitag, 31. Januar 2003 20:25
> To:
> Subject: Re: [aseek-users] SUN
>
>
> Play with adding/commenting out the following line in src/Makefile.am:
>
> libaspseek_la_LIBADD = -lstdc++
>
> BTW searching Google for "symbol cerr: referenced symbol not found"
> gives some of interesing stuff to read :)
>
> http://www.google.com/search?q=symbol+cerr%3A+referenced+symbol+not+found&so
> urceid=mozilla-search
>
>

-- 
== kir_at_asplinux.ru == 7551596_at_ICQ == 6722750_at_sms.beemail.ru ==
Stuckness  shouldn't be avoided.  It's the psychic  predecessor of all
real understanding.  An egoless acceptance of stuckness is a key to an
understanding of all Quality, in mechanical work as in other endeavors.
               -- R. Pirsig, "Zen and the Art of Motorcycle Maintenance"







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD