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 715391F66E for ; Fri, 21 Aug 2020 13:33:03 +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 1k97A9-0001t5-1q; Fri, 21 Aug 2020 13:32:57 +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 1k97A7-0001sv-Qy for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 13:32:55 +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=YL1/p28uMH6DTPRyjPvC3D1W5pYWvnMpSJNpvAN9h+g=; b=csrinTXwOg0uf/+XHuVF9mho6e LN+j1YKRV1wpJ0Irt9XX2rmlGhKBdydvqNIT7MkMJTqaNh7ERQBppX5JxgwltKYVJQttpd+2Vzt4k oKCAkUrPQ0fC5dzunofT+CdKXa/NB8a5jpwojGyyzQIirxlzOePWwm1ydEEv55C+nfcc=; 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=YL1/p28uMH6DTPRyjPvC3D1W5pYWvnMpSJNpvAN9h+g=; b=a9KI8auVC0pIA9tsRiq6Aha5lh fYMpnI+METh/W+fg29d6NLbNatur5Kf8RjkrDEpBLFHxdRKQLZ4IsoM74PKJSwydNp3YHTPKBKhfI Ia0V65jpBZFDZPys3IveXgl6GtkJxX4da6J7E7e95veNjWQCuHFGRj88yQ80Y40FRuic=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k97A4-000KXz-1n for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 13:32:55 +0000 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id E8B5415360; Fri, 21 Aug 2020 14:32:29 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id BEF6821A6F2; Fri, 21 Aug 2020 14:32:29 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Jan Stary References: <20200821081621.GA85272@www.stare.cz> <20200821084927.GA82784@www.stare.cz> <20200821124953.GC81576@www.stare.cz> Date: Fri, 21 Aug 2020 14:32:29 +0100 In-Reply-To: <20200821124953.GC81576@www.stare.cz> (Jan Stary's message of "Fri, 21 Aug 2020 14:49:53 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1k97A4-000KXz-1n 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: > On Aug 21 11:33:08, mans@mansr.com wrote: >> Jan Stary writes: >> = >> >> Testing on OpenBSD 6.7-current/amd64. >> >> It eventually fails with lpc10.h not being found. >> >> Full log below, comments inline. >> > >> > Trying agsin with ./configure --prefix=3D$HOME --disable-lpc10 >> > to make it finosh without the lpc10 fail. Mysteriously, >> > it fails with standard C funcrtions not bewing found >> = >> I installed OpenBSD in a VM and noticed the same thing. It seems to >> have something to do with linking shared libraries. Is OpenBSD doing >> something bizarre there? > > Full log attached; these is the failing line > (can we please make make V=3D1 the default, > so that the actual commands can be seen?) No. That makes warnings almost impossible to notice. It's easy enough to add V=3D1 (it's THREE characters) on those rare occasions where the command is interesting. You can set it in your own environment if you want. > libtool: link: gcc -shared -fPIC -DPIC -o .libs/libsox.so.3.0 .libs/libs= ox_la-adpcms.o .libs/libsox_la-aiff.o .libs/libsox_la-cvsd.o .libs/libsox_l= a-g711.o .libs/libsox_la-g721.o .libs/libsox_la-g723_24.o .libs/libsox_la-g= 723_40.o .libs/libsox_la-g72x.o .libs/libsox_la-vox.o .libs/libsox_la-raw.o= .libs/libsox_la-formats.o .libs/libsox_la-formats_i.o .libs/libsox_la-skel= form.o .libs/libsox_la-xmalloc.o .libs/libsox_la-getopt.o .libs/libsox_la-u= til.o .libs/libsox_la-libsox.o .libs/libsox_la-libsox_i.o .libs/libsox_la-s= ox-fmt.o .libs/libsox_la-bend.o .libs/libsox_la-biquad.o .libs/libsox_la-bi= quads.o .libs/libsox_la-chorus.o .libs/libsox_la-compand.o .libs/libsox_la-= compandt.o .libs/libsox_la-contrast.o .libs/libsox_la-dcshift.o .libs/libso= x_la-delay.o .libs/libsox_la-dft_filter.o .libs/libsox_la-dither.o .libs/li= bsox_la-divide.o .libs/libsox_la-downsample.o .libs/libsox_la-earwax.o .lib= s/libsox_la-echo.o .libs/libsox_la-echos.o .libs/libsox_la-effects.o .libs/= libsox_la-effects_i.o .libs/libsox_la-effects_i_dsp.o .libs/libsox_la-fade.= o .libs/libsox_la-fft4g.o .libs/libsox_la-fir.o .libs/libsox_la-firfit.o .l= ibs/libsox_la-flanger.o .libs/libsox_la-gain.o .libs/libsox_la-hilbert.o .l= ibs/libsox_la-input.o .libs/libsox_la-ladspa.o .libs/libsox_la-loudness.o .= libs/libsox_la-mcompand.o .libs/libsox_la-noiseprof.o .libs/libsox_la-noise= red.o .libs/libsox_la-output.o .libs/libsox_la-overdrive.o .libs/libsox_la-= pad.o .libs/libsox_la-phaser.o .libs/libsox_la-rate.o .libs/libsox_la-remix= .o .libs/libsox_la-repeat.o .libs/libsox_la-reverb.o .libs/libsox_la-revers= e.o .libs/libsox_la-silence.o .libs/libsox_la-sinc.o .libs/libsox_la-skelef= f.o .libs/libsox_la-speed.o .libs/libsox_la-splice.o .libs/libsox_la-stat.o= .libs/libsox_la-stats.o .libs/libsox_la-stretch.o .libs/libsox_la-swap.o .= libs/libsox_la-synth.o .libs/libsox_la-tempo.o .libs/libsox_la-tremolo.o .l= ibs/libsox_la-trim.o .libs/libsox_la-upsample.o .libs/libsox_la-vad.o .libs= /libsox_la-vol.o .libs/libsox_la-raw-fmt.o .libs/libsox_la-s1-fmt.o .libs/l= ibsox_la-s2-fmt.o .libs/libsox_la-s3-fmt.o .libs/libsox_la-s4-fmt.o .libs/l= ibsox_la-u1-fmt.o .libs/libsox_la-u2-fmt.o .libs/libsox_la-u3-fmt.o .libs/l= ibsox_la-u4-fmt.o .libs/libsox_la-al-fmt.o .libs/libsox_la-la-fmt.o .libs/l= ibsox_la-ul-fmt.o .libs/libsox_la-lu-fmt.o .libs/libsox_la-8svx.o .libs/lib= sox_la-aiff-fmt.o .libs/libsox_la-aifc-fmt.o .libs/libsox_la-au.o .libs/lib= sox_la-avr.o .libs/libsox_la-cdr.o .libs/libsox_la-cvsd-fmt.o .libs/libsox_= la-dvms-fmt.o .libs/libsox_la-dat.o .libs/libsox_la-hcom.o .libs/libsox_la-= htk.o .libs/libsox_la-maud.o .libs/libsox_la-prc.o .libs/libsox_la-sf.o .li= bs/libsox_la-smp.o .libs/libsox_la-sounder.o .libs/libsox_la-soundtool.o .l= ibs/libsox_la-sphere.o .libs/libsox_la-tx16w.o .libs/libsox_la-voc.o .libs/= libsox_la-vox-fmt.o .libs/libsox_la-ima-fmt.o .libs/libsox_la-adpcm.o .libs= /libsox_la-ima_rw.o .libs/libsox_la-wav.o .libs/libsox_la-wve.o .libs/libso= x_la-xa.o .libs/libsox_la-nulfile.o .libs/libsox_la-f4-fmt.o .libs/libsox_l= a-f8-fmt.o .libs/libsox_la-gsrt.o .libs/libsox_la-flac.o .libs/libsox_la-op= us.o .libs/libsox_la-sndio.o .libs/libsox_la-vorbis.o -L/usr/local/lib -l= FLAC -lopusfile -lopus -lsndio -lvorbisenc -lvorbisfile -lvorbis -logg -lm = -O2 -Wl,-z -Wl,defs -Wl,--as-needed -Wl,-retain-symbols-file,.libs/libso= x.exp > ld: error: undefined symbol: free > ld: error: undefined symbol: sprintf > [etc] > > When I drop the "-Wl,-z -Wl,defs" from that line, > the "gcc -shared" command goes through as expected, > producing libsox.so Apparently OpenBSD shared libraries aren't linked with libc. That's a quirk I haven't noticed before. The simplest solution here is probably to just drop the -z defs option. It doesn't actually do anything useful if everything is as it should. What it does is prevent the link succeeding if something is accidentally left unresolved. This can be useful when working on something, but it's not really worth the effort of trying to figure out when it's safe to use. -- = M=E5ns Rullg=E5rd _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel