Re: building cvs: problems with libintl

Sam Varshavchik <[email protected]>
Newsgroups gmane.comp.audio.zinf.devel
Message-ID <[email protected]>
Andreas Rottmann writes:

> David Hough <[email protected]> writes:
> 
>> I'm not entirely sure why but i can't get the cvs version to compile
>> without applying the following patch and doing ./autogen.sh
>> again. Without it i get a load of error messages about unresolved
>> symbols. I assume it works for everyone else without it, so i just
>> guess my computer is setup weird. If anyone could shed any light on
>> this it would be appreciated.
>>
>> David
>>
>> --- zinfunpatched/base/Makefile.am	2003-05-30 13:08:45.000000000 +0000
>> +++ zinf/base/Makefile.am	2003-08-08 23:56:23.000000000 +0000
>> @@ -20,7 +20,7 @@
>>  	       src/downloadmanager.cpp src/errors.cpp \
>>  	       src/undomanager.cpp src/timer.cpp src/missingfile.cpp
>>  zinf_LDADD = $(top_builddir)/io/libio.la unix/libunix.la $(GDBM_LIBS) \
>> -	     $(THREAD_LIBS) -ldl
>> +	     $(THREAD_LIBS) -ldl -lintl
>>  zinf_LDFLAGS = -export-dynamic
>>
>>  noinst_HEADERS = $(inc_headers)
>>
> On my system (Debian sid), there isn't even an libintl:
> 
> andy@alice:~% locate libintl
> /home/andy/src/foreign/glib/glib/glibintl.h
> /usr/include/libintl.h
> /usr/lib/preloadable_libintl.so
> /usr/share/awk/libintl.awk

libintl is a library installed by gettext, and serves as a replacement for 
systems that do not have gettext().

The --intl option to gettextize installs a subdirectory in the source tree, 
'intl', and adds it to the disted tarball.  The configure script, upon a 
determination that the platform does not have a suitable() gettext (or if 
--with-included-gettext) is specified, will include the intl subdirectory in 
the build in that case.

Your LDADDs should have @LIBINTL@ included, which is usually empty, and 
filled in with -lintl when configure script decides to built libintl.a

I prefer NOT to run gettextize --intl in autogen.sh, but run it manually, 
and commit the intl subdirectory to CVS.  Whenever gettext is upgraded, 
repeat, and recommit any changes to CVS, again.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA/Npe1x9p3GYHlUOIRAj8PAJ4h5XsLHKxMBIIGfLNDuxZLRsLXIQCeLyya
4S6AfB4v5j3cO30mVP+8Yvo=
=wXHn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.