Re: Compiling on Mac OS X

Jan Holler <[email protected]> Thu, 14 Jun 2007 11:01:47 +0200
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
On Wed, 13 Jun 2007 17:18:53 +0200 Rainer Frey <[email protected]>
wrote:

> On Jun 12, 2007, at 9:25 AM, Jan Holler wrote:
> > You are told that you have a problem here.
> >
> >> gcc  -o .libs/gettext.so -bundle  .libs/gettext.o  ../../intl/
> >> libintl.a /usr/lib/libiconv.dylib -Wl,-framework -Wl,CoreFoundation
> >
> > You should use a dynamic version of libintl (libintl.so). As far as
> > I know it is from gettext-... use the devel-files of gettext,
> > something like gettext-....-devel (do not know the MacOSX file name
> > convention). It includes the appropriate header-files. Whatch out
> > for the correct major version (e.g. do not use 0.1 when 0.2 is
> > needed).
> 
>  From what I found out, Mac OS X doesn't have gettext. I compiled  

That does not matter (regarding wml), you have to install the
header-files anyway (and of course the library itself as well).

> current GNU gettext (0.16.1) (of course with shjared libraries  
> enabled), and tried to use this version and the version included in  
> wml, but I always get the same error.

That is no wonder, since the linking is done against a static library:

gcc  -o [...] ../../intl/libintl.a [...]

> I don't find any hint anywhere  
> in ./configure --help or in README or in INSTALL that wml has a  

Try the following (change to the source dir before):

# ./configure > conf.txt
# grep libintl conf.txt

This produces here on my linux box (wml 2.0.11):

checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes

What does it say on your system?

> dependency on gettext at all. Is it possible to compile wml  
> completely without gettext (I'm not the least interested in
> localized messages anyway - my system is in default locale)?

No, I'd say, since:

# rgrep -r libintl *

produces quite a big list.

bye
 -jan



-- 
  Holler iNetCom
  http://www.inetcom.ch/  tel: +41 31 3725450  fax: 51
  landoltstr. 64, 3007 bern, schweiz
  postanschrift: postfach, 3000 bern 23

_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]