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

Adam Dickmeiss adam at indexdata.dk
Tue Mar 15 11:28:28 CET 2011


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

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)
>
> LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
>
>         --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
>
>         $(LDFLAGS) -o $@
>
> CXXLD = $(CXX)
>
> LINKXX = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
>
>         --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)
>
> Regards,
>
> 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 <mailto:wouter.sieburgh at oclc.org> *·* w 
> www.oclc.org <http://www.oclc.org/>
>
> reg. nr. 28115418
>
>
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist

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


More information about the Yazlist mailing list