From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9773F1F66E for ; Fri, 21 Aug 2020 21:43:46 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k9Ep3-0006wT-K8; Fri, 21 Aug 2020 21:43:41 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Ep2-0006wK-2l for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 21:43:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iDnxqXM2guDinPdtyu4dOl8y+YJOgBKNsmRQYVQGKcg=; b=Lk3mru6cVrbxfdhtE900m7uZJc ednTVyGbIJvP6HkAujn3S2D9MzJKrVSmJGiGM39qAS586ng+8rdi2k83qlo+09tN0n/tq7x9TrAP9 pHAFUc5MbSbOPzj5llhPc2MbY0MCGNlxf5fQSyi8YORBnZnPWx5Yn770aK63CpBPkCkY=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iDnxqXM2guDinPdtyu4dOl8y+YJOgBKNsmRQYVQGKcg=; b=hueO7ZhDVcrD4WNjc2yvV2pypS 30koGGANI1hae/a2tAkNRokdfTB5e6gQCkRhM6N2XnnQICFi9/DUEoNRbINMdBC3QESlA3KJMdl+v tYkZweLtcA6e37WkL1Ean4ptGqAZKEFOhLaljGoiWynTDyWJ7bJ80v89tfZb5Z4YRYUc=; Received: from [81.2.72.234] (helo=unicorn.mansr.com) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k9Eoy-003TSv-7x for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 21:43:40 +0000 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id C6C3E15360; Fri, 21 Aug 2020 22:43:12 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id 85EBF21A6F2; Fri, 21 Aug 2020 22:43:12 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Jan Stary References: <20200821081621.GA85272@www.stare.cz> <20200821151610.GA82566@www.stare.cz> <20200821152130.GA6847@www.stare.cz> <20200821174358.GA88757@www.stare.cz> <20200821201758.GA23884@www.stare.cz> <20200821204550.GA67586@www.stare.cz> Date: Fri, 21 Aug 2020 22:43:12 +0100 In-Reply-To: <20200821204550.GA67586@www.stare.cz> (Jan Stary's message of "Fri, 21 Aug 2020 22:45:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1k9Eoy-003TSv-7x Subject: Re: Build system cleanup X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Cc: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-devel-bounces@lists.sourceforge.net Jan Stary writes: >> However, the build eventually fails with a linking error: >> = >> /bin/sh ../libtool --tag=3DCC --mode=3Dlink cc -g -O2 -fstack-protector= -strong -Wall -Wmissing-prototypes -Wstrict-prototypes -avoid-version -mod= ule -L/usr/local/lib -fstack-protector-strong -Wl,--as-needed -o sox sox.o = libsox.la -lm >> libtool: link: cc -g -O2 -fstack-protector-strong -Wall -Wmissing-protot= ypes -Wstrict-prototypes -fstack-protector-strong -Wl,--as-needed -o .libs/= sox sox.o -L/usr/local/lib -L./.libs -lsox -lpng -lltdl -lao -lgsm -lid3ta= g -lz -lmad -lmp3lame -ltwolame -lopusfile -lopus -lsndio -lvorbisfile -lwa= vpack -lcrypto -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -lm -Wl,-rpath,/= home/hans/lib -Wl,-rpath,/usr/local/lib >> ld: error: undefined symbol: lsx_malloc >> [...] >> = >> Indeed, none of the input files defines lsx_malloc; >> it is defined in libsox.so >> = >> $ nm .libs/libsox.so.3.0 | grep lsx_malloc >> 00042a30 T lsx_malloc >> = >> but that is not one of the inputs. Adding .libs/libsox.so.3.0 >> as an input to the above line make it link as expected. > > Hm. but the "-L./.libs -lsox" should take care of that. > Is it because of the extra -L/usr/local/lib? When building > without any extra LDFLAGS, that line is > > cc -g -O2 -fstack-protector-strong -Wall -Wmissing-prototypes -Wstrict-pr= ototypes -fstack-protector-strong -Wl,--as-needed -o .libs/sox sox.o -L ./= .libs -lsox > -L/usr/local/lib -lFLAC -lopusfile -lopus -lsndio -lvorbisenc -lvorbisfil= e -lvor > bis -logg -lm -Wl,-rpath,/home/hans/lib -Wl,-rpath,/usr/local/lib That's seems to be parts of several commands. Did the mouse slip when you copied it? > and it links fine. > > Is it because of the _order_ of the -L options? For each -l option, the directories specified with -L options preceding it are searched in order until a match is found. Unless there are conflicting libraries in different locations, the order doesn't matter. > Note that with LDFLAGS=3D/usr/local/lib, the order is > > -o .libs/sox sox.o -L/usr/local/lib -L./.libs -lsox [etc] > > but without LDFLAGS it's > > -o .libs/sox sox.o -L ./.libs -lsox -L/usr/local/lib -lFLAC [etc] How did that -L/usr/local/lib get there? Please send me your config.log so I can see what's going on. It all works fine on my VM with this environment and no configure options: AUTOCONF_VERSION=3D2.69 AUTOMAKE_VERSION=3D1.16 CC=3Dcc C_INCLUDE_PATH=3D/usr/local/include LIBRARY_PATH=3D/usr/local/lib -- = M=E5ns Rullg=E5rd _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel