Re: Unable to build audio/sox: undefined reference to 'open_memstream'

From: John Baldwin <jhb_at_freebsd.org>
Date: Tue, 19 Feb 2013 13:10:03 -0500
On Saturday, February 16, 2013 3:20:34 am Ian FREISLICH wrote:
> Hi
> 
> I get this error building building sox on amd64, but not i386.  CC
> is gcc on both systems.  I can't figure out what the configure
> options difference is between the two hosts that has it fail on the
> amd64 system.  All the dependencies have the same options configured.
> 
> /bin/sh ../libtool --silent --tag=CC   --silent --mode=link cc -Wconversion  
-I/usr/local/include  -O2 -pipe -march=nocona -fno-strict-aliasing -
D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic 
-fopenmp -version-info 1:0:0  -lltdl -L/usr/local/lib -pthread -o libsox.la -
rpath /usr/local/lib libsox_la-adpcms.lo libsox_la-aiff.lo  libsox_la-cvsd.lo 
libsox_la-g711.lo libsox_la-g721.lo  libsox_la-g723_24.lo libsox_la-g723_40.lo 
libsox_la-g72x.lo  libsox_la-vox.lo libsox_la-raw.lo libsox_la-formats.lo  
libsox_la-formats_i.lo libsox_la-skelform.lo  libsox_la-xmalloc.lo libsox_la-
getopt.lo libsox_la-getopt1.lo  libsox_la-util.lo libsox_la-libsox.lo 
libsox_la-libsox_i.lo  libsox_la-sox-fmt.lo libsox_la-bend.lo libsox_la-
biquad.lo  libsox_la-biquads.lo libsox_la-chorus.lo libsox_la-compand.lo  
libsox_la-crop.lo libsox_la-compandt.lo libsox_la-contrast.lo  libsox_la-
dcshift.lo libsox_la-delay.lo  libsox_la-dft_filter.lo libsox_la-dither.lo  
libsox_la-divid
>  e.lo libsox_la-earwax.lo libsox_la-echo.lo  libsox_la-echos.lo libsox_la-
effects.lo libsox_la-effects_i.lo  libsox_la-effects_i_dsp.lo libsox_la-
fade.lo  libsox_la-fft4g.lo libsox_la-filter.lo libsox_la-fir.lo  libsox_la-
firfit.lo libsox_la-flanger.lo libsox_la-gain.lo  libsox_la-input.lo 
libsox_la-ladspa.lo libsox_la-loudness.lo  libsox_la-mcompand.lo libsox_la-
mixer.lo  libsox_la-noiseprof.lo libsox_la-noisered.lo  libsox_la-output.lo 
libsox_la-overdrive.lo libsox_la-pad.lo  libsox_la-pan.lo libsox_la-phaser.lo 
libsox_la-rate.lo  libsox_la-remix.lo libsox_la-repeat.lo libsox_la-reverb.lo  
libsox_la-reverse.lo libsox_la-silence.lo libsox_la-sinc.lo  libsox_la-
skeleff.lo libsox_la-speed.lo libsox_la-speexdsp.lo  libsox_la-splice.lo 
libsox_la-stat.lo libsox_la-stats.lo  libsox_la-stretch.lo libsox_la-swap.lo 
libsox_la-synth.lo  libsox_la-tempo.lo libsox_la-tremolo.lo libsox_la-trim.lo  
libsox_la-vad.lo libsox_la-vol.lo libsox_la-spectrogram.lo   libsox_la-raw-
fmt.lo libsox_la
>  -s1-fmt.lo  libsox_la-s2-fmt.lo libsox_la-s3-fmt.lo libsox_la-s4-fmt.lo  
libsox_la-u1-fmt.lo libsox_la-u2-fmt.lo libsox_la-u3-fmt.lo  libsox_la-u4-
fmt.lo libsox_la-al-fmt.lo libsox_la-la-fmt.lo  libsox_la-ul-fmt.lo libsox_la-
lu-fmt.lo libsox_la-8svx.lo  libsox_la-aiff-fmt.lo libsox_la-aifc-fmt.lo 
libsox_la-au.lo  libsox_la-avr.lo libsox_la-cdr.lo libsox_la-cvsd-fmt.lo  
libsox_la-dvms-fmt.lo libsox_la-dat.lo libsox_la-hcom.lo  libsox_la-htk.lo 
libsox_la-maud.lo libsox_la-prc.lo  libsox_la-sf.lo libsox_la-smp.lo 
libsox_la-sounder.lo  libsox_la-soundtool.lo libsox_la-sphere.lo libsox_la-
tx16w.lo  libsox_la-voc.lo libsox_la-vox-fmt.lo libsox_la-ima-fmt.lo  
libsox_la-adpcm.lo libsox_la-ima_rw.lo libsox_la-wav.lo  libsox_la-wve.lo 
libsox_la-xa.lo libsox_la-nulfile.lo  libsox_la-f4-fmt.lo libsox_la-f8-fmt.lo 
libsox_la-gsrt.lo  libsox_la-alsa.lo    libsox_la-ao.lo  libsox_la-ffmpeg.lo  
libsox_la-flac.lo libsox_la-gsm.lo libsox_la-lpc10.lo  libsox_la-mp3.lo 
libsox_la-oss.lo       lib
>  sox_la-vorbis.lo  libsox_la-sndfile.lo  libsox_la-caf.lo  libsox_la-mat4.lo  
libsox_la-mat5.lo  libsox_la-paf.lo  libsox_la-fap.lo  libsox_la-w64.lo  
libsox_la-xi.lo  libsox_la-pvf.lo  libsox_la-sd2.lo -lpng -lz -lmagic -lgomp  
-lgsm   ../lpc10/liblpc10.la  -lasound    -lao  -lavformat -lavcodec -
L/usr/local/lib -lavutil  -lFLAC  -lvorbisenc -lvorbisfile -lvorbis  -logg -
lgsm   -lmad -lid3tag -lz -lmp3lame         -lvorbisenc -lvorbisfile -lvorbis  
-logg   -L/usr/local/lib -lsndfile -lm
> /bin/sh ../libtool --silent --tag=CC  --silent  --mode=link cc -Wconversion 
-O2 -pipe -march=nocona -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -Wall -W -
Wmissing-prototypes -Wstrict-prototypes -pedantic -fopenmp -avoid-version -
module  -L/usr/local/lib -pthread -o sox sox.o  libsox.la                         
-lm
> ./.libs/libsox.so: undefined reference to `open_memstream'

I'm guessing it thinks that we have open_memstream() because someone added 
fmemopen() recently.  I have an implementation of open_memstream() that I will 
commit soon.

-- 
John Baldwin
Received on Tue Feb 19 2013 - 18:02:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC