This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fetchmail compile trouble __imp__gettext


"Jari Aalto+tpu.misc" wrote:
> 
>     Would anyone have clue what is this missing _imp__gettext ?
> 
>     Jari

You are compiling with the gettext header files in /usr/include, but are
linking against the gettext static library (libintl.a) that is
distributed as part of fetchmail source tarball.  Because so many
projects include gettext within their own code (a BAD practice, IMO),
fixing this The Right Way is hard. 

The easy way:
  Add -DGETTEXT_STATIC to your CFLAGS before compiling.  This will make
the /usr/include gettext headers "right" for static libs.  Or rename
"gettext.h" in /usr/include, which forces fetchmail to use its own
internal gettext headers.

--Chuck


> 
> 
> gcc -DHAVE_CONFIG_H  -DLOCALEDIR=\"/usr/local/share/locale\" -c  -I. -I. -I../intl -I./intl  -static -Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows md5c.c
> gcc   rcfile_y.o rcfile_l.o socket.o getpass.o pop2.o pop3.o imap.o etrn.o odmr.o fetchmail.o idle.o env.o options.o daemon.o driver.o sink.o rfc822.o smtp.o xmalloc.o uid.o mxget.o md5ify.o cram.o kerberos.o gssapi.o opie.o rpa.o interface.o netrc.o base64.o error.o unmime.o conf.o checkalias.o smbdes.o smbencrypt.o smbmd4.o smbutil.o ipv6-connect.o lock.o  md5c.o  -lcrypt   -lfl -o fetchmail
> rcfile_y.o(.text+0x12c5):rcfile_y.c: undefined reference to `_imp__gettext'
> rcfile_y.o(.text+0x1448):rcfile_y.c: undefined reference to `_imp__gettext'
> rcfile_y.o(.text+0x1581):rcfile_y.c: undefined reference to `_imp__gettext'
> rcfile_y.o(.text+0x15b5):rcfile_y.c: undefined reference to `_imp__gettext'
> rcfile_y.o(.text+0x15f1):rcfile_y.c: undefined reference to `_imp__gettext'
> rcfile_y.o(.text+0x1e06):rcfile_y.c: more undefined references to `_imp__gettext' follow
> fetchmail.o(.text+0x8d9):fetchmail.c: undefined reference to `_imp__bindtextdomain'
> fetchmail.o(.text+0x8ec):fetchmail.c: undefined reference to `_imp__textdomain'
> fetchmail.o(.text+0x90f):fetchmail.c: undefined reference to `_imp__gettext'
> fetchmail.o(.text+0xa53):fetchmail.c: undefined reference to `_imp__gettext'
> fetchmail.o(.text+0xbbf):fetchmail.c: undefined reference to `_imp__gettext'
> fetchmail.o(.text+0xdb6):fetchmail.c: undefined reference to `_imp__gettext'
> fetchmail.o(.text+0xdd4):fetchmail.c: undefined reference to `_imp__gettext'
> fetchmail.o(.text+0xe04):fetchmail.c: more undefined references to `_imp__gettext' follow
> collect2: ld returned 1 exit status
> make: *** [fetchmail] Error 1
> //jaalto@PICASSO /tmp/compile/fetchmail-5.7.5 $
>

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]