[Yazlist] Linking problems on Solaris 10, Sun compiler with yaz-4.0.12/4.14

Sieburgh,Wouter Wouter.Sieburgh at oclc.org
Tue Mar 15 12:00:18 CET 2011

Just one word: Great!


From: yazlist-bounces at lists.indexdata.dk
[mailto:yazlist-bounces at lists.indexdata.dk] On Behalf Of Adam Dickmeiss
Sent: Tuesday, March 15, 2011 11:28 AM
To: yazlist at lists.indexdata.dk
Subject: Re: [Yazlist] Linking problems on Solaris 10,Sun compiler with


On 2011-03-14 14:15, Sieburgh,Wouter wrote: 


Hi Wouter,

this will be fixed in next YAZ release and configure should add -lCrun
on Solaris in ICU is in use.

/ Adam


A few weeks ago, I reported that yaz-4.1.4 could not be compiled/linked
on Solaris-sparc in 64 bit, using the Sun compiler tools  (see earlier
thread with same subject).


The problem was that the link command for yaz_icu, should use the C++
instead of the C-compiler, if not: Some runtime libs are missing.


Somehow I need however to be able to compile this 'out of the box',
since we compile this library at customers/partners site (so a one-time
compilation with manual-intervention will just not do).

This is the trick I've used to get it going (but do realize that this is
definitely not the right thing!). I can see Makefile.in is generated


In util/Makefile.in, added a LINKXX definition, which is just like LINK,
but use $CXX instead of $CC.


Used the LINKCXX to link yaz-icu



CCLD = $(CC)


        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \

        $(LDFLAGS) -o $@



        --mode=link $(CXXLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \

        $(LDFLAGS) -o $@



yaz-icu$(EXEEXT): $(yaz_icu_OBJECTS) $(yaz_icu_DEPENDENCIES)

        @rm -f yaz-icu$(EXEEXT)

        $(LINKXX) $(yaz_icu_OBJECTS) $(yaz_icu_LDADD) $(LIBS)



I still hope that indexdata can come up with a real solution, instead of
my hack. (I'm not familiar with automake and friends)




Wouter Sieburgh


Wouter Sieburgh
Senior Developer * OCLC B.V.
Schipholweg 99 * P.O. Box 876 * 2300 AW Leiden * The Netherlands
t +31-(0)71-524 6636 * f +31-(0)71-522 31 19 
e wouter.sieburgh at oclc.org * w www.oclc.org <http://www.oclc.org/> 

reg. nr. 28115418


Yazlist mailing list
Yazlist at lists.indexdata.dk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.indexdata.dk/pipermail/yazlist/attachments/20110315/150cfdfb/attachment-0001.htm>

More information about the Yazlist mailing list