Can't compile oss in 2.6.39 [SOLVED]

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help

Can't compile oss in 2.6.39 [SOLVED]

Postby evilgoldy on Wed Jun 22, 2011 4:39 am

I use Open Sound System since it's light on resources, and since debian repo files are both outdated and don't work for me for some reason, I have to compile it from source with each kernel update by these isntructions: http://www.opensound.com/wiki/index.php ... rom_source
Unfortunately, it seems as it can't be done with the newest kernel 2.6.39. This is what I get when I try to "make build":
Code: Select all
make build
for n in lib cmd kernel os_cmd kernel/OS/Linux noregparm;do (echo $n && cd $n && make ARCH=i686) || eval 'exit 1'; done
lib
make[1]: Entering directory `/home/zlaja/oss/lib'
for n in libOSSlib libossmix libsalsa;do (echo $n && cd $n && make ARCH=i686) || eval 'exit 1'; done
libOSSlib
make[2]: Entering directory `/home/zlaja/oss/lib/libOSSlib'
sh ./compile.sh /lib "cc" "-O -fPIC" "make"
make[3]: Entering directory `/home/zlaja/oss/lib/libOSSlib'
cc -O -fPIC   -c -o libmain.o libmain.c
cc -O -fPIC   -c -o midiparser.o midiparser.c
cc -O -fPIC   -c -o play_event.o play_event.c
cc -shared -fPIC -o libOSSlib.so libmain.o midiparser.o play_event.o
make[3]: Leaving directory `/home/zlaja/oss/lib/libOSSlib'
make[2]: Leaving directory `/home/zlaja/oss/lib/libOSSlib'
libossmix
make[2]: Entering directory `/home/zlaja/oss/lib/libossmix'
cc -c -O -shared -fPIC -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_cache.c -o ./libossmix_cache.o
cc -c -O -shared -fPIC -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_local.c -o ./libossmix_local.o
cc -c -O -shared -fPIC -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_main.c -o ./libossmix_main.o
cc -c -O -shared -fPIC -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_tcp.c -o ./libossmix_tcp.o
cc  -shared -fPIC -o ../../target/lib/libossmix.so ./libossmix_cache.o ./libossmix_local.o ./libossmix_main.o ./libossmix_tcp.o
make[2]: Leaving directory `/home/zlaja/oss/lib/libossmix'
libsalsa
make[2]: Entering directory `/home/zlaja/oss/lib/libsalsa'
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c main.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c main.c  -fPIC -DPIC -o .libs/main.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c main.c -o main.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c output.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c output.c  -fPIC -DPIC -o .libs/output.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c output.c -o output.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c misc.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c misc.c  -fPIC -DPIC -o .libs/misc.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c misc.c -o misc.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c pcm.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c pcm.c  -fPIC -DPIC -o .libs/pcm.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c pcm.c -o pcm.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c mix.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c mix.c  -fPIC -DPIC -o .libs/mix.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c mix.c -o mix.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c seq.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seq.c  -fPIC -DPIC -o .libs/seq.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seq.c -o seq.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c seqmid.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seqmid.c  -fPIC -DPIC -o .libs/seqmid.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seqmid.c -o seqmid.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c rawmidi.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c rawmidi.c  -fPIC -DPIC -o .libs/rawmidi.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c rawmidi.c -o rawmidi.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c seq_output.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seq_output.c  -fPIC -DPIC -o .libs/seq_output.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seq_output.c -o seq_output.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c timer.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c timer.c  -fPIC -DPIC -o .libs/timer.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c timer.c -o timer.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c stubs.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c stubs.c  -fPIC -DPIC -o .libs/stubs.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c stubs.c -o stubs.o >/dev/null 2>&1
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c seq_input.c
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seq_input.c  -fPIC -DPIC -o .libs/seq_input.o
libtool: compile:  cc -O -I../../include -I../libOSSlib -c seq_input.c -o seq_input.o >/dev/null 2>&1
libtool --tag=CC --mode=link cc -rpath /usr/lib -Wl,--version-script=Versions -version-info 2:0:0 -o libsalsa.la main.lo output.lo misc.lo pcm.lo mix.lo seq.lo seqmid.lo rawmidi.lo seq_output.lo timer.lo stubs.lo seq_input.lo -L../libOSSlib -lOSSlib
libtool: link: gcc -shared  -fPIC -DPIC  .libs/main.o .libs/output.o .libs/misc.o .libs/pcm.o .libs/mix.o .libs/seq.o .libs/seqmid.o .libs/rawmidi.o .libs/seq_output.o .libs/timer.o .libs/stubs.o .libs/seq_input.o   -L../libOSSlib -lOSSlib  -Wl,--version-script=Versions   -Wl,-soname -Wl,libsalsa.so.2 -o .libs/libsalsa.so.2.0.0
libtool: link: (cd ".libs" && rm -f "libsalsa.so.2" && ln -s "libsalsa.so.2.0.0" "libsalsa.so.2")
libtool: link: (cd ".libs" && rm -f "libsalsa.so" && ln -s "libsalsa.so.2.0.0" "libsalsa.so")
libtool: link: ar cru .libs/libsalsa.a  main.o output.o misc.o pcm.o mix.o seq.o seqmid.o rawmidi.o seq_output.o timer.o stubs.o seq_input.o
libtool: link: ranlib .libs/libsalsa.a
libtool: link: ( cd ".libs" && rm -f "libsalsa.la" && ln -s "../libsalsa.la" "libsalsa.la" )
make[2]: Leaving directory `/home/zlaja/oss/lib/libsalsa'
make[1]: Leaving directory `/home/zlaja/oss/lib'
cmd
make[1]: Entering directory `/home/zlaja/oss/cmd'
for n in ossdevlinks ossinfo ossmix ossmixd osspartysh ossphone ossplay osstest savemixer vmixctl;do (echo $n && cd $n && make ARCH=i686) || eval 'exit 1'; done
ossdevlinks
make[2]: Entering directory `/home/zlaja/oss/cmd/ossdevlinks'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossdevlinks.c -o ./ossdevlinks.o
cc -O   -s -o ../../target/sbin/ossdevlinks ./ossdevlinks.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/ossdevlinks'
ossinfo
make[2]: Entering directory `/home/zlaja/oss/cmd/ossinfo'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossinfo.c -o ./ossinfo.o
cc -O   -s -o ../../target/bin/ossinfo ./ossinfo.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/ossinfo'
ossmix
make[2]: Entering directory `/home/zlaja/oss/cmd/ossmix'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossmix.c -o ./ossmix.o
cc -O   -s -o ../../target/bin/ossmix ./ossmix.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/ossmix'
ossmixd
make[2]: Entering directory `/home/zlaja/oss/cmd/ossmixd'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossmixd.c -o ./ossmixd.o
ossmixd.c: In function ‘update_values’:
ossmixd.c:164:14: warning: variable ‘prev_value’ set but not used [-Wunused-but-set-variable]
cc -O  -L../../target/lib -lossmix -s -o ../../target/sbin/ossmixd ./ossmixd.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/ossmixd'
osspartysh
make[2]: Entering directory `/home/zlaja/oss/cmd/osspartysh'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. osspartysh.c -o ./osspartysh.o
cc -O  -lutil -s -o ../../target/bin/osspartysh ./osspartysh.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/osspartysh'
ossphone
make[2]: Entering directory `/home/zlaja/oss/cmd/ossphone'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossphone.c -o ./ossphone.o
ossphone.c: In function ‘wait_dialtone’:
ossphone.c:154:7: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
ossphone.c: In function ‘dial_phone_number’:
ossphone.c:190:11: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
ossphone.c: In function ‘main’:
ossphone.c:384:9: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
cc -O  -lm -s -o ../../target/bin/ossphone ./ossphone.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/ossphone'
ossplay
make[2]: Entering directory `/home/zlaja/oss/cmd/ossplay'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay.c -o ./ossplay.o
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_console.c -o ./ossplay_console.o
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_decode.c -o ./ossplay_decode.o
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_parser.c -o ./ossplay_parser.o
ossplay_parser.c: In function ‘play_voc’:
ossplay_parser.c:767:36: warning: variable ‘bits’ set but not used [-Wunused-but-set-variable]
ossplay_parser.c: In function ‘caf_desc_parse’:
ossplay_parser.c:1688:41: warning: variable ‘frames_per_packet’ set but not used [-Wunused-but-set-variable]
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_wparser.c -o ./ossplay_wparser.o
cc -O   -s -o ../../target/bin/ossplay ./ossplay.o ./ossplay_console.o ./ossplay_decode.o ./ossplay_parser.o ./ossplay_wparser.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/ossplay'
osstest
make[2]: Entering directory `/home/zlaja/oss/cmd/osstest'
cc -c -O -DSRC_SUPPORT -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. help.c -o ./help.o
cc -c -O -DSRC_SUPPORT -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. osstest.c -o ./osstest.o
cc -c -O -DSRC_SUPPORT -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. wavedata.c -o ./wavedata.o
cc -O -DSRC_SUPPORT   -s -o ../../target/bin/osstest ./help.o ./osstest.o ./wavedata.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/osstest'
savemixer
make[2]: Entering directory `/home/zlaja/oss/cmd/savemixer'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. savemixer.c -o ./savemixer.o
cc -O   -s -o ../../target/sbin/savemixer ./savemixer.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/savemixer'
vmixctl
make[2]: Entering directory `/home/zlaja/oss/cmd/vmixctl'
cc -c -O -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. vmixctl.c -o ./vmixctl.o
cc -O   -s -o ../../target/sbin/vmixctl ./vmixctl.o
make[2]: Leaving directory `/home/zlaja/oss/cmd/vmixctl'
make[1]: Leaving directory `/home/zlaja/oss/cmd'
kernel
make[1]: Entering directory `/home/zlaja/oss/kernel'
for n in drv framework;do (echo $n && cd $n && make ARCH=i686) || eval 'exit 1'; done
drv
make[2]: Entering directory `/home/zlaja/oss/kernel/drv'
for n in oss_ali5455 oss_atiaudio oss_audigyls oss_audioloop oss_audiopci oss_cmi878x oss_cmpci oss_cs4281 oss_cs461x oss_digi96 oss_emu10k1x oss_envy24 oss_envy24ht oss_fmedia oss_geode oss_hdaudio oss_ich oss_imux oss_madi oss_midiloop oss_midimix oss_sblive oss_sbpci oss_sbxfi oss_solo oss_trident oss_usb oss_userdev oss_via823x oss_via97 oss_ymf7xx;do (echo $n && cd $n && make ARCH=i686) || eval 'exit 1'; done
oss_ali5455
make[3]: Entering directory `/home/zlaja/oss/kernel/drv/oss_ali5455'
cc -c -D_KERNEL -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/Linux -I../../../kernel/nonfree/include -I../../.. oss_ali5455.c -o ./oss_ali5455.o
ld  -r -o ../../../target/modules/oss_ali5455.o ./oss_ali5455.o
make[3]: Leaving directory `/home/zlaja/oss/kernel/drv/oss_ali5455'
oss_atiaudio
make[3]: Entering directory `/home/zlaja/oss/kernel/drv/oss_atiaudio'
cc -c -D_KERNEL -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/Linux -I../../../kernel/nonfree/include -I../../.. oss_atiaudio.c -o ./oss_atiaudio.o
ld  -r -o ../../../target/modules/oss_atiaudio.o ./oss_atiaudio.o
make[3]: Leaving directory `/home/zlaja/oss/kernel/drv/oss_atiaudio'
oss_audigyls
make[3]: Entering directory `/home/zlaja/oss/kernel/drv/oss_audigyls'
cc -c -D_KERNEL -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/Linux -I../../../kernel/nonfree/include -I../../.. oss_audigyls.c -o ./oss_audigyls.o
oss_audigyls.c: In function ‘audigyls_prepare_for_input’:
oss_audigyls.c:676:28: warning: variable ‘oversample’ set but not used [-Wunused-but-set-variable]
ld  -r -o ../../../target/modules/oss_audigyls.o ./oss_audigyls.o
make[3]: Leaving directory `/home/zlaja/oss/kernel/drv/oss_audigyls'
oss_audioloop
make[3]: Entering directory `/home/zlaja/oss/kernel/drv/oss_audioloop'
cc -c -D_KERNEL -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/Linux -I../../../kernel/nonfree/include -I../../.. oss_audioloop.c -o ./oss_audioloop.o
ld  -r -o ../../../target/modules/oss_audioloop.o ./oss_audioloop.o
make[3]: Leaving directory `/home/zlaja/oss/kernel/drv/oss_audioloop'
oss_audiopci
make[3]: Entering directory `/home/zlaja/oss/kernel/drv/oss_audiopci'
cc -c -D_KERNEL -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/Linux -I../../../kernel/nonfree/include -I../../.. oss_audiopci.c -o ./oss_audiopci.o
oss_audiopci.c: In function ‘apci_outsw’:
oss_audiopci.c:88:16: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors

make[3]: *** [oss_audiopci.o] Error 1
make[3]: Leaving directory `/home/zlaja/oss/kernel/drv/oss_audiopci'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/zlaja/oss/kernel/drv'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/zlaja/oss/kernel'
make: *** [subdirs] Error 1

Can anyone help?
Last edited by evilgoldy on Sat Jun 25, 2011 3:37 am, edited 1 time in total.
evilgoldy
Level 1
Level 1
 
Posts: 13
Joined: Sat Dec 05, 2009 6:33 am

Linux Mint is funded by ads and donations.
 

Re: Can't compile oss in 2.6.39

Postby zerozero on Wed Jun 22, 2011 12:04 pm

just a random shoot, but have you checked if you have the headers for 39.2 installed?
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: Can't compile oss in 2.6.39

Postby evilgoldy on Wed Jun 22, 2011 3:06 pm

Yes, I installed those right after updating.
evilgoldy
Level 1
Level 1
 
Posts: 13
Joined: Sat Dec 05, 2009 6:33 am

Re: Can't compile oss in 2.6.39

Postby evilgoldy on Sat Jun 25, 2011 3:36 am

I solved this by downloading .deb packages from unstable and installing them manualy.
evilgoldy
Level 1
Level 1
 
Posts: 13
Joined: Sat Dec 05, 2009 6:33 am


Return to Sound, Multimedia & Codecs

Who is online

Users browsing this forum: No registered users and 3 guests