From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10367 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: ./configure errors witn musl-gcc (zlib library conflict when building openssh) Date: Fri, 5 Aug 2016 19:30:46 -0400 Message-ID: <20160805233046.GR15995@brightrain.aerifal.cx> References: <66c1b284-a9ae-774f-579f-fac0d1c6193e@gmail.com> <20160805232605.GB9968@haswell> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1470439871 26771 195.159.176.226 (5 Aug 2016 23:31:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2016 23:31:11 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10380-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 06 01:31:06 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVoZx-0005LY-C5 for gllmg-musl@m.gmane.org; Sat, 06 Aug 2016 01:31:01 +0200 Original-Received: (qmail 17408 invoked by uid 550); 5 Aug 2016 23:30:59 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 16361 invoked from network); 5 Aug 2016 23:30:58 -0000 Content-Disposition: inline In-Reply-To: <20160805232605.GB9968@haswell> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10367 Archived-At: On Fri, Aug 05, 2016 at 04:26:05PM -0700, Khem Raj wrote: > On 16-08-05 18:32:14, Assaf Gordon wrote: > > Hello, > > > > I'm trying to build openssh on Ubuntu with musl-gcc, and encountered a problem during "./configure" due to required library (zlib) which causes conflicts between the system's glibc and musl-libc. > > > > There is probably a simple solution, but I couldn't find one. > > > > The system is Ubuntu 14.04 LTS, gcc 4.8.4. > > musl is 1.1.15 built from source, installed to /usr/local/musl . > > > > First, I build zlib using musl-gcc: > > > > wget http://zlib.net/zlib-1.2.8.tar.gz > > tar -xf zlib-1.2.8.tar.gz > > cd zlib-1.2.8 > > CC=musl-gcc ./configure > > make > > > > This works well (note I did not install it with 'sudo make install'). > > > > Second, I try to build openssh: > > > > git clone https://github.com/openssh/openssh-portable > > cd openssh-portable > > autoreconf -if > > CC=musl-gcc ./configure --without-stackprotect --with-zlib=/home/ubuntu/sources/zlib-1.2.8 > > I think you need to point it to a staged install of zlib, so may be run make DESTDIR="some/location" install > when building zlib That may also be true, but if so, the result of failure to do so should be failure to find the library at all, not using a glibc-ecosystem copy of library. Rich