From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: error while compiling emacs 24.5 Date: Tue, 12 May 2015 02:38:30 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1431412730 23619 80.91.229.3 (12 May 2015 06:38:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 06:38:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "osama mak" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 12 08:38:43 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ys3py-0002Ec-E1 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2015 08:38:42 +0200 Original-Received: from localhost ([::1]:41111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys3px-00049E-Lb for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2015 02:38:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys3pn-000491-Fg for help-gnu-emacs@gnu.org; Tue, 12 May 2015 02:38:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys3pm-0007hB-JY for help-gnu-emacs@gnu.org; Tue, 12 May 2015 02:38:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys3pm-0007h5-Ga for help-gnu-emacs@gnu.org; Tue, 12 May 2015 02:38:30 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Ys3pm-0005ul-3p; Tue, 12 May 2015 02:38:30 -0400 X-Spook: STARLAN threat Ceridian North Korea sweep cybercash class X-Ran: /g`*;i'*%U:eG6yTb_)osC%Ek*+6^1!a"(,NQz?_<1YwqqmWuyV";]>d(! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104414 Archived-At: "osama mak" wrote: > with CFLAGS = '-O3 -static' I guess all your problems stem from trying to compile a statically linked Emacs. Are you sure you want to do that? > /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libgio-2.0.a(li > bgio_2_0_la-glocalfileinfo.o): In function `set_selinux_context': Looks like you need to install the static version of libselinux; or ensure it gets added to the build. > /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libgio-2.0.a(li > bgio_2_0_la-giomodule.o): In function `g_io_module_unload_module': > (.text+0xf1): undefined reference to `g_module_close' Ditto for glib. > /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libgio-2.0.a(li > bgio_2_0_la-gthreadedresolver.o): In function > `g_resolver_records_from_res_query': > (.text+0x840): undefined reference to `__dn_expand' Ditto for libresolv? > /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libgobject-2.0. > a(libgobject_2_0_la-gclosure.o): In function `value_to_ffi_type': > (.text+0x244): undefined reference to `ffi_type_uint32' Ditto for libffi? > /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libglib-2.0.a(l > ibglib_2_0_la-gregex.o): In function `get_matched_substring_number': > (.text+0x201): undefined reference to `pcre_get_stringtable_entries' Ditto for pcre. I'm sure it's much easier to compile a dynamically-linked version.