Ciao, sto provando a compilarmi transmission
Codice:
#!/bin/sh
_package="transmission"
_version="2.42"
_tarball="transmission-2.42.tar.bz2"
_server="http://download.transmissionbt.com/files"
srcdir="/tmp/build"
export PKG_CONFIG_PATH="$srcdir/curl/lib/pkgconfig:$srcdir/openssl/lib/pkgconfig:$srcdir/libevent/lib/pkgconfig"
export LDFLAGS="-L$srcdir/openssl/lib -L$srcdir/curl/lib -L$srcdir/libevent/lib"
export CPPFLAGS="-I$srcdir/openssl/include -I$srcdir/curl/include -I$srcdir/libevent/include"
[! -d $srcdir ] && mkdir -p $srcdir
cd $srcdir
[ ! -s $_tarball ] && wget "$_server/$_tarball" &&
[ ! -d $_package-$_version ] && tar xjf $_tarball
[ -d $_package-$_version-build ] && rm -rf $_package-$_version-build
[ -d $_package ] && rm -rf $_package
cp -r $_package-$_version $_package-$_version-build
cd $srcdir/$_package-$_version-build
./configure --prefix="$srcdir/$_package"
make
make install
ma il make mi restituisce questo errore
Codice:
CC peer-io.o
peer-io.c:511: warning: initialization from incompatible pointer type
peer-io.c:566: warning: initialization from incompatible pointer type
CC peer-mgr.o
CC peer-msgs.o
CC platform.o
CC port-forwarding.o
CC ptrarray.o
CC resume.o
CC rpcimpl.o
rpcimpl.c: In function ‘gotNewBlocklist’:
rpcimpl.c:1237: error: ‘z_stream’ undeclared (first use in this function)
rpcimpl.c:1237: error: (Each undeclared identifier is reported only once
rpcimpl.c:1237: error: for each function it appears in.)
rpcimpl.c:1237: error: expected ‘;’ before ‘stream’
rpcimpl.c:1238: warning: ISO C90 forbids mixed declarations and code
rpcimpl.c:1246: error: ‘stream’ undeclared (first use in this function)
rpcimpl.c:1246: error: ‘alloc_func’ undeclared (first use in this function)
rpcimpl.c:1246: error: expected ‘;’ before ‘Z_NULL’
rpcimpl.c:1247: error: ‘free_func’ undeclared (first use in this function)
rpcimpl.c:1247: error: expected ‘;’ before ‘Z_NULL’
rpcimpl.c:1248: error: ‘voidpf’ undeclared (first use in this function)
rpcimpl.c:1248: error: expected ‘;’ before ‘Z_NULL’
rpcimpl.c:1251: warning: implicit declaration of function ‘inflateInit2’
rpcimpl.c:1251: warning: nested extern declaration of ‘inflateInit2’
rpcimpl.c:1262: warning: implicit declaration of function ‘inflate’
rpcimpl.c:1262: warning: nested extern declaration of ‘inflate’
rpcimpl.c:1262: error: ‘Z_NO_FLUSH’ undeclared (first use in this function)
rpcimpl.c:1272: error: ‘Z_OK’ undeclared (first use in this function)
rpcimpl.c:1273: error: ‘Z_STREAM_END’ undeclared (first use in this function)
rpcimpl.c:1273: error: ‘Z_DATA_ERROR’ undeclared (first use in this function)
rpcimpl.c:1274: warning: implicit declaration of function ‘zError’
rpcimpl.c:1274: warning: nested extern declaration of ‘zError’
rpcimpl.c:1274: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
rpcimpl.c:1279: warning: implicit declaration of function ‘inflateEnd’
rpcimpl.c:1279: warning: nested extern declaration of ‘inflateEnd’
make[1]: *** [rpcimpl.o] Error 1
make[1]: Leaving directory `/tmp/build/transmission-2.42-build/libtransmission'
make: *** [install-recursive] Error 1
le dipendenze che ho compilato a parte sono
openssl
curl
libevent
Avete idee su come posso debuggare il problema?
grazie