From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2102 Path: news.gmane.org!not-for-mail From: Robin Bowes Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Problems Compiling with glibc 2.12.1 Date: Mon, 13 Jun 2011 18:19:51 +0100 Message-ID: <4DF646B7.4090608@robinbowes.com> References: <20110206231209.GA10928@lasse.mail.plastictre.net> <4DF60A21.9000302@robinbowes.com> <20110613133819.GA27014@skarnet.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307985615 684 80.91.229.12 (13 Jun 2011 17:20:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 17:20:15 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2336-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Jun 13 19:20:09 2011 Return-path: Envelope-to: gcsg-supervision@lo.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QWAo2-0001i2-3b for gcsg-supervision@lo.gmane.org; Mon, 13 Jun 2011 19:20:06 +0200 Original-Received: (qmail 11740 invoked by uid 76); 13 Jun 2011 17:22:45 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 11732 invoked from network); 13 Jun 2011 17:22:45 -0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhMIAKhF9k3Unw4R/2dsb2JhbABSmAqOJHfIKYYkBJYDiw8 X-Spam-Level: * X-Spam-Status: No, hits=-0.0 required=8.0 tests=ALL_TRUSTED,RATWARE_GECKO_BUILD X-Spam-Check-By: batmobile.robinbowes.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 In-Reply-To: <20110613133819.GA27014@skarnet.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2102 Archived-At: On 06/13/2011 02:38 PM, Laurent Bercot wrote: >> ./load runit unix.a byte.a -static > > My nose is tingling. > > >> Anyone got any ideas how I can get runit built on NexentaStor/OpenSolaris ? > > What if you remove the -static from the Makefile ? > The runit and runit-init binaries are always linked statically, in order > to avoid runtime libc dependencies; but maybe your gcc doesn't understand > -static when it's there on the command line, or your system simply does > not provide a static version of the libc. (Which would suck, but hey, > it's Solaris-based.) Removing -static from the Makefile worked. I even added back the "-s" in src/conf-ld. I just did this before running package/install: perl -pi -e 's/-static//' src/Makefile which removes -static from the following two lines runit: load runit.o unix.a byte.a ./load runit unix.a byte.a -static runit-init: load runit-init.o unix.a byte.a ./load runit-init unix.a byte.a -static So, looks like gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2nexenta7) doesn't like the -static switch. R. -- "Feed that ego and you starve the soul" - Colonel J.D. Wilkes http://www.theshackshakers.com/