libsox.a

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

libsox.a

Lynn Oliver
I'm attempting to build pysox, a Python wrapper for libsox.  According to the readme, I need the following files: "Required prerequisite are the development libraries of sox at version 14.3.x, i.e. the header files and libraries to link against. Specifically you need sox.h in your include path and libsox.so and libsox.a in your link path."

I downloaded 14.3.2, but libsox.a and libsox.so are not included, so I decided the first step should be to build SoX.  However I get many warnings and finally an error related to libsox.a.

I haven't found anything posted about resolving build issues, so I wondered if anyone can point me to something that might help figure this out.  FWIW, I'm trying to build on OS X 10.7.3.

When I get back to my computer I will follow-up with the specific messages I'm getting.

Thanks,
Lynn


Sent from my iPad
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Rob Rohan-2
Checkout the "osxbuild" file in the source.  I modified that file to build a custom sox for linux, and it'll probably lead you in the right direction.

(I am just a lurker here, I don't work on the project)

On Feb 18, 2012, at 12:52 PM, Lynn Oliver wrote:

> I'm attempting to build pysox, a Python wrapper for libsox.  According to the readme, I need the following files: "Required prerequisite are the development libraries of sox at version 14.3.x, i.e. the header files and libraries to link against. Specifically you need sox.h in your include path and libsox.so and libsox.a in your link path."
>
> I downloaded 14.3.2, but libsox.a and libsox.so are not included, so I decided the first step should be to build SoX.  However I get many warnings and finally an error related to libsox.a.
>
> I haven't found anything posted about resolving build issues, so I wondered if anyone can point me to something that might help figure this out.  FWIW, I'm trying to build on OS X 10.7.3.
>
> When I get back to my computer I will follow-up with the specific messages I'm getting.
>
> Thanks,
> Lynn
>
>
> Sent from my iPad
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Sox-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/sox-users


             Rob Rohan (罗汉伦)
             http://robrohan.com
             http://twitter.com/robrohan


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Lynn Oliver
I downloaded both 14.3.1 and 14.3.2, and I don't see anything that I recognize as the "osxbuild" file.  Any hints?
 
Here is the summary output from ./configure:
BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....yes
Pkg-config location........$(libdir)/pkgconfig
Play and rec symlinks......yes
Symlinks enabled...........yes

OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......yes
sndio (OpenBSD)............no
oss........................no
pulseaudio.................no
sunaudio...................no
waveaudio (MS-Windows).....no

OPTIONAL FILE FORMATS
amrnb......................no
amrwb......................no
ffmpeg.....................no
flac.......................no
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp3........................no
 id3tag....................no
 lame......................no
 mad.......................no
oggvorbis..................no
sndfile....................no
wavpack....................no

OTHER OPTIONS
ladspa effects.............yes
magic support..............no
png support................no
GOMP support...............yes

Here is the output from "make -s && make install:
Making all in lpc10
Making all in libgsm
Making all in src
formats.c: In function 'sox_append_comment':
formats.c:216: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
formats.c:216: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
formats.c: In function 'is_seekable':
formats.c:322: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
formats.c:322: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
formats.c: In function 'sox_format_supports_encoding':
formats.c:594: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
formats.c:594: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
formats.c:595: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
formats.c:595: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
getopt.c:1218: warning: no previous prototype for 'lsx_getopt'
bend.c: In function 'start':
bend.c:122: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
bend.c:122: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
biquads.c: In function 'start':
biquads.c:195: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
biquads.c:195: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
crop.c:62:18: warning: use of C99 long long integer constant
In file included from dither.c:272:
dither.h: In function 'flow_iir_4':
dither.h:23: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.h:23: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from dither.c:277:
dither.h: In function 'flow_fir_5':
dither.h:23: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.h:23: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from dither.c:281:
dither.h: In function 'flow_fir_9':
dither.h:23: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.h:23: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from dither.c:285:
dither.h: In function 'flow_fir_15':
dither.h:23: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.h:23: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from dither.c:289:
dither.h: In function 'flow_fir_16':
dither.h:23: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.h:23: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from dither.c:293:
dither.h: In function 'flow_fir_20':
dither.h:23: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.h:23: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
dither.c: In function 'start':
dither.c:373: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.c:373: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
dither.c:380: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.c:380: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
dither.c:383: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
dither.c:383: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'lsx_spline3':
effects_i_dsp.c:72: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:72: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'lsx_set_dft_length':
effects_i_dsp.c:95: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:95: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'init_fft_cache':
effects_i_dsp.c:109: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:109: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:110: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:110: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:111: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:111: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'clear_fft_cache':
effects_i_dsp.c:118: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:118: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'update_fft_cache':
effects_i_dsp.c:134: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:134: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:135: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:135: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'lsx_make_lpf':
effects_i_dsp.c:261: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:261: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c: In function 'safe_log':
effects_i_dsp.c:314: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
effects_i_dsp.c:314: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
ladspa.c: In function 'sox_ladspa_getopts':
ladspa.c:127: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
ladspa.c:127: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from mcompand.c:50:
mcompand_xover.h: In function 'square_quadratic':
mcompand_xover.h:31: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
mcompand_xover.h:31: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
mcompand_xover.h: In function 'crossover_flow':
mcompand_xover.h:75: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
mcompand_xover.h:75: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
mcompand_xover.h:86: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
mcompand_xover.h:86: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
mcompand_xover.h:96: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
mcompand_xover.h:96: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
noiseprof.c: In function 'sox_noiseprof_flow':
noiseprof.c:138: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
noiseprof.c:138: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
noisered.c: In function 'reduce_noise':
noisered.c:152: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
noisered.c:152: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
noisered.c:207: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
noisered.c:207: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
noisered.c: In function 'process_window':
noisered.c:239: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
noisered.c:239: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
noisered.c: In function 'sox_noisered_flow':
noisered.c:266: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
noisered.c:266: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c: In function 'prepare_coefs':
rate.c:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c: In function 'cubic_spline':
rate.c:116: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:116: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c: In function 'half_band_filter_init':
rate.c:215: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:215: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:51,
                 from rate.c:223:
rate_half_fir.h: In function 'half_sample_25':
rate_half_fir.h:32: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_half_fir.h:32: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:56,
                 from rate.c:223:
rate_half_fir.h: In function 'half_sample_low':
rate_half_fir.h:32: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_half_fir.h:32: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:62,
                 from rate.c:223:
rate_poly_fir0.h: In function 'd100_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:68,
                 from rate.c:223:
rate_poly_fir.h: In function 'd100_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:75,
                 from rate.c:223:
rate_poly_fir.h: In function 'd100_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:82,
                 from rate.c:223:
rate_poly_fir.h: In function 'd100_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:89,
                 from rate.c:223:
rate_poly_fir0.h: In function 'd120_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:95,
                 from rate.c:223:
rate_poly_fir.h: In function 'd120_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:102,
                 from rate.c:223:
rate_poly_fir.h: In function 'd120_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:109,
                 from rate.c:223:
rate_poly_fir.h: In function 'd120_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:116,
                 from rate.c:223:
rate_poly_fir0.h: In function 'd150_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:122,
                 from rate.c:223:
rate_poly_fir.h: In function 'd150_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:129,
                 from rate.c:223:
rate_poly_fir.h: In function 'd150_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:136,
                 from rate.c:223:
rate_poly_fir.h: In function 'd150_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:143,
                 from rate.c:223:
rate_poly_fir0.h: In function 'U100_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:149,
                 from rate.c:223:
rate_poly_fir.h: In function 'U100_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:156,
                 from rate.c:223:
rate_poly_fir.h: In function 'U100_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:163,
                 from rate.c:223:
rate_poly_fir.h: In function 'U100_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:170,
                 from rate.c:223:
rate_poly_fir0.h: In function 'u100_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:176,
                 from rate.c:223:
rate_poly_fir.h: In function 'u100_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:183,
                 from rate.c:223:
rate_poly_fir.h: In function 'u100_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:190,
                 from rate.c:223:
rate_poly_fir.h: In function 'u100_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:197,
                 from rate.c:223:
rate_poly_fir0.h: In function 'u120_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:203,
                 from rate.c:223:
rate_poly_fir.h: In function 'u120_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:210,
                 from rate.c:223:
rate_poly_fir.h: In function 'u120_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:217,
                 from rate.c:223:
rate_poly_fir.h: In function 'u120_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:224,
                 from rate.c:223:
rate_poly_fir0.h: In function 'u150_0':
rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:230,
                 from rate.c:223:
rate_poly_fir.h: In function 'u150_1':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:237,
                 from rate.c:223:
rate_poly_fir.h: In function 'u150_2':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
In file included from rate_filters.h:244,
                 from rate.c:223:
rate_poly_fir.h: In function 'u150_3':
rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c: In function 'rate_init':
rate.c:245: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:245: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c:271: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:271: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c:273: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:273: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c:302: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:302: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
rate.c:325: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
rate.c:325: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
stretch.c: In function 'start':
stretch.c:152: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
stretch.c:152: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
stretch.c:153: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
stretch.c:153: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
hcom.c: In function 'makecodes':
hcom.c:290: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
hcom.c:290: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
hcom.c: In function 'compress':
hcom.c:345: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
hcom.c:345: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
prc.c: In function 'startread':
prc.c:147: warning: passing argument 1 of '__builtin_expect' with different width due to prototype
prc.c:147: warning: passing argument 2 of '__builtin_expect' with different width due to prototype
coreaudio.c: In function 'PlaybackIOProc':
coreaudio.c:51: warning: passing argument 3 of '__builtin___memcpy_chk' with different width due to prototype
coreaudio.c:51: warning: passing argument 3 of '__inline_memcpy_chk' with different width due to prototype
coreaudio.c:55: warning: passing argument 3 of '__builtin___memset_chk' with different width due to prototype
coreaudio.c:55: warning: passing argument 3 of '__inline_memset_chk' with different width due to prototype
coreaudio.c: In function 'RecIOProc':
coreaudio.c:78: warning: unused variable 'i'
coreaudio.c: In function 'setup':
coreaudio.c:133: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
coreaudio.c:135: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
coreaudio.c:140: warning: 'AudioHardwareGetPropertyInfo' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1249)
coreaudio.c:147: warning: passing argument 1 of 'malloc' with different width due to prototype
coreaudio.c:148: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
coreaudio.c:153: warning: comparison between signed and unsigned
coreaudio.c:156: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
coreaudio.c:156: warning: passing argument 3 of 'AudioDeviceGetProperty' with different width due to prototype
coreaudio.c:144: warning: unused variable 'device_count'
coreaudio.c:182: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
coreaudio.c:184: warning: passing argument 3 of 'AudioDeviceGetProperty' with different width due to prototype
coreaudio.c:256: warning: 'AudioDeviceSetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
coreaudio.c:258: warning: passing argument 4 of 'AudioDeviceSetProperty' with different width due to prototype
coreaudio.c:278: warning: 'AudioDeviceAddIOProc' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
coreaudio.c:280: warning: 'AudioDeviceAddIOProc' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
coreaudio.c: In function 'stopread':
coreaudio.c:326: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
coreaudio.c: In function 'write_samples':
coreaudio.c:358: warning: negative integer implicitly converted to unsigned type
coreaudio.c:376: warning: assignment from incompatible pointer type
coreaudio.c: In function 'stopwrite':
coreaudio.c:407: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
copying selected object files to avoid basename conflicts...
/usr/bin/ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
Undefined symbols for architecture x86_64:
  "_gomp_thread_attr", referenced from:
      _initialize_env in libgomp.a(env.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [sox] Error 1
make: *** [all-recursive] Error 1

Rob Rohan-2 wrote
Checkout the "osxbuild" file in the source.  I modified that file to build a custom sox for linux, and it'll probably lead you in the right direction.

(I am just a lurker here, I don't work on the project)
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Jan Stary
In reply to this post by Lynn Oliver
On Feb 18 12:52:03, Lynn Oliver wrote:
> I'm trying to build on OS X 10.7.3.

Saying 10.7.3 instead of "Lion" earns enough points with me
to actually try to look into this :-)

Firstly: what version of SoX is this?


On Feb 18 22:11:20, Lynn Oliver wrote:

> Here is the summary output from ./configure:
> BUILD OPTIONS
> Debugging build............no
> Distro name ...............not specified!
> Dynamic loading support....yes
> Pkg-config location........$(libdir)/pkgconfig
> Play and rec symlinks......yes
> Symlinks enabled...........yes
>
> OPTIONAL DEVICE DRIVERS
> ao (Xiph)..................no
> alsa (Linux)...............no
> coreaudio (Mac OS X).......yes
> sndio (OpenBSD)............no
> oss........................no
> pulseaudio.................no
> sunaudio...................no
> waveaudio (MS-Windows).....no
>
> OPTIONAL FILE FORMATS
> amrnb......................no
> amrwb......................no
> ffmpeg.....................no
> flac.......................no
> gsm........................yes (in-tree)
> lpc10......................yes (in-tree)
> mp3........................no
>  id3tag....................no
>  lame......................no
>  mad.......................no
> oggvorbis..................no
> sndfile....................no
> wavpack....................no
>
> OTHER OPTIONS
> ladspa effects.............yes
> magic support..............no
> png support................no
> GOMP support...............yes
  ^^^^

See below.


> Here is the output from "make -s && make install:
> Making all in lpc10
> Making all in libgsm
> Making all in src
> formats.c: In function 'sox_append_comment':
> formats.c:216: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> formats.c:216: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype

The string 'builtin_expect' does not appear anywhere in the Sox source.
If what you are building 14.3.2, then line 216 of formats.c is an assert()
call. I assume something has changed in assert() handling in MacOSX 10.7.3.

> [skipping a lot of '__builtin_expect' warnings.]

> coreaudio.c: In function 'PlaybackIOProc':
> coreaudio.c:51: warning: passing argument 3 of '__builtin___memcpy_chk' with
> different width due to prototype
> coreaudio.c:51: warning: passing argument 3 of '__inline_memcpy_chk' with
> different width due to prototype

memcpy()

> coreaudio.c:55: warning: passing argument 3 of '__builtin___memset_chk' with
> different width due to prototype
> coreaudio.c:55: warning: passing argument 3 of '__inline_memset_chk' with
> different width due to prototype

memset()


Again, I suppose these are internal changes in OSX 10.7.3. that
this version of SoX is not prepared for.

Generally: SoX has weaknesses on OSX, mainly due to its interaction
with CoreAudio (the OSX audio subsystem). I ave been strugling
on 10.5.8. Please search the SoX mailing list archive for the details.

Could you please try compiling on some previous version of OSX (10.6.?)
to see if the warnings above go away? If you happen to know the OSX
internals, is there something you know has changed in OSX w.r.t handling
internals such as assert(), memcpy(), etc?


> coreaudio.c: In function 'RecIOProc':
> coreaudio.c:78: warning: unused variable 'i'
> coreaudio.c: In function 'setup':
> coreaudio.c:133: warning: 'AudioHardwareGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
> coreaudio.c:135: warning: 'AudioHardwareGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
> coreaudio.c:140: warning: 'AudioHardwareGetPropertyInfo' is deprecated
> (declared at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1249)
> coreaudio.c:147: warning: passing argument 1 of 'malloc' with different
> width due to prototype
> coreaudio.c:148: warning: 'AudioHardwareGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
> coreaudio.c:153: warning: comparison between signed and unsigned
> coreaudio.c:156: warning: 'AudioDeviceGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
> coreaudio.c:156: warning: passing argument 3 of 'AudioDeviceGetProperty'
> with different width due to prototype
> coreaudio.c:144: warning: unused variable 'device_count'
> coreaudio.c:182: warning: 'AudioDeviceGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
> coreaudio.c:184: warning: passing argument 3 of 'AudioDeviceGetProperty'
> with different width due to prototype
> coreaudio.c:256: warning: 'AudioDeviceSetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
> coreaudio.c:258: warning: passing argument 4 of 'AudioDeviceSetProperty'
> with different width due to prototype
> coreaudio.c:278: warning: 'AudioDeviceAddIOProc' is deprecated (declared at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
> coreaudio.c:280: warning: 'AudioDeviceAddIOProc' is deprecated (declared at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
> coreaudio.c: In function 'stopread':
> coreaudio.c:326: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
> coreaudio.c: In function 'write_samples':
> coreaudio.c:358: warning: negative integer implicitly converted to unsigned
> type
> coreaudio.c:376: warning: assignment from incompatible pointer type
> coreaudio.c: In function 'stopwrite':
> coreaudio.c:407: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
> copying selected object files to avoid basename conflicts...

CoreAudio changes probably, not expected by SoX.

> /usr/bin/ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
> ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
> Undefined symbols for architecture x86_64:
>   "_gomp_thread_attr", referenced from:
     ^^^^^^^^^^^^^^^^^
>       _initialize_env in libgomp.a(env.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> make[1]: *** [sox] Error 1
> make: *** [all-recursive] Error 1

Try with './configure --disable-gomp'.
(Also, run ./configure --help and possibly (un)set other options, too.)

        Jan



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Rob Rohan-2
In reply to this post by Lynn Oliver
I found it in the source, but I cloned the git repository instead of a
download.  I can send it to you if you like

Sent from my crazy midget

On Feb 18, 2012, at 10:12 PM, Lynn Oliver <[hidden email]> wrote:

>
> I downloaded both 14.3.1 and 14.3.2, and I don't see anything that I
> recognize as the "osxbuild" file.  Any hints?
>
> Here is the summary output from ./configure:
> BUILD OPTIONS
> Debugging build............no
> Distro name ...............not specified!
> Dynamic loading support....yes
> Pkg-config location........$(libdir)/pkgconfig
> Play and rec symlinks......yes
> Symlinks enabled...........yes
>
> OPTIONAL DEVICE DRIVERS
> ao (Xiph)..................no
> alsa (Linux)...............no
> coreaudio (Mac OS X).......yes
> sndio (OpenBSD)............no
> oss........................no
> pulseaudio.................no
> sunaudio...................no
> waveaudio (MS-Windows).....no
>
> OPTIONAL FILE FORMATS
> amrnb......................no
> amrwb......................no
> ffmpeg.....................no
> flac.......................no
> gsm........................yes (in-tree)
> lpc10......................yes (in-tree)
> mp3........................no
> id3tag....................no
> lame......................no
> mad.......................no
> oggvorbis..................no
> sndfile....................no
> wavpack....................no
>
> OTHER OPTIONS
> ladspa effects.............yes
> magic support..............no
> png support................no
> GOMP support...............yes
>
> Here is the output from "make -s && make install:
> Making all in lpc10
> Making all in libgsm
> Making all in src
> formats.c: In function 'sox_append_comment':
> formats.c:216: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> formats.c:216: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> formats.c: In function 'is_seekable':
> formats.c:322: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> formats.c:322: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> formats.c: In function 'sox_format_supports_encoding':
> formats.c:594: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> formats.c:594: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> formats.c:595: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> formats.c:595: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> getopt.c:1218: warning: no previous prototype for 'lsx_getopt'
> bend.c: In function 'start':
> bend.c:122: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> bend.c:122: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> biquads.c: In function 'start':
> biquads.c:195: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> biquads.c:195: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> crop.c:62:18: warning: use of C99 long long integer constant
> In file included from dither.c:272:
> dither.h: In function 'flow_iir_4':
> dither.h:23: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.h:23: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from dither.c:277:
> dither.h: In function 'flow_fir_5':
> dither.h:23: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.h:23: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from dither.c:281:
> dither.h: In function 'flow_fir_9':
> dither.h:23: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.h:23: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from dither.c:285:
> dither.h: In function 'flow_fir_15':
> dither.h:23: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.h:23: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from dither.c:289:
> dither.h: In function 'flow_fir_16':
> dither.h:23: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.h:23: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from dither.c:293:
> dither.h: In function 'flow_fir_20':
> dither.h:23: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.h:23: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> dither.c: In function 'start':
> dither.c:373: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.c:373: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> dither.c:380: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.c:380: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> dither.c:383: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> dither.c:383: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'lsx_spline3':
> effects_i_dsp.c:72: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:72: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'lsx_set_dft_length':
> effects_i_dsp.c:95: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:95: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'init_fft_cache':
> effects_i_dsp.c:109: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:109: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:110: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:110: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:111: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:111: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'clear_fft_cache':
> effects_i_dsp.c:118: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:118: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'update_fft_cache':
> effects_i_dsp.c:134: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:134: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:135: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:135: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'lsx_make_lpf':
> effects_i_dsp.c:261: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:261: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c: In function 'safe_log':
> effects_i_dsp.c:314: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> effects_i_dsp.c:314: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> ladspa.c: In function 'sox_ladspa_getopts':
> ladspa.c:127: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> ladspa.c:127: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from mcompand.c:50:
> mcompand_xover.h: In function 'square_quadratic':
> mcompand_xover.h:31: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h:31: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h: In function 'crossover_flow':
> mcompand_xover.h:75: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h:75: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h:86: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h:86: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h:96: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> mcompand_xover.h:96: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> noiseprof.c: In function 'sox_noiseprof_flow':
> noiseprof.c:138: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> noiseprof.c:138: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> noisered.c: In function 'reduce_noise':
> noisered.c:152: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> noisered.c:152: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> noisered.c:207: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> noisered.c:207: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> noisered.c: In function 'process_window':
> noisered.c:239: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> noisered.c:239: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> noisered.c: In function 'sox_noisered_flow':
> noisered.c:266: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> noisered.c:266: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate.c: In function 'prepare_coefs':
> rate.c:57: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:57: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> rate.c: In function 'cubic_spline':
> rate.c:116: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:116: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> rate.c: In function 'half_band_filter_init':
> rate.c:215: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:215: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> In file included from rate_filters.h:51,
>                 from rate.c:223:
> rate_half_fir.h: In function 'half_sample_25':
> rate_half_fir.h:32: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_half_fir.h:32: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:56,
>                 from rate.c:223:
> rate_half_fir.h: In function 'half_sample_low':
> rate_half_fir.h:32: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_half_fir.h:32: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:62,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'd100_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:68,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd100_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:75,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd100_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:82,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd100_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:89,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'd120_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:95,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd120_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:102,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd120_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:109,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd120_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:116,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'd150_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:122,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd150_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:129,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd150_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:136,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'd150_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:143,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'U100_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:149,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'U100_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:156,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'U100_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:163,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'U100_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:170,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'u100_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:176,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u100_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:183,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u100_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:190,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u100_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:197,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'u120_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:203,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u120_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:210,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u120_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:217,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u120_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:224,
>                 from rate.c:223:
> rate_poly_fir0.h: In function 'u150_0':
> rate_poly_fir0.h:37: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:37: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir0.h:40: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:230,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u150_1':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:237,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u150_2':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> In file included from rate_filters.h:244,
>                 from rate.c:223:
> rate_poly_fir.h: In function 'u150_3':
> rate_poly_fir.h:54: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:54: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> rate_poly_fir.h:57: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> rate.c: In function 'rate_init':
> rate.c:245: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:245: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> rate.c:271: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:271: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> rate.c:273: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:273: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> rate.c:302: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:302: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> rate.c:325: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> rate.c:325: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> stretch.c: In function 'start':
> stretch.c:152: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> stretch.c:152: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> stretch.c:153: warning: passing argument 1 of '__builtin_expect' with
> different width due to prototype
> stretch.c:153: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype
> hcom.c: In function 'makecodes':
> hcom.c:290: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> hcom.c:290: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> hcom.c: In function 'compress':
> hcom.c:345: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> hcom.c:345: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> prc.c: In function 'startread':
> prc.c:147: warning: passing argument 1 of '__builtin_expect' with different
> width due to prototype
> prc.c:147: warning: passing argument 2 of '__builtin_expect' with different
> width due to prototype
> coreaudio.c: In function 'PlaybackIOProc':
> coreaudio.c:51: warning: passing argument 3 of '__builtin___memcpy_chk' with
> different width due to prototype
> coreaudio.c:51: warning: passing argument 3 of '__inline_memcpy_chk' with
> different width due to prototype
> coreaudio.c:55: warning: passing argument 3 of '__builtin___memset_chk' with
> different width due to prototype
> coreaudio.c:55: warning: passing argument 3 of '__inline_memset_chk' with
> different width due to prototype
> coreaudio.c: In function 'RecIOProc':
> coreaudio.c:78: warning: unused variable 'i'
> coreaudio.c: In function 'setup':
> coreaudio.c:133: warning: 'AudioHardwareGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
> coreaudio.c:135: warning: 'AudioHardwareGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
> coreaudio.c:140: warning: 'AudioHardwareGetPropertyInfo' is deprecated
> (declared at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1249)
> coreaudio.c:147: warning: passing argument 1 of 'malloc' with different
> width due to prototype
> coreaudio.c:148: warning: 'AudioHardwareGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
> coreaudio.c:153: warning: comparison between signed and unsigned
> coreaudio.c:156: warning: 'AudioDeviceGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
> coreaudio.c:156: warning: passing argument 3 of 'AudioDeviceGetProperty'
> with different width due to prototype
> coreaudio.c:144: warning: unused variable 'device_count'
> coreaudio.c:182: warning: 'AudioDeviceGetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
> coreaudio.c:184: warning: passing argument 3 of 'AudioDeviceGetProperty'
> with different width due to prototype
> coreaudio.c:256: warning: 'AudioDeviceSetProperty' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
> coreaudio.c:258: warning: passing argument 4 of 'AudioDeviceSetProperty'
> with different width due to prototype
> coreaudio.c:278: warning: 'AudioDeviceAddIOProc' is deprecated (declared at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
> coreaudio.c:280: warning: 'AudioDeviceAddIOProc' is deprecated (declared at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
> coreaudio.c: In function 'stopread':
> coreaudio.c:326: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
> coreaudio.c: In function 'write_samples':
> coreaudio.c:358: warning: negative integer implicitly converted to unsigned
> type
> coreaudio.c:376: warning: assignment from incompatible pointer type
> coreaudio.c: In function 'stopwrite':
> coreaudio.c:407: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared
> at
> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
> copying selected object files to avoid basename conflicts...
> /usr/bin/ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
> ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
> Undefined symbols for architecture x86_64:
>  "_gomp_thread_attr", referenced from:
>      _initialize_env in libgomp.a(env.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> make[1]: *** [sox] Error 1
> make: *** [all-recursive] Error 1
>
>
> Rob Rohan-2 wrote:
>>
>> Checkout the "osxbuild" file in the source.  I modified that file to build
>> a custom sox for linux, and it'll probably lead you in the right
>> direction.
>>
>> (I am just a lurker here, I don't work on the project)
>>
>>
>
> --
> View this message in context: http://old.nabble.com/libsox.a-tp33349567p33350724.html
> Sent from the SoX mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Sox-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Rob Rohan-2
In reply to this post by Jan Stary
Here is the text in the osxbuild file:

--- snip ---

#!/bin/sh
#
# This script will automates the steps used to producing a static osx
# package of SoX.
#
# It requires to already have several external libraries already installed
# under /usr/local.  The external libraries must be static only or else
# it will expect dylib versions to already exist on external boxes.
#
# This goes out of its way to only compile i386 binary and to use
# OS X 10.5 SDK for greater compatibilty.
#
# Various notes:
#
# The following command lines were used to generate the static external
# libraries SoX ships with.
#
# cd libtool-2.4.2
#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# cd libpng-1.5.7
#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# cd ../wavpack-4.60.1
#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# flac won't compile without following fix.  Edit src/libFLAC/ia32/nasm.h and
# add following to top of that file: %define FLAC__PUBLIC_NEEDS_UNDERSCORE
# cd ../flac-1.2.1
#./configure CXXFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# cd ../libogg-1.3.0
#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# cd ../libvorbis-1.3.2
#./configure CPPFLAGS="-I/usr/local/include" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# cd ../libsndfile-1.0.25
#./configure CXXFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
#
# cd ../libid3tag-0.15.1b
#./configure CXXFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --enable-static --disable-shared;make;sudo make install
#
# To get MP3 header files used to enable MP3 support (no libraries used):
#
# cd ../libmad-0.15.1b
#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --enable-shared --disable-static;make;sudo make install
#

[ ! -x configure ] && autoreconf -i

# Some versions of autoconf (2.63?) seem to get easily confused about
# CPP variable. If you see warning messages about header files
# rejected by preprocessor then its most likely from that.
# Force the value of CPP=cpp works around that bug.
if [ $# -ne 0 -o ! -r Makefile ]; then
  ./configure \
    --disable-shared \
    --with-libltdl \
    --enable-dl-lame --enable-dl-mad \
    --enable-dl-amrnb --enable-dl-amrwb \
    CPP=cpp\
    CPPFLAGS="-I/usr/local/include" \
    CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" \
    LDFLAGS="-L/usr/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" \
    $*
fi

make -s all txt || exit 1

dylib_need_to_ship=`otool -L src/sox | grep -v CoreAudio.framework | grep -v libz | grep -v libiconv | grep -v libSystem | grep -v libgcc_s | grep -v src/sox`

# Make sure we are only relying on OS dynamic libraries.  If not
# then app won't run unless user's box looks just like this one
# (unlikely).  We could ship some dylibs but that would require
# using rpath just right (@loader_path) and thats not easy to
# get right.
if [ ! "${dylib_need_to_ship}x" = "x" ]; then
    echo "Non-OS dylib's detected:${dylib_need_to_ship}"
    exit 1
fi

dir=sox-`grep Version: sox.pc | cut -d ' ' -f 2`
rm -rf $dir $dir-macosx.zip
mkdir -p $dir

# Judgement call.  If filename ends in .txt then user can view
# by double clicking in Finder.
for f in LICENSE.GPL README.osx; do
  cp -p $f $dir/$f.txt
done

for f in ChangeLog README; do
  cp -p $f $dir/$f
done

binaries=src/sox

# TODO: Distribute wget binary
#[ -r "../wget-1.11.4/wget" ] && binaries+=" ../wget-1.11.4/wget"
 
cp -p \
  $binaries \
  sox.txt \
  soxformat.txt \
  soxi.txt \
  libsox.txt \
  $dir

(cd $dir; ln -s sox soxi; ln -s sox play; ln -s sox rec)

#if test -r "../wget-1.11.4/wget"; then
#  cp ../wget-1.11.4/wget.ini $dir
#fi

zip --symlinks -r $dir-macosx.zip $dir
rm -rf $dir


--- snip ---



On Feb 19, 2012, at 3:24 AM, Jan Stary wrote:

> On Feb 18 12:52:03, Lynn Oliver wrote:
>> I'm trying to build on OS X 10.7.3.
>
> Saying 10.7.3 instead of "Lion" earns enough points with me
> to actually try to look into this :-)
>
> Firstly: what version of SoX is this?
>
>
> On Feb 18 22:11:20, Lynn Oliver wrote:
>> Here is the summary output from ./configure:
>> BUILD OPTIONS
>> Debugging build............no
>> Distro name ...............not specified!
>> Dynamic loading support....yes
>> Pkg-config location........$(libdir)/pkgconfig
>> Play and rec symlinks......yes
>> Symlinks enabled...........yes
>>
>> OPTIONAL DEVICE DRIVERS
>> ao (Xiph)..................no
>> alsa (Linux)...............no
>> coreaudio (Mac OS X).......yes
>> sndio (OpenBSD)............no
>> oss........................no
>> pulseaudio.................no
>> sunaudio...................no
>> waveaudio (MS-Windows).....no
>>
>> OPTIONAL FILE FORMATS
>> amrnb......................no
>> amrwb......................no
>> ffmpeg.....................no
>> flac.......................no
>> gsm........................yes (in-tree)
>> lpc10......................yes (in-tree)
>> mp3........................no
>> id3tag....................no
>> lame......................no
>> mad.......................no
>> oggvorbis..................no
>> sndfile....................no
>> wavpack....................no
>>
>> OTHER OPTIONS
>> ladspa effects.............yes
>> magic support..............no
>> png support................no
>> GOMP support...............yes
>  ^^^^
>
> See below.
>
>
>> Here is the output from "make -s && make install:
>> Making all in lpc10
>> Making all in libgsm
>> Making all in src
>> formats.c: In function 'sox_append_comment':
>> formats.c:216: warning: passing argument 1 of '__builtin_expect' with
>> different width due to prototype
>> formats.c:216: warning: passing argument 2 of '__builtin_expect' with
>> different width due to prototype
>
> The string 'builtin_expect' does not appear anywhere in the Sox source.
> If what you are building 14.3.2, then line 216 of formats.c is an assert()
> call. I assume something has changed in assert() handling in MacOSX 10.7.3.
>
>> [skipping a lot of '__builtin_expect' warnings.]
>
>> coreaudio.c: In function 'PlaybackIOProc':
>> coreaudio.c:51: warning: passing argument 3 of '__builtin___memcpy_chk' with
>> different width due to prototype
>> coreaudio.c:51: warning: passing argument 3 of '__inline_memcpy_chk' with
>> different width due to prototype
>
> memcpy()
>
>> coreaudio.c:55: warning: passing argument 3 of '__builtin___memset_chk' with
>> different width due to prototype
>> coreaudio.c:55: warning: passing argument 3 of '__inline_memset_chk' with
>> different width due to prototype
>
> memset()
>
>
> Again, I suppose these are internal changes in OSX 10.7.3. that
> this version of SoX is not prepared for.
>
> Generally: SoX has weaknesses on OSX, mainly due to its interaction
> with CoreAudio (the OSX audio subsystem). I ave been strugling
> on 10.5.8. Please search the SoX mailing list archive for the details.
>
> Could you please try compiling on some previous version of OSX (10.6.?)
> to see if the warnings above go away? If you happen to know the OSX
> internals, is there something you know has changed in OSX w.r.t handling
> internals such as assert(), memcpy(), etc?
>
>
>> coreaudio.c: In function 'RecIOProc':
>> coreaudio.c:78: warning: unused variable 'i'
>> coreaudio.c: In function 'setup':
>> coreaudio.c:133: warning: 'AudioHardwareGetProperty' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
>> coreaudio.c:135: warning: 'AudioHardwareGetProperty' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
>> coreaudio.c:140: warning: 'AudioHardwareGetPropertyInfo' is deprecated
>> (declared at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1249)
>> coreaudio.c:147: warning: passing argument 1 of 'malloc' with different
>> width due to prototype
>> coreaudio.c:148: warning: 'AudioHardwareGetProperty' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1270)
>> coreaudio.c:153: warning: comparison between signed and unsigned
>> coreaudio.c:156: warning: 'AudioDeviceGetProperty' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
>> coreaudio.c:156: warning: passing argument 3 of 'AudioDeviceGetProperty'
>> with different width due to prototype
>> coreaudio.c:144: warning: unused variable 'device_count'
>> coreaudio.c:182: warning: 'AudioDeviceGetProperty' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2640)
>> coreaudio.c:184: warning: passing argument 3 of 'AudioDeviceGetProperty'
>> with different width due to prototype
>> coreaudio.c:256: warning: 'AudioDeviceSetProperty' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2675)
>> coreaudio.c:258: warning: passing argument 4 of 'AudioDeviceSetProperty'
>> with different width due to prototype
>> coreaudio.c:278: warning: 'AudioDeviceAddIOProc' is deprecated (declared at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
>> coreaudio.c:280: warning: 'AudioDeviceAddIOProc' is deprecated (declared at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2419)
>> coreaudio.c: In function 'stopread':
>> coreaudio.c:326: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
>> coreaudio.c: In function 'write_samples':
>> coreaudio.c:358: warning: negative integer implicitly converted to unsigned
>> type
>> coreaudio.c:376: warning: assignment from incompatible pointer type
>> coreaudio.c: In function 'stopwrite':
>> coreaudio.c:407: warning: 'AudioDeviceRemoveIOProc' is deprecated (declared
>> at
>> /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2433)
>> copying selected object files to avoid basename conflicts...
>
> CoreAudio changes probably, not expected by SoX.
>
>> /usr/bin/ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
>> ranlib: file: .libs/libsox.a(libsox_la-speexdsp.o) has no symbols
>> Undefined symbols for architecture x86_64:
>>  "_gomp_thread_attr", referenced from:
>     ^^^^^^^^^^^^^^^^^
>>      _initialize_env in libgomp.a(env.o)
>> ld: symbol(s) not found for architecture x86_64
>> collect2: ld returned 1 exit status
>> make[1]: *** [sox] Error 1
>> make: *** [all-recursive] Error 1
>
> Try with './configure --disable-gomp'.
> (Also, run ./configure --help and possibly (un)set other options, too.)
>
> Jan
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Sox-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/sox-users


             Rob Rohan (罗汉伦)
             http://robrohan.com
             http://twitter.com/robrohan


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Lynn Oliver
In reply to this post by Rob Rohan-2
I cloned the git repository and found the file.  

I started generating the external libraries, and was successful with libtool-2.4.2, libpng-1.5.9, and wavpack-4.60.1, but flac-1.2.1 failed even after applying the suggested fix:

Undefined symbols for architecture i386:
  "_FLAC__cpu_have_cpuid_asm_ia32", referenced from:
      _FLAC__cpu_info in libFLAC.a(cpu.o)
  "_FLAC__cpu_info_asm_ia32", referenced from:
      _FLAC__cpu_info in libFLAC.a(cpu.o)
  "_FLAC__cpu_info_extended_amd_asm_ia32", referenced from:
      _FLAC__cpu_info in libFLAC.a(cpu.o)
  "_FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_decoder.o)
  "_FLAC__lpc_restore_signal_asm_ia32", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_decoder.o)
  "_FLAC__lpc_restore_signal_asm_ia32_mmx", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_decoder.o)
  "_precompute_partition_info_sums_32bit_asm_ia32_", referenced from:
      _find_best_partition_order_ in libFLAC.a(stream_encoder.o)
  "_FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_autocorrelation_asm_ia32", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_autocorrelation_asm_ia32_3dnow", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
  "_FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx", referenced from:
      _init_stream_internal_ in libFLAC.a(stream_encoder.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[3]: *** [flac] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Now the sox build fails with the same undefined symbols..  Since flac support is optional (?), I removed the files created (at least all I could find) when attempting to build flac, and tried to build sox again.  However I now get a slew of errors relating to flac:

  $binaries flac.c:25:22: error: FLAC/all.h: No such file or directory
flac.c:38: error: expected specifier-qualifier-list before 'FLAC__int32'
flac.c:66: error: expected ')' before 'const'
flac.c:97: error: expected ')' before 'const'
flac.c:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FLAC__frame_decode_callback'
flac.c: In function 'start_read':
flac.c:132: error: 'FLAC_API_VERSION_CURRENT' undeclared (first use in this function)
flac.c:132: error: (Each undeclared identifier is reported only once
flac.c:132: error: for each function it appears in.)
flac.c:133: error: 'priv_t' has no member named 'decoder'
flac.c:133: warning: implicit declaration of function 'FLAC__stream_decoder_new'
...
and so on.

Does this mean that flac is not optional, or that I failed to remove all traces of the failed build?


Rob Rohan-2 wrote
I found it in the source, but I cloned the git repository instead of a
download.  I can send it to you if you like
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Lynn Oliver
In reply to this post by Jan Stary
Jan Stary wrote
--snip--

Firstly: what version of SoX is this?
14.3.2

Jan Stary wrote
--snip--
> formats.c:216: warning: passing argument 2 of '__builtin_expect' with
> different width due to prototype

The string 'builtin_expect' does not appear anywhere in the Sox source.
If what you are building 14.3.2, then line 216 of formats.c is an assert()
call. I assume something has changed in assert() handling in MacOSX 10.7.3.

--snip--

Again, I suppose these are internal changes in OSX 10.7.3. that
this version of SoX is not prepared for.

Generally: SoX has weaknesses on OSX, mainly due to its interaction
with CoreAudio (the OSX audio subsystem). I ave been strugling
on 10.5.8. Please search the SoX mailing list archive for the details.

Could you please try compiling on some previous version of OSX (10.6.?)
to see if the warnings above go away? If you happen to know the OSX
internals, is there something you know has changed in OSX w.r.t handling
internals such as assert(), memcpy(), etc?
I'll have to find another drive to install the earlier version on, so it will take some time to get to this.  I should have noted earlier that I am attempting to build with version 10.7 of the SDK.

Jan Stary wrote
--snip--
Try with './configure --disable-gomp'.
(Also, run ./configure --help and possibly (un)set other options, too.)

        Jan
Thanks, I'll try that as well.

Lynn



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users


Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Jan Stary
In reply to this post by Lynn Oliver
On Feb 19 10:47:24, Lynn Oliver wrote:
> I started generating the external libraries, and was successful with
> libtool-2.4.2, libpng-1.5.9, and wavpack-4.60.1,

Ypu mean, you are installing these libraries now,
to be recognized in the SoX build later, right?

> but flac-1.2.1 failed even after applying the suggested fix:
>
> Undefined symbols for architecture i386:
>   "_FLAC__cpu_have_cpuid_asm_ia32", referenced from:
>       _FLAC__cpu_info in libFLAC.a(cpu.o)
>   "_FLAC__cpu_info_asm_ia32", referenced from:
>       _FLAC__cpu_info in libFLAC.a(cpu.o)
>   "_FLAC__cpu_info_extended_amd_asm_ia32", referenced from:
>       _FLAC__cpu_info in libFLAC.a(cpu.o)
>   "_FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_decoder.o)
>   "_FLAC__lpc_restore_signal_asm_ia32", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_decoder.o)
>   "_FLAC__lpc_restore_signal_asm_ia32_mmx", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_decoder.o)
>   "_precompute_partition_info_sums_32bit_asm_ia32_", referenced from:
>       _find_best_partition_order_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_autocorrelation_asm_ia32", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_autocorrelation_asm_ia32_3dnow", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8", referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32", referenced
> from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
>   "_FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx",
> referenced from:
>       _init_stream_internal_ in libFLAC.a(stream_encoder.o)
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> make[3]: *** [flac] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

This is an output of what? You are installing the FLAC
libraries from FLAC sources? Do you use macports or
some other packaging system for the Mac?

> Now the sox build fails with the same undefined symbols..

You want to make distclean first, then ./configure again, then make.

> Since flac > support is optional (?),

of course

> I removed the files created (at least all I could> find)
> when attempting to build flac,

How? You walked around looking for *FLAC* and manualy removed those?
Why don't you just 'make uninstall' from within the FLAC build?
(Or indeed use some packaging system?)

> and tried to build sox again.  However
> I now get a slew of errors relating to flac:
>
>   $binaries flac.c:25:22: error: FLAC/all.h: No such file or directory
> flac.c:38: error: expected specifier-qualifier-list before 'FLAC__int32'
> flac.c:66: error: expected ')' before 'const'
> flac.c:97: error: expected ')' before 'const'
> flac.c:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'FLAC__frame_decode_callback'
> flac.c: In function 'start_read':
> flac.c:132: error: 'FLAC_API_VERSION_CURRENT' undeclared (first use in this
> function)
> flac.c:132: error: (Each undeclared identifier is reported only once
> flac.c:132: error: for each function it appears in.)
> flac.c:133: error: 'priv_t' has no member named 'decoder'
> flac.c:133: warning: implicit declaration of function
> 'FLAC__stream_decoder_new'
> ...
> and so on.

Did you just run 'make' on SoX again, without distcleaning and
re-./configuring first? Because your SoX build is ./configure'd
from before, which possibly picked up FLAC - which have now
removed.

Go to the sox-14.3.2 directory, make distclean, ./configure --help,
and go through all the options, oe by one. Set all those you want,
unset all those you don't want. Check the output of ./configure
and make sure that what you wanted is there, and what you didn't
want is not there. Only then preceed to 'make' to actually build SoX.

> Does this mean that flac is not optional, or that I failed to remove all
> traces of the failed build?

How did you 'remove' it?
If you cannot be sure whether you have FLAC installed or not,
you have other problems to solve before you attempt to build SoX.

        Jan


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Lynn Oliver
Jan Stary wrote
On Feb 19 10:47:24, Lynn Oliver wrote:
> I started generating the external libraries, and was successful with
> libtool-2.4.2, libpng-1.5.9, and wavpack-4.60.1,

Ypu mean, you are installing these libraries now,
to be recognized in the SoX build later, right?
That's correct.  
Jan Stary wrote
--snip--
This is an output of what? You are installing the FLAC
libraries from FLAC sources? Do you use macports or
some other packaging system for the Mac?
Installing from the FLAC sources.  I'm not using any packaging system for the Mac for this.
Jan Stary wrote
You want to make distclean first, then ./configure again, then make.
--snip--
Why don't you just 'make uninstall' from within the FLAC build?

(Or indeed use some packaging system?)
I would use a packaging system if I was aware of one that I could use for this other than macports, which causes problems on OS X 10.7.

I wasn't aware of 'make uninstall', but now that I am, I ran it on all the optional packages.

Then I ran 'make distclean' on sox, and tried the build again.  I am using the build script from 'osxbuild' for this.  Now it complains about:
        /usr/lib/libltdl.7.dylib (compatibility version 10.0.0, current version 10.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)

That comes from this part of the script:

dylib_need_to_ship=`otool -L src/sox | grep -v CoreAudio.framework | grep -v libz | grep -v libiconv | grep -v libSystem | grep -v libgcc_s | grep -v src/sox`

# Make sure we are only relying on OS dynamic libraries.  If not
# then app won't run unless user's box looks just like this one
# (unlikely).  We could ship some dylibs but that would require
# using rpath just right (@loader_path) and thats not easy to
# get right.
if [ ! "${dylib_need_to_ship}x" = "x" ]; then
    echo "Non-OS dylib's detected:${dylib_need_to_ship}"
    exit 1
fi

I bypassed that and was able to complete the build.  Progress!  The output of the build is sox-14.4.0rc2-macosx.zip, and the executable appears to work.

Going back to the original reason for building sox--which is to build pysox, which requires the files sox.h, libsox.so, and libsox.a.  I'm still missing the files libsox.so and libsox.a.  I checked 14.3.0, .1, .2, and the dev tree with no luck.

I did find a post concerning an error loading libsox.so.1 (http://old.nabble.com/SOX-14.2.0-1-Build-from-source-error-%22..error..shared-libraries:-libsox.so.1..%22-td22392740.html) so I also looked at 14.2.0, also with no luck.

There is a file named libsox.la, which contains the lines:

# The name of the static archive.
old_library='libsox.a'

I thought perhaps that building with the options in osxbuild, which include --disable-shared, might preclude any .so files being created, so I tried again without that but still no luck.  

Thanks for taking the time to look at this.  I guess I should look at pysox some more and see what I can find.
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Jan Stary
On Feb 19 14:20:39, Lynn Oliver wrote:

> >> I started generating the external libraries, and was successful with
> >> libtool-2.4.2, libpng-1.5.9, and wavpack-4.60.1,
> >
> > Ypu mean, you are installing these libraries now,
> > to be recognized in the SoX build later, right?
> >
> That's correct.  
>
> Jan Stary wrote:
> >
> > --snip--
> > This is an output of what? You are installing the FLAC
> > libraries from FLAC sources? Do you use macports or
> > some other packaging system for the Mac?
> >
> Installing from the FLAC sources.  I'm not using any packaging system for
> the Mac for this.
>
> Jan Stary wrote:
> >
> > You want to make distclean first, then ./configure again, then make.
> > --snip--
> > Why don't you just 'make uninstall' from within the FLAC build?
> >
> > (Or indeed use some packaging system?)
> >
> I would use a packaging system if I was aware of one that I could use for
> this other than macports, which causes problems on OS X 10.7.

You might want to try http://www.finkproject.org/
(which I briefly used on 10.5.8 before switching to macports).

> I wasn't aware of 'make uninstall', but now that I am, I ran it on all the
> optional packages.

OK, now go back and install those that you actually want :-)

> Then I ran 'make distclean' on sox, and tried the build again.  I am using
> the build script from 'osxbuild' for this.

I think you will be better off going throught the build yourself.
Just do a 'make distclean', and go through what ./configure --help
has to offer, and craft the SoX build that you actually want.

> Now it complains about:
> /usr/lib/libltdl.7.dylib (compatibility version 10.0.0, current version
> 10.2.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 159.0.0)
>
> That comes from this part of the script:
>
> dylib_need_to_ship=`otool -L src/sox | grep -v CoreAudio.framework | grep -v
> libz | grep -v libiconv | grep -v libSystem | grep -v libgcc_s | grep -v
> src/sox`
>
> # Make sure we are only relying on OS dynamic libraries.  If not
> # then app won't run unless user's box looks just like this one
> # (unlikely).  We could ship some dylibs but that would require
> # using rpath just right (@loader_path) and thats not easy to
> # get right.
> if [ ! "${dylib_need_to_ship}x" = "x" ]; then
>     echo "Non-OS dylib's detected:${dylib_need_to_ship}"
>     exit 1
> fi
>
> I bypassed that and was able to complete the build.  Progress!  The output
> of the build is sox-14.4.0rc2-macosx.zip, and the executable appears to
> work.
>
> Going back to the original reason for building sox--which is to build pysox,
> which requires the files sox.h, libsox.so, and libsox.a.  I'm still missing
> the files libsox.so and libsox.a.

If I remember right, the osxbuild script was used to build
a statically-linked SoX; no dynamic libraries are created.

> I checked 14.3.0, .1, .2, and the dev
> tree with no luck.
> I did find a post concerning an error loading libsox.so.1
> (http://old.nabble.com/SOX-14.2.0-1-Build-from-source-error-%22..error..shared-libraries:-libsox.so.1..%22-td22392740.html)
> so I also looked at 14.2.0, also with no luck.

What does "looked at" mean? You looked at the source to SoX 14.X.Y?
If so, you are missing some very fundamentals: libsox.so and libsox.a
are libraries that are _built_ from the source. They are not part
pf the source distribution.

If you go through the ./configure && make process yourself,
I believe you will arrive at a SoX installation that contains
the libraries, and the sox binary dynamically linked to them.
(That's exactly what I have on 10.5.8.)


> There is a file named libsox.la, which contains the lines:
>
> I thought perhaps that building with the options in osxbuild, which include
> --disable-shared, might preclude any .so files being created,

exactly

> so I tried again without that but still no luck.  

You tried what, really? Do this:

script
cd sox-14.3.2
make distclean
./configure --prefix=$HOME
make
make install
exit


Show us the resulting typescript please.
Then we will know what you are actually doing.

> Thanks for taking the time to look at this.
> I guess I should look at pysox
> some more and see what I can find.

pysox will need SoX's libraries, no way around it.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Lynn Oliver
Jan Stary wrote
script
cd sox-14.3.2
make distclean
./configure --prefix=$HOME
make
make install
exit
I ran these commands, and it did create libsox.a.  Still no libsox.so that I can find.

I've uploaded a file containing all the results:

sox+make.rtf
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Jan Stary
On Feb 19 23:21:39, Lynn Oliver wrote:

>
>
> Jan Stary wrote:
> >
> >
> > script
> > cd sox-14.3.2
> > make distclean
> > ./configure --prefix=$HOME
> > make
> > make install
> > exit
> >
>
> I ran these commands, and it did create libsox.a.  Still no libsox.so that I
> can find.
>
> I've uploaded a file containing all the results:
> http://old.nabble.com/file/p33355064/sox%2Bmake.rtf sox+make.rtf

What I see there is pretty much the same what a 14.3.2 build
looks like on my 10.5.8. For me, it *does* create a dynamic
library - but the output of 'make install' doesn't indicate that:

test -z "/Users/lynn/lib" || .././install-sh -c -d "/Users/lynn/lib"\
 /bin/sh ../libtool --silent --mode=install /usr/bin/install -c  'libsox.la' '/Users/lynn/lib/libsox.la'\
ranlib: file: /Users/lynn/lib/libsox.a(libsox_la-speexdsp.o) has no symbols\

(same as yours).
Chris, why is there no mention of the dylib being installed?

Anyway, the dynamic library is there:

$ ls -l ~/lib/libsox*
-rwxr-xr-x  1 hans  staff   707172 Feb 20 09:21 /Users/hans/lib/libsox.1.dylib
-rw-r--r--  1 hans  staff  2659688 Feb 20 09:30 /Users/hans/lib/libsox.a
lrwxr-xr-x  1 hans  staff       14 Feb 20 09:28 /Users/hans/lib/libsox.dylib -> libsox.2.dylib
-rwxr-xr-x  1 hans  staff     1191 Feb 20 09:28 /Users/hans/lib/libsox.la

NB: On MacOSX, the dynamic library would be called *.dylib, not *.so
(look into your /usr/lib, it's full of those).

So if you have /Users/lynn/lib/libsox.*.dylib,
that's your sox dynamic library that other software
(such as pysox) can link to.

Now you probably want to make uninstall that again, and
make distclean ; ./configure --prefix=SOMEWHERE ; make ; sudo make install
putting in some suitable prefix, such as /usr/local, and putting in
the detailed ./configure --options

(I wonder where the GOMP compilation error went.)

        Jan


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: libsox.a

Lynn Oliver

Jan Stary wrote
What I see there is pretty much the same what a 14.3.2 build
looks like on my 10.5.8. For me, it *does* create a dynamic
library - but the output of 'make install' doesn't indicate that:
It appears you've dragged me along to your level, then.  I ended up with
\usr\local\include\sox.h
\usr\local\lib\libsox.a, libsox.dylib, libsox.2.dylib, libsox.2.0.0.dylib etc.
\usr\local\lib\sox  empty folder
\usr\local\bin\sox, soxi, play, rec

Thanks for the help!