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=-3.6 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, UNPARSEABLE_RELAY 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 51EA51F66E for ; Fri, 21 Aug 2020 20:18:20 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k9DUN-0002It-FA; Fri, 21 Aug 2020 20:18:15 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9DUM-0002Ib-3Y for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 20:18:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: 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=2dq6cFpvZek6czxeh9mS42Lv9Iu0zzCSZpuU2u+Qaqo=; b=K3M/F+3J/xCtPc6ZRkncFH5D1K dtN22xPJaG7qDKmz4lGZn26zo6hxGM3JKWohOopLjjOjZZ6iuZYh0YFUAPUjm+kSzVZe5Pjt2lnUc twOgwC0WTrtIlpX1ewrrlFvqcOT7Rb0kNm8IH/eCSTX8x458DkVE7CvZ/S3cfMQoSa5s=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding: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=2dq6cFpvZek6czxeh9mS42Lv9Iu0zzCSZpuU2u+Qaqo=; b=OWIzOKvRC6SmUWZf23IdAJMPbz 5iIOQIobnRqM6KfP/TmYua1TB61brNjf5eXJRnONmcEcDWAgaRR5s4amSgmCrtruJPZJYcblHpzWJ mLVGd0K7nAu8F5VRdpNeloeWvWpdEipNQ/1kdS2AK5Xigbhx1oiJhOwV2gv7mBGlCSPA=; Received: from uvt.stare.cz ([185.63.96.79] helo=mx.stare.cz) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k9DUJ-000bfP-HH for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 20:18:14 +0000 Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id c82a6c5b; Fri, 21 Aug 2020 22:17:59 +0200 (CEST) Date: Fri, 21 Aug 2020 22:17:58 +0200 From: Jan Stary To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Message-ID: <20200821201758.GA23884@www.stare.cz> References: <20200821081621.GA85272@www.stare.cz> <20200821151610.GA82566@www.stare.cz> <20200821152130.GA6847@www.stare.cz> <20200821174358.GA88757@www.stare.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1k9DUJ-000bfP-HH 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-devel-bounces@lists.sourceforge.net On Aug 21 18:52:18, mans@mansr.com wrote: > Jan Stary writes: > > > On Aug 21 18:08:27, mans@mansr.com wrote: > >> Jan Stary writes: > >> > >> > On Aug 21 17:16:12, hans@stare.cz wrote: > >> >> > checking for magic.h... no > >> >> > checking for zlib.h... yes > >> >> > checking for uncompress in -lz... yes > >> >> > checking for png.h... no > >> >> > checking for mad.h... no > >> >> > checking for id3tag.h... no > >> >> > checking for lame/lame.h... no > >> >> > checking for lame.h... no > >> >> > > >> >> > $ pkg_info -L lame | grep .h$ > >> >> > /usr/local/include/lame/lame.h > >> >> > > >> >> > OpenBSD installs third-party packages into /usr/local/, > >> >> > but the configure script does not look there; it porbably > >> >> > only searches in /usr, because that's where linux distributions > >> >> > install their packages. (I'm not saying it should > >> >> > -- I will test the same with -I added to the CPPFLAGS, > >> >> > as the OpenBSD port of SoX does.) > >> >> > >> >> Running ./configure with CPPFLAGS and LDFLAGS, > >> >> so that the headers and libraries are found, > >> >> as per ./configure --help: > >> >> > >> >> LDFLAGS linker flags, e.g. -L > >> >> if you have libraries in a nonstandard directory > >> >> > >> >> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I > >> >> if you have headers in a nonstandard directory > >> >> > >> >> I am looking at png as an example. > >> >> > >> >> With plain ./configure , png.h (which is /usr/local/include/png.h) > >> >> is not found, as described above. > >> >> > >> >> checking for png.h... no > >> >> > >> >> With ./configure CPPFLAGS='-I/usr/local/include' the png.h header is found, > >> >> but the library is not, unsurprisingly. But: > >> >> > >> >> $ ./configure CPPFLAGS='-I/usr/local/include' > >> >> [...] > >> >> checking for png.h... yes > >> >> checking for png_set_rows in -l101... no > >> >> > >> >> I have no idea how the -l101 got there. > > > >> Fixed. OK, continuing with the test. Specifying CPPFLAGS and LDFLAGS makes the external libraries detected as follows: $ env AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.16 autoreconf -i $ ./configure --prefix=$HOME \ CC=cc CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib [...] checking for zlib.h... yes checking for uncompress in -lz... yes checking for png.h... yes checking for png_set_rows in -lpng... yes checking for mad.h... yes checking for mad_stream_buffer in -lmad... yes checking for id3tag.h... yes checking for id3_file_open in -lid3tag... yes checking for lame/lame.h... yes checking for lame_init in -lmp3lame... yes checking for twolame.h... yes checking for twolame_init in -ltwolame... yes checking for gsm/gsm.h... no checking for gsm.h... yes checking for gsm_create in -lgsm... yes checking for lpc10.h... no checking for OGGVORBIS... yes checking for OPUS... yes checking for FLAC... yes checking for opencore-amrwb/dec_if.h... no checking for vo-amrwbenc/enc_if.h... no checking for opencore-amrnb/interf_dec.h... no checking for wavpack/wavpack.h... yes checking for WavpackGetSampleRate in -lwavpack... yes checking for sndio.h... yes checking for sio_open in -lsndio... yes checking for CoreAudio/CoreAudio.h... no checking for alsa/asoundlib.h... no checking for ao/ao.h... yes checking for ao_play in -lao... yes checking for pulse/simple.h... no checking for mmsystem.h... no checking for sndfile.h... yes checking for sf_open_virtual in -lsndfile... yes [...] Optional libraries: id3tag yes lame yes libgsm yes libltdl yes libsndfile yes mad yes magic no opencore-amrnb no opencore-amrwb no png yes twolame yes vo-amrwbenc no Audio devices: alsa no ao yes coreaudio no oss no pulseaudio no sndio yes sunaudio no waveaudio no Optional formats: amrnb no amrwb no flac yes gsm yes lpc10 yes mp3 yes oggvorbis yes opus yes sndfile yes wavpack yes However, the build eventually fails with a linking error: /bin/sh ../libtool --tag=CC --mode=link cc -g -O2 -fstack-protector-strong -Wall -Wmissing-prototypes -Wstrict-prototypes -avoid-version -module -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-prototypes -Wstrict-prototypes -fstack-protector-strong -Wl,--as-needed -o .libs/sox sox.o -L/usr/local/lib -L./.libs -lsox -lpng -lltdl -lao -lgsm -lid3tag -lz -lmad -lmp3lame -ltwolame -lopusfile -lopus -lsndio -lvorbisfile -lwavpack -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. Jan _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel