delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/20/08:04:58

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <1d9535c10703200524k50f39fcbnbe2f2f0c3b0bd51f AT mail DOT gmail DOT com>
Subject: RE: _libintl_gettext missing while building Linux kernel
Date: Tue, 20 Mar 2007 13:04:28 -0000
Message-ID: <03c501c76af0$4ae73470$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <1d9535c10703200524k50f39fcbnbe2f2f0c3b0bd51f@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 20 March 2007 12:24, Domen Vrankar wrote:

> Hi,
> 
> while trying to build Linux kernel under Cygwin I get undefined
> reference to `_libintl_gettext' errors. 

  The following patch might help, but it's against a rather old kernel version
and I don't know if it'll still apply:

diff -pruNE linux-2.6.12.2.orig/scripts/Makefile.host
linux-2.6.12.2.new/scripts/Makefile.host
--- linux-2.6.12.2.orig/scripts/Makefile.host	2005-06-30 00:00:53.000000000
+0100
+++ linux-2.6.12.2.new/scripts/Makefile.host	2006-01-16 15:30:24.428019400
+0000
@@ -98,7 +98,8 @@ hostcxx_flags  = -Wp,-MD,$(depfile) $(__
 # Create executable from a single .c file
 # host-csingle -> Executable
 quiet_cmd_host-csingle 	= HOSTCC  $@
-      cmd_host-csingle	= $(HOSTCC) $(hostc_flags) $(HOST_LOADLIBES) -o $@ $<
+      cmd_host-csingle	= $(HOSTCC) $(hostc_flags) $(HOST_LOADLIBES) \
+			  $(HOSTLOADLIBES_$(@F)) -o $@ $<
 $(host-csingle): %: %.c FORCE
 	$(call if_changed_dep,host-csingle)
 
diff -pruNE linux-2.6.12.2.orig/scripts/kconfig/Makefile
linux-2.6.12.2.new/scripts/kconfig/Makefile
--- linux-2.6.12.2.orig/scripts/kconfig/Makefile	2005-06-30
00:00:53.000000000 +0100
+++ linux-2.6.12.2.new/scripts/kconfig/Makefile	2006-01-17 16:11:32.521667100
+0000
@@ -1,4 +1,11 @@
 # ===========================================================================
+# Local mods.  This is for cygwin-hosted builds.  Should be harmlessly
+# superfluous on Linux platforms where libintl functionality is in glibc.
+#ifeq (${OSTYPE},cygwin)
+HOST_LOADLIBES := -lintl
+#endif
+
+# ===========================================================================
 # Kernel configuration targets
 # These targets are used from top-level makefile
 



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019