Premetto che sono diventato incapace di fare qualsiasi cosa, da quando sono passato a linux. Ho tentato qualche volta di compilare qualcosa ma con scarsi risultati. Ho gia' speso qualche ora a cercare una guida, ho trovato questa:
http://digilander.libero.it/sbardell...0bluetooth.htm
e a seguire passo passo tutto cio' che contiene.
niente da fare, c'e' sempre una virgola fuori posto che non sono in grado di scovare e, in un modo o nell'altro, in qualche punto dell"installazione", qualcosa si inceppa.
Ci fosse qualcuno che, con santa pazienza, mi prendesse per mano in questa valle di lacrime....
Incollo di seguito cio' che ho copiato dalla konsole dopo l'ennesimo fallimento:
U sbc/INSTALL
U sbc/Makefile.am
U sbc/NEWS
U sbc/README
U sbc/acinclude.m4
U sbc/bootstrap
U sbc/bootstrap-configure
U sbc/configure.in
U sbc/sbc.m4
U sbc/sbc.pc.in
cvs checkout: Updating sbc/include
U sbc/include/Makefile.am
U sbc/include/sbc.h
cvs checkout: Updating sbc/lib
U sbc/lib/Makefile.am
U sbc/lib/sbc.c
U sbc/lib/sbc_math.h
U sbc/lib/sbc_tables.h
cvs checkout: Updating sbc/src
U sbc/src/Makefile.am
U sbc/src/sbcinfo.c
[termometro@dhcppc0 ~]$ cd sbc
[termometro@dhcppc0 sbc]$ ./bootstrap
configure.in: installing `./install-sh'
configure.in: installing `./missing'
lib/Makefile.am: installing `./depcomp'
[termometro@dhcppc0 sbc]$ ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc accepts -fPIE... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating sbc.pc
config.status: creating config.h
config.status: executing depfiles commands
[termometro@dhcppc0 sbc]$ make
make all-recursive
make[1]: Entering directory `/home/termometro/sbc'
Making all in include
make[2]: Entering directory `/home/termometro/sbc/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/termometro/sbc/include'
Making all in lib
make[2]: Entering directory `/home/termometro/sbc/lib'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbc.lo -MD -MP -MF ".deps/sbc.Tpo" -c -o sbc.lo sbc.c; \
then mv -f ".deps/sbc.Tpo" ".deps/sbc.Plo"; else rm -f ".deps/sbc.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbc.lo -MD -MP -MF .deps/sbc.Tpo -c sbc.c -fPIC -DPIC -o .libs/sbc.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbc.lo -MD -MP -MF .deps/sbc.Tpo -c sbc.c -o sbc.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -O2 -D_FORTIFY_SOURCE=2 -o libsbc.la -rpath /usr/lib -version-info 0:0:0 sbc.lo
gcc -shared .libs/sbc.o -Wl,-soname -Wl,libsbc.so.0 -o .libs/libsbc.so.0.0.0
(cd .libs && rm -f libsbc.so.0 && ln -s libsbc.so.0.0.0 libsbc.so.0)
(cd .libs && rm -f libsbc.so && ln -s libsbc.so.0.0.0 libsbc.so)
ar cru .libs/libsbc.a sbc.o
ranlib .libs/libsbc.a
creating libsbc.la
(cd .libs && rm -f libsbc.la && ln -s ../libsbc.la libsbc.la)
make[2]: Leaving directory `/home/termometro/sbc/lib'
Making all in src
make[2]: Entering directory `/home/termometro/sbc/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbcinfo.o -MD -MP -MF ".deps/sbcinfo.Tpo" -c -o sbcinfo.o sbcinfo.c; \
then mv -f ".deps/sbcinfo.Tpo" ".deps/sbcinfo.Po"; else rm -f ".deps/sbcinfo.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -O2 -D_FORTIFY_SOURCE=2 -o sbcinfo sbcinfo.o
mkdir .libs
gcc -Wall -O2 -D_FORTIFY_SOURCE=2 -o sbcinfo sbcinfo.o
make[2]: Leaving directory `/home/termometro/sbc/src'
make[2]: Entering directory `/home/termometro/sbc'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/termometro/sbc'
make[1]: Leaving directory `/home/termometro/sbc'
[termometro@dhcppc0 sbc]$ sudo make install
Password:
[termometro@dhcppc0 sbc]$ sudo make install
Password:
termometro is not in the sudoers file. This incident will be reported.
[termometro@dhcppc0 sbc]$ su
Parola d'ordine:
[root@dhcppc0 sbc]# sudo make install
Making install in include
make[1]: Entering directory `/home/termometro/sbc/include'
make[2]: Entering directory `/home/termometro/sbc/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/include" || mkdir -p -- "/usr/include"
/usr/bin/install -c -m 644 'sbc.h' '/usr/include/sbc.h'
make[2]: Leaving directory `/home/termometro/sbc/include'
make[1]: Leaving directory `/home/termometro/sbc/include'
Making install in lib
make[1]: Entering directory `/home/termometro/sbc/lib'
make[2]: Entering directory `/home/termometro/sbc/lib'
test -z "/usr/lib" || mkdir -p -- "/usr/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'libsbc.la' '/usr/lib/libsbc.la'
/usr/bin/install -c .libs/libsbc.so.0.0.0 /usr/lib/libsbc.so.0.0.0
(cd /usr/lib && { ln -s -f libsbc.so.0.0.0 libsbc.so.0 || { rm -f libsbc.so.0 && ln -s libsbc.so.0.0.0 libsbc.so.0; }; })
(cd /usr/lib && { ln -s -f libsbc.so.0.0.0 libsbc.so || { rm -f libsbc.so && ln -s libsbc.so.0.0.0 libsbc.so; }; })
/usr/bin/install -c .libs/libsbc.lai /usr/lib/libsbc.la
/usr/bin/install -c .libs/libsbc.a /usr/lib/libsbc.a
ranlib /usr/lib/libsbc.a
chmod 644 /usr/lib/libsbc.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.