delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <3AB52829.F0F5F0FD@ece.gatech.edu> |
Date: | Sun, 18 Mar 2001 16:27:05 -0500 |
From: | Charles Wilson <cwilson AT ece DOT gatech DOT edu> |
X-Mailer: | Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | "Jari Aalto+tpu.misc" <posting-list AT MailAndNews DOT com> |
CC: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: fetchmail compile trouble __imp__gettext |
References: | <wksnka7tdy DOT fsf AT blue DOT sea DOT net> |
"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 AT PICASSO /tmp/compile/fetchmail-5.7.5 $ > -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |