Hi, It looks like you are not using correct C compiler. Sun Studio 11 or 12 (or later) is required to compile OSS for Solaris.
Best regards, Hannu ----- Tebano epaminonda wrote: > > > Hi all. > I've problem compiling all oss - sources on my distro (SunOS 5.11 snv_98 > i86pc i386 i86pc). > I need to use it, because it's the only distro that now recognize both wired > and wireless device of my laptop. > While I was trying to enable also sound device, with your drivers, I've found > this problem: > - no version, of every available from developer site ends the "make" (from > 4.0 to 4.2); > in these, the 4.1 build 1052 and 1052b, stops at compiling of amd64 drivers > (oss_ali5455). > All the other ones, more early, during the first cc instruction of the make. > I've yet tried to use else the "cc" of /usr/ucb/bin, else the gcc instead of > it, without results. > > Every distro of cddl sources ends correctly the build of Makefile. > > But the better ones (4.1 build 1052 or 1052b) exits in this way, during make: > [...] > cd amd64;make > for n in kernel kernel/OS/SunOS;do (echo $n && cd $n && make ARCH=amd64) || > eval 'exit 1'; done > kernel > for n in drv framework;do (echo $n && cd $n && make ARCH=amd64) || eval 'exit > 1'; done > drv > for n in oss_ali5455 oss_allegro 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_midiloop oss_midimix oss_sadasupport oss_sblive oss_sbpci > oss_sbxfi oss_solo oss_trident oss_usb oss_userdev oss_via823x oss_via97 > oss_ymf7xx osscore;do (echo $n && cd $n && make ARCH=amd64) || eval 'exit 1'; > done > oss_ali5455 > cc -c -D_KERNEL -m64 -xmodel=kernel -DOSS_LITTLE_ENDIAN -I../../../include > -I../../../kernel/framework/include -I../../../kernel/OS/SunOS > -I../../../kernel/nonfree/include -I../../.. -I/usr/src/uts/amd64 > oss_ali5455.c -o ./oss_ali5455.o > cc: language model=kernel not recognized > cc: oss_ali5455.c: linker input file unused because linking not done > cc -c -D_KERNEL -m64 -xmodel=kernel -DOSS_LITTLE_ENDIAN -I../../../include > -I../../../kernel/framework/include -I../../../kernel/OS/SunOS > -I../../../kernel/nonfree/include -I../../.. -I/usr/src/uts/amd64 > oss_ali5455_cfg.c -o ./oss_ali5455_cfg.o > cc: language model=kernel not recognized > cc: oss_ali5455_cfg.c: linker input file unused because linking not done > ld -r -o ../../../target/modules/oss_ali5455.o ./oss_ali5455.o > ./oss_ali5455_cfg.o > ld: errore fatale:file ./oss_ali5455.o: impossibile aprire: File o directory > non trovati > *** Error code 1 > make: Fatal error: Command failed for target > `../../../target/modules/oss_ali5455.o' > Current working directory /opt/oss/amd64/kernel/drv/oss_ali5455 > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > Current working directory /opt/oss/amd64/kernel/drv > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > Current working directory /opt/oss/amd64/kernel > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > Current working directory /opt/oss/amd64 > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > > > While the worst others ends immediately: > > # make > cd i386;make > for n in lib cmd kernel os_cmd kernel/OS/SunOS;do (echo $n && cd $n && make > ARCH=i386) || eval 'exit 1'; done > lib > for n in libossmix;do (echo $n && cd $n && make ARCH=i386) || eval 'exit 1'; > done > libossmix > cc -xO5 -c -Bdynamic -Kpic -xarch=386 -DOSS_LITTLE_ENDIAN -I../../include > -I../../kernel/framework/include -I../../kernel/OS/SunOS > -I../../kernel/nonfree/include -I../.. libossmix_cache.c -o > ./libossmix_cache.o > cc: unrecognized option `-Kpic' > cc: language arch=386 not recognized > cc: libossmix_cache.c: linker input file unused because linking not done > cc -xO5 -c -Bdynamic -Kpic -xarch=386 -DOSS_LITTLE_ENDIAN -I../../include > -I../../kernel/framework/include -I../../kernel/OS/SunOS > -I../../kernel/nonfree/include -I../.. libossmix_local.c -o > ./libossmix_local.o > cc: unrecognized option `-Kpic' > cc: language arch=386 not recognized > cc: libossmix_local.c: linker input file unused because linking not done > cc -xO5 -c -Bdynamic -Kpic -xarch=386 -DOSS_LITTLE_ENDIAN -I../../include > -I../../kernel/framework/include -I../../kernel/OS/SunOS > -I../../kernel/nonfree/include -I../.. libossmix_main.c -o ./libossmix_main.o > cc: unrecognized option `-Kpic' > cc: language arch=386 not recognized > cc: libossmix_main.c: linker input file unused because linking not done > cc -xO5 -c -Bdynamic -Kpic -xarch=386 -DOSS_LITTLE_ENDIAN -I../../include > -I../../kernel/framework/include -I../../kernel/OS/SunOS > -I../../kernel/nonfree/include -I../.. libossmix_tcp.c -o ./libossmix_tcp.o > cc: unrecognized option `-Kpic' > cc: language arch=386 not recognized > cc: libossmix_tcp.c: linker input file unused because linking not done > ld -G -z text -o ../../target/lib/libossmix.so ./libossmix_cache.o > ./libossmix_local.o ./libossmix_main.o ./libossmix_tcp.o > ld: errore fatale:file ./libossmix_cache.o: impossibile aprire: File o > directory non trovati > *** Error code 1 > make: Fatal error: Command failed for target `../../target/lib/libossmix.so' > Current working directory /opt/oss/i386/lib/libossmix > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > Current working directory /opt/oss/i386/lib > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > Current working directory /opt/oss/i386 > *** Error code 1 > make: Fatal error: Command failed for target `subdirs' > > Can anyone help me? > Thanks anyway. > Cheers, > Tebano. > > _________________________________________________________________ > Show them the way! Add maps and directions to your party invites. > http://www.microsoft.com/windows/windowslive/products/events.aspx > > ------------------------------------------------------------------------ > > _______________________________________________ > oss-devel mailing list > oss-devel@mailman.opensound.com > http://mailman.opensound.com/mailman/listinfo/oss-devel > _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel