Stuck on compiling (cross-compiling using scratchbox).

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

Have you tried?

Code: Select all

./configure --enable-static --disable-shared ...
It works on most projects, I don't know about transmission (actually I know it works w/o those parameters by just deleting all the dynamic libraries -- the Windows port is made that way).

BTW do you really need static linking? It your cross-build is for a NAS, or router you don't, just look around the device and you'll see that everything is dynamically linked.
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

I've tryed the static link but i get :

/usr/bin/transmission-daemon: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

but inside the nas i've:

Code: Select all

find / -name libevent*
/mnt/ext/usr/lib/libevent-1.4.so.2
/mnt/ext/usr/lib/libevent.so
/mnt/ext/usr/lib/libevent_core-1.4.so.2.1.3
/mnt/ext/usr/lib/libevent_extra-1.4.so.2
/mnt/ext/usr/lib/libevent-1.4.so.2.1.3
/mnt/ext/usr/lib/libevent_extra-1.4.so.2.1.3
/mnt/ext/usr/lib/libevent_core.so
/mnt/ext/usr/lib/libevent_extra.so
/mnt/ext/usr/lib/libevent_core-1.4.so.2
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_core.so
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_pthreads-2.0.so
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_openssl-2.0.so.5
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_core-1.4.so.2.2.0
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_pthreads-2.0.so.5
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_extra-2.0.so.5.0.1
/share/MD0_DATA/.qpkg/Transmission/lib/libevent-2.0.so.5.0.1
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_extra-1.4.so.2
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_pthreads-2.0.so.5.0.1
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_core-2.0.so.5
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_extra.so
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_openssl-2.0.so
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_openssl-2.0.so.5.0.1
/share/MD0_DATA/.qpkg/Transmission/lib/libevent-1.4.so.2.2.0
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_core-1.4.so.2
/share/MD0_DATA/.qpkg/Transmission/lib/libevent-1.4.so.2
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_extra-2.0.so.5
/share/MD0_DATA/.qpkg/Transmission/lib/libevent-2.0.so.5
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_extra-1.4.so.2.2.0
/share/MD0_DATA/.qpkg/Transmission/lib/libevent.so
/share/MD0_DATA/.qpkg/Transmission/lib/libevent_core-2.0.so.5.0.1
michele@Workstation:~/build/transmission-2.52/binaries/bin$ file transmission-daemon
transmission-daemon: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped

I don't wanna use shared libs...
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

That's probably a good point, your NAS has libevent 1.4.x installed, and transmission requires version 2.x.x Unless of course libevent was installed on the NAS just for transmission (an old version).

But the ipkg files have both versions, so the problem with "no such file" is actually what I said before: the "-Wl,-rpath" is going to cause problems if it is used on the real executables. It means that the daemon is not looking at the ipkg installed files, only to the system libraries. That could be fixed easily.

To build static try this way:

Code: Select all

/configure --host=arm-linux-gnueabi --enable-daemon --disable-cli --disable-nls --without-gtk \
--enable-lightweight --enable-static --disable-shared \
--prefix=/home/michele/build/transmission-2.52/binaries/ \
--with-zlib=/home/michele/build/transmission-2.52/zlib127 \
LIBCURL_CFLAGS="-I/home/michele/build/transmission-2.52/curl7260/include/" \
LIBCURL_LIBS="-L/home/michele/build/transmission-2.52/curl7260/lib -Wl,-bstatic -lcurl -Wl,-bdynamic"  \
LIBEVENT_CFLAGS="-I/home/michele/build/transmission-2.52/libevent2010/include" \
LIBEVENT_LIBS="-L/home/michele/build/transmission-2.52/libevent2010/lib -Wl,-bstatic -levent -Wl,-bdynamic" \
OPENSSL_CFLAGS="-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/" \
OPENSSL_LIBS="-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -Wl,-bstatic -lcrypto -lssl -Wl,-bdynamic"
Then see if the result has other dependencies on dynamic libraries:

Code: Select all

arm-linux-gnueabi-ldd /home/michele/build/transmission-2.52/binaries/bin/transmission-daemon
# or
arm-linux-gnueabi-objdump -x /home/michele/build/transmission-2.52/binaries/bin/transmission-daemon | grep NEEDED
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

Quite strange...with your ./config i get this error:

Code: Select all

arm-linux-gnueabi-gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"2.52\" -DPACKAGE_STRING=\"transmission\ 2.52\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE_URL=\"\" -DPACKAGE=\"transmission\" -DVERSION=\"2.52\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STDBOOL_H=1 -DHAVE_ICONV_OPEN=1 -DHAVE_PREAD=1 -DHAVE_PWRITE=1 -DHAVE_DAEMON=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_MEMMEM=1 -DHAVE_STRSEP=1 -DHAVE_STRTOLD=1 -DHAVE_SYSLOG=1 -DHAVE_VALLOC=1 -DHAVE_GETPAGESIZE=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_STATVFS=1 -DHAVE_MKDTEMP=1 -DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -D_FILE_OFFSET_BITS=64 -DHAVE_LSEEK64=1 -DHAVE_DECL_POSIX_FADVISE=1 -DHAVE_POSIX_FADVISE=1 -DWITH_INOTIFY=1 -DHAVE_SYS_STATVFS_H=1 -DWITH_UTP=1 -DHAVE_MINIUPNP_16=1 -DTR_LIGHTWEIGHT=1 -I.  -I.. -D__TRANSMISSION__ -DPACKAGE_DATA_DIR=\""/home/michele/build/transmission-2.52/binaries/share"\" -DNDEBUG -I../third-party/dht -I../third-party/ -I../third-party/ -I../third-party/libnatpmp/ -I/home/michele/build/transmission-2.52/libevent2010/include -I/home/michele/build/transmission-2.52/curl7260/include/ -I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ -pthread -I/home/michele/build/transmission-2.52/zlib127/include -g -O2 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal -Wextra -Wdeclaration-after-statement -Winit-self -Wvariadic-macros -MT blocklist-test.o -MD -MP -MF .deps/blocklist-test.Tpo -c -o blocklist-test.o blocklist-test.c
mv -f .deps/blocklist-test.Tpo .deps/blocklist-test.Po
/bin/bash ../libtool  --tag=CC   --mode=link arm-linux-gnueabi-gcc -I../third-party/dht -I../third-party/ -I../third-party/ -I../third-party/libnatpmp/ -I/home/michele/build/transmission-2.52/libevent2010/include -I/home/michele/build/transmission-2.52/curl7260/include/ -I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ -pthread -I/home/michele/build/transmission-2.52/zlib127/include -g -O2 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal -Wextra -Wdeclaration-after-statement -Winit-self -Wvariadic-macros -L/home/michele/build/transmission-2.52/zlib127/lib  -o blocklist-test blocklist-test.o ./libtransmission.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/dht/libdht.a ../third-party/libutp/libutp.a -lrt -L/home/michele/build/transmission-2.52/curl7260/lib -Wl,-bstatic -lcurl -Wl,-bdynamic -L/home/michele/build/transmission-2.52/libevent2010/lib -Wl,-bstatic -levent -Wl,-bdynamic -L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -Wl,-bstatic -lcrypto -lssl -Wl,-bdynamic -lz -lm  -lm 
libtool: link: arm-linux-gnueabi-gcc -I../third-party/dht -I../third-party/ -I../third-party/ -I../third-party/libnatpmp/ -I/home/michele/build/transmission-2.52/libevent2010/include -I/home/michele/build/transmission-2.52/curl7260/include/ -I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ -pthread -I/home/michele/build/transmission-2.52/zlib127/include -g -O2 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal -Wextra -Wdeclaration-after-statement -Winit-self -Wvariadic-macros -o blocklist-test blocklist-test.o -Wl,-bstatic -Wl,-bdynamic -Wl,-bstatic -Wl,-bdynamic -Wl,-bstatic -Wl,-bdynamic  -L/home/michele/build/transmission-2.52/zlib127/lib ./libtransmission.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/dht/libdht.a ../third-party/libutp/libutp.a -L/home/michele/build/transmission-2.52/curl7260/lib /home/michele/build/transmission-2.52/curl7260/lib/libcurl.so -L/home/michele/build/transmission-2.52/libevent2010/lib /home/michele/build/transmission-2.52/libevent2010/lib/libevent.so -lrt -L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl -lz -lm -pthread -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/curl7260/lib -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/libevent2010/lib -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/curl7260/lib -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/libevent2010/lib
/usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/bin/ld: invalid BFD target `dynamic'
collect2: ld returned 1 exit status
make[1]: *** [blocklist-test] Errore 1
make[1]: uscita dalla directory "/home/michele/build/transmission-2.52/libtransmission"
it doesn't seem to be related to any lib...or am i wrong?
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

No, its the linker not liking the result of mixing static and dynamic libraries... my mistake, I tried using the manual way, but libtool doesn't like that.

Let's try again:

Code: Select all

./configure --host=arm-linux-gnueabi --enable-daemon --disable-cli --disable-nls --without-gtk \
--enable-lightweight --enable-static --disable-shared \
--prefix=/home/michele/build/transmission-2.52/binaries/ \
--with-zlib=/home/michele/build/transmission-2.52/zlib127 \
LDFLAGS="-all-static" \
LIBCURL_CFLAGS="-I/home/michele/build/transmission-2.52/curl7260/include/" \
LIBCURL_LIBS="-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl "  \
LIBEVENT_CFLAGS="-I/home/michele/build/transmission-2.52/libevent2010/include" \
LIBEVENT_LIBS="-L/home/michele/build/transmission-2.52/libevent2010/lib -levent " \
OPENSSL_CFLAGS="-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/" \
OPENSSL_LIBS="-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl"
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

Code: Select all

michele@Workstation:~/build/transmission-2.52$ ./configure --host=arm-linux-gnueabi --disable-nls --without-gtk --enable-lightweight --enable-static --disable-shared --prefix=/home/michele/build/transmission-2.52/binaries/ --with-zlib=/home/michele/build/transmission-2.52/zlib127 LDFLAGS="-all-static" LIBCURL_CFLAGS="-I/home/michele/build/transmission-2.52/curl7260/include/" LIBCURL_LIBS="-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl " LIBEVENT_CFLAGS="-I/home/michele/build/transmission-2.52/libevent2010/include" LIBEVENT_LIBS="-L/home/michele/build/transmission-2.52/libevent2010/lib -levent " OPENSSL_CFLAGS="-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/" OPENSSL_LIBS="-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl"
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-gnueabi-strip... arm-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnueabi
checking how to print strings... printf
checking for style of include used by make... GNU
checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/michele/build/transmission-2.52':
configure: error: C compiler cannot create executables
See `config.log' for more details
michele@Workstation:~/build/transmission-2.52$ 

Code: Select all

michele@Workstation:~/build/transmission-2.52$ cat config.log 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by transmission configure 2.52, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --host=arm-linux-gnueabi --disable-nls --without-gtk --enable-lightweight --enable-static --disable-shared --prefix=/home/michele/build/transmission-2.52/binaries/ --with-zlib=/home/michele/build/transmission-2.52/zlib127 LDFLAGS=-all-static LIBCURL_CFLAGS=-I/home/michele/build/transmission-2.52/curl7260/include/ LIBCURL_LIBS=-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl  LIBEVENT_CFLAGS=-I/home/michele/build/transmission-2.52/libevent2010/include LIBEVENT_LIBS=-L/home/michele/build/transmission-2.52/libevent2010/lib -levent  OPENSSL_CFLAGS=-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ OPENSSL_LIBS=-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl

## --------- ##
## Platform. ##
## --------- ##

hostname = Workstation
uname -m = x86_64
uname -r = 3.2.0-25-generic
uname -s = Linux
uname -v = #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2550: checking whether make supports nested variables
configure:2567: result: yes
configure:2627: checking for a BSD-compatible install
configure:2695: result: /usr/bin/install -c
configure:2706: checking whether build environment is sane
configure:2756: result: yes
configure:2805: checking for arm-linux-gnueabi-strip
configure:2821: found /usr/bin/arm-linux-gnueabi-strip
configure:2832: result: arm-linux-gnueabi-strip
configure:2897: checking for a thread-safe mkdir -p
configure:2936: result: /bin/mkdir -p
configure:2949: checking for gawk
configure:2965: found /usr/bin/gawk
configure:2976: result: gawk
configure:2987: checking whether make sets $(MAKE)
configure:3009: result: yes
configure:3084: checking how to create a pax tar archive
configure:3097: tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:3100: $? = 0
configure:3140: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar
configure:3143: $? = 0
configure:3147: tar -xf - <conftest.tar
configure:3150: $? = 0
configure:3163: result: gnutar
configure:3199: checking build system type
configure:3213: result: x86_64-unknown-linux-gnu
configure:3233: checking host system type
configure:3246: result: arm-unknown-linux-gnueabi
configure:3287: checking how to print strings
configure:3314: result: printf
configure:3347: checking for style of include used by make
configure:3375: result: GNU
configure:3406: checking for arm-linux-gnueabi-gcc
configure:3422: found /usr/bin/arm-linux-gnueabi-gcc
configure:3433: result: arm-linux-gnueabi-gcc
configure:3702: checking for C compiler version
configure:3711: arm-linux-gnueabi-gcc --version >&5
arm-linux-gnueabi-gcc (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3722: $? = 0
configure:3711: arm-linux-gnueabi-gcc -v >&5
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/arm-linux-gnueabi/include/c++/4.3.2 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --disable-libssp --disable-sjlj-exceptions --enable-checking=release --program-prefix=arm-linux-gnueabi- --includedir=/usr/arm-linux-gnueabi/include --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1) 
configure:3722: $? = 0
configure:3711: arm-linux-gnueabi-gcc -V >&5
arm-linux-gnueabi-gcc: '-V' option must have argument
configure:3722: $? = 1
configure:3711: arm-linux-gnueabi-gcc -qversion >&5
arm-linux-gnueabi-gcc: unrecognized option '-qversion'
arm-linux-gnueabi-gcc: no input files
configure:3722: $? = 1
configure:3742: checking whether the C compiler works
configure:3764: arm-linux-gnueabi-gcc   -all-static conftest.c  >&5
cc1: error: unrecognized command line option "-all-static"
configure:3768: $? = 1
configure:3806: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "transmission"
| #define PACKAGE_TARNAME "transmission"
| #define PACKAGE_VERSION "2.52"
| #define PACKAGE_STRING "transmission 2.52"
| #define PACKAGE_BUGREPORT "http://trac.transmissionbt.com/newticket"
| #define PACKAGE_URL ""
| #define PACKAGE "transmission"
| #define VERSION "2.52"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3811: error: in `/home/michele/build/transmission-2.52':
configure:3813: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_GTK_CFLAGS_set=
ac_cv_env_GTK_CFLAGS_value=
ac_cv_env_GTK_LIBS_set=
ac_cv_env_GTK_LIBS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-all-static
ac_cv_env_LIBAPPINDICATOR_CFLAGS_set=
ac_cv_env_LIBAPPINDICATOR_CFLAGS_value=
ac_cv_env_LIBAPPINDICATOR_LIBS_set=
ac_cv_env_LIBAPPINDICATOR_LIBS_value=
ac_cv_env_LIBCURL_CFLAGS_set=set
ac_cv_env_LIBCURL_CFLAGS_value=-I/home/michele/build/transmission-2.52/curl7260/include/
ac_cv_env_LIBCURL_LIBS_set=set
ac_cv_env_LIBCURL_LIBS_value='-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl '
ac_cv_env_LIBEVENT_CFLAGS_set=set
ac_cv_env_LIBEVENT_CFLAGS_value=-I/home/michele/build/transmission-2.52/libevent2010/include
ac_cv_env_LIBEVENT_LIBS_set=set
ac_cv_env_LIBEVENT_LIBS_value='-L/home/michele/build/transmission-2.52/libevent2010/lib -levent '
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OPENSSL_CFLAGS_set=set
ac_cv_env_OPENSSL_CFLAGS_value=-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/
ac_cv_env_OPENSSL_LIBS_set=set
ac_cv_env_OPENSSL_LIBS_value='-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl'
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-gnueabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-gnueabi
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=arm-linux-gnueabi-gcc
ac_cv_prog_STRIP=arm-linux-gnueabi-strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_pax=gnutar

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/michele/build/transmission-2.52/missing --run aclocal-1.11'
ALL_LINGUAS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /home/michele/build/transmission-2.52/missing --run autoconf'
AUTOHEADER='${SHELL} /home/michele/build/transmission-2.52/missing --run autoheader'
AUTOMAKE='${SHELL} /home/michele/build/transmission-2.52/missing --run automake-1.11'
AWK='gawk'
BUILD_CLI_FALSE=''
BUILD_CLI_TRUE=''
BUILD_DAEMON_FALSE=''
BUILD_DAEMON_TRUE=''
BUILD_GTK_FALSE=''
BUILD_GTK_TRUE=''
BUILD_MAC_FALSE=''
BUILD_MAC_TRUE=''
BUILD_MINIUPNP_FALSE=''
BUILD_MINIUPNP_TRUE=''
BUILD_NATPMP_FALSE=''
BUILD_NATPMP_TRUE=''
BUILD_UTP_FALSE=''
BUILD_UTP_TRUE=''
CATALOGS=''
CATOBJEXT=''
CC='arm-linux-gnueabi-gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CURL_MINIMUM=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DATADIRNAME=''
DEFS=''
DEPDIR='.deps'
DHT_CFLAGS=''
DHT_LIBS=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GETTEXT_PACKAGE=''
GIO_MINIMUM=''
GLIB_MINIMUM=''
GMOFILES=''
GMSGFMT=''
GREP=''
GTK2_MINIMUM=''
GTK3_MINIMUM=''
GTK_CFLAGS=''
GTK_LIBS=''
HAVE_CXX=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT=''
INTLLIBS=''
INTLTOOL_CAVES_RULE=''
INTLTOOL_DESKTOP_RULE=''
INTLTOOL_DIRECTORY_RULE=''
INTLTOOL_EXTRACT=''
INTLTOOL_KBD_RULE=''
INTLTOOL_KEYS_RULE=''
INTLTOOL_MERGE=''
INTLTOOL_OAF_RULE=''
INTLTOOL_PERL=''
INTLTOOL_POLICY_RULE=''
INTLTOOL_PONG_RULE=''
INTLTOOL_PROP_RULE=''
INTLTOOL_SCHEMAS_RULE=''
INTLTOOL_SERVER_RULE=''
INTLTOOL_SERVICE_RULE=''
INTLTOOL_SHEET_RULE=''
INTLTOOL_SOUNDLIST_RULE=''
INTLTOOL_THEME_RULE=''
INTLTOOL_UI_RULE=''
INTLTOOL_UPDATE=''
INTLTOOL_V_MERGE=''
INTLTOOL_V_MERGE_OPTIONS=''
INTLTOOL_XAM_RULE=''
INTLTOOL_XML_NOMERGE_RULE=''
INTLTOOL_XML_RULE=''
INTLTOOL__v_MERGE_0=''
INTLTOOL__v_MERGE_=''
LD=''
LDFLAGS='-all-static'
LIBAPPINDICATOR_CFLAGS=''
LIBAPPINDICATOR_LIBS=''
LIBAPPINDICATOR_MINIMUM=''
LIBCURL_CFLAGS='-I/home/michele/build/transmission-2.52/curl7260/include/'
LIBCURL_LIBS='-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl '
LIBEVENT_CFLAGS='-I/home/michele/build/transmission-2.52/libevent2010/include'
LIBEVENT_LIBS='-L/home/michele/build/transmission-2.52/libevent2010/lib -levent '
LIBEVENT_MINIUM=''
LIBNATPMP_CFLAGS=''
LIBNATPMP_LIBS=''
LIBNATPMP_LIBS_QT=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBUPNP_CFLAGS=''
LIBUPNP_LIBS=''
LIBUPNP_LIBS_QT=''
LIBUTP_CFLAGS=''
LIBUTP_LIBS=''
LIBUTP_LIBS_QT=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/michele/build/transmission-2.52/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPENSSL_CFLAGS='-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/'
OPENSSL_LIBS='-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl'
OPENSSL_MINIMUM=''
OTOOL64=''
OTOOL=''
PACKAGE='transmission'
PACKAGE_BUGREPORT='http://trac.transmissionbt.com/newticket'
PACKAGE_NAME='transmission'
PACKAGE_STRING='transmission 2.52'
PACKAGE_TARNAME='transmission'
PACKAGE_URL=''
PACKAGE_VERSION='2.52'
PATH_SEPARATOR=':'
PEERID_PREFIX='-TR2520-'
PKG_CONFIG=''
POFILES=''
POSUB=''
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='arm-linux-gnueabi-strip'
TR_UNSTABLE_FALSE=''
TR_UNSTABLE_TRUE=''
USERAGENT_PREFIX='2.52'
USE_NLS=''
VERSION='2.52'
WIN32_FALSE=''
WIN32_TRUE=''
WINDRES=''
XGETTEXT=''
ZLIB_CFLAGS=''
ZLIB_LDFLAGS=''
ZLIB_LIBS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='tar --format=posix -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-unknown-linux-gnueabi'
host_alias='arm-linux-gnueabi'
host_cpu='arm'
host_os='linux-gnueabi'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/michele/build/transmission-2.52/install-sh'
intltool__v_merge_options_0=''
intltool__v_merge_options_=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/michele/build/transmission-2.52/binaries'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
transmissionlocaledir=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "transmission"
#define PACKAGE_TARNAME "transmission"
#define PACKAGE_VERSION "2.52"
#define PACKAGE_STRING "transmission 2.52"
#define PACKAGE_BUGREPORT "http://trac.transmissionbt.com/newticket"
#define PACKAGE_URL ""
#define PACKAGE "transmission"
#define VERSION "2.52"

configure: exit 77

Going mad..........seems that the compiler doesn't like something...
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

Only one error:

Code: Select all

configure:3764: arm-linux-gnueabi-gcc   -all-static conftest.c  >&5
cc1: error: unrecognized command line option "-all-static"
That option was intended for libtool, not gcc, once again my mistake (I don't use these things, the --enable static --disable-shared should take care of that).

Back to the drawing board ;-)
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

again...sorry for my english....sometimes i don't understand english very well :) ....are you "updating" something in the code or just thinking about the ./configure ? :roll: :roll:
:oops:
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

What?

Is the phrase "back to the drawing board" confusing you? Yes, it means I'm "thinking", not about configure, but about the mess transmission is making of something that should work (but many projects don't care about static linked versions of their product so it is not an unusual mess).

The way I do it for the Windows port is building everything as static, nothing as shared, then transmission doesn't find the shared libraries and doesn't have an option but to link statically (I don't even have to use --enable-static --disable-shared).
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

Change the LDFLAGS line to:

Code: Select all

LDFLAGS="-static" \
now the option is for gcc... I don't know, but libtool will probably still mess everything.
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

Code: Select all

./configure --host=arm-linux-gnueabi --enable-daemon --disable-cli --disable-nls --without-gtk --enable-lightweight --enable-static --disable-shared --prefix=/home/michele/build/transmission-2.52/binaries/ --with-zlib=/home/michele/build/transmission-2.52/zlib127 LDFLAGS="-static" LIBCURL_CFLAGS="-I/home/michele/build/transmission-2.52/curl7260/include/" LIBCURL_LIBS="-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl "  LIBEVENT_CFLAGS="-I/home/michele/build/transmission-2.52/libevent2010/include"  LIBEVENT_LIBS="-L/home/michele/build/transmission-2.52/libevent2010/lib -levent " OPENSSL_CFLAGS="-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/" OPENSSL_LIBS="-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl"

"arm-linux-gnueabi-ranlib libtransmission.a
arm-linux-gnueabi-gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"2.52\" -DPACKAGE_STRING=\"transmission\ 2.52\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE_URL=\"\" -DPACKAGE=\"transmission\" -DVERSION=\"2.52\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STDBOOL_H=1 -DHAVE_ICONV_OPEN=1 -DHAVE_PREAD=1 -DHAVE_PWRITE=1 -DHAVE_DAEMON=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_MEMMEM=1 -DHAVE_STRSEP=1 -DHAVE_STRTOLD=1 -DHAVE_SYSLOG=1 -DHAVE_VALLOC=1 -DHAVE_GETPAGESIZE=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_STATVFS=1 -DHAVE_MKDTEMP=1 -DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -D_FILE_OFFSET_BITS=64 -DHAVE_LSEEK64=1 -DHAVE_DECL_POSIX_FADVISE=1 -DHAVE_POSIX_FADVISE=1 -DWITH_INOTIFY=1 -DHAVE_SYS_STATVFS_H=1 -DWITH_UTP=1 -DHAVE_MINIUPNP_16=1 -DTR_LIGHTWEIGHT=1 -I. -I.. -D__TRANSMISSION__ -DPACKAGE_DATA_DIR=\""/home/michele/build/transmission-2.52/binaries/share"\" -DNDEBUG -I../third-party/dht -I../third-party/ -I../third-party/ -I../third-party/libnatpmp/ -I/home/michele/build/transmission-2.52/libevent2010/include -I/home/michele/build/transmission-2.52/curl7260/include/ -I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ -pthread -I/home/michele/build/transmission-2.52/zlib127/include -g -O2 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal -Wextra -Wdeclaration-after-statement -Winit-self -Wvariadic-macros -MT blocklist-test.o -MD -MP -MF .deps/blocklist-test.Tpo -c -o blocklist-test.o blocklist-test.c
mv -f .deps/blocklist-test.Tpo .deps/blocklist-test.Po
/bin/bash ../libtool --tag=CC --mode=link arm-linux-gnueabi-gcc -I../third-party/dht -I../third-party/ -I../third-party/ -I../third-party/libnatpmp/ -I/home/michele/build/transmission-2.52/libevent2010/include -I/home/michele/build/transmission-2.52/curl7260/include/ -I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ -pthread -I/home/michele/build/transmission-2.52/zlib127/include -g -O2 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal -Wextra -Wdeclaration-after-statement -Winit-self -Wvariadic-macros -L/home/michele/build/transmission-2.52/zlib127/lib -static -o blocklist-test blocklist-test.o ./libtransmission.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/dht/libdht.a ../third-party/libutp/libutp.a -lrt -L/home/michele/build/transmission-2.52/curl7260/lib -lcurl -L/home/michele/build/transmission-2.52/libevent2010/lib -levent -L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl -lz -lm -lm
libtool: link: arm-linux-gnueabi-gcc -I../third-party/dht -I../third-party/ -I../third-party/ -I../third-party/libnatpmp/ -I/home/michele/build/transmission-2.52/libevent2010/include -I/home/michele/build/transmission-2.52/curl7260/include/ -I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/ -pthread -I/home/michele/build/transmission-2.52/zlib127/include -g -O2 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal -Wextra -Wdeclaration-after-statement -Winit-self -Wvariadic-macros -o blocklist-test blocklist-test.o -L/home/michele/build/transmission-2.52/zlib127/lib ./libtransmission.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/dht/libdht.a ../third-party/libutp/libutp.a -L/home/michele/build/transmission-2.52/curl7260/lib /home/michele/build/transmission-2.52/curl7260/lib/libcurl.so -L/home/michele/build/transmission-2.52/libevent2010/lib /home/michele/build/transmission-2.52/libevent2010/lib/libevent.so -lrt -L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl -lz -lm -pthread -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/curl7260/lib -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/libevent2010/lib -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/curl7260/lib -Wl,-rpath -Wl,/home/michele/build/transmission-2.52/libevent2010/lib
/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x1c): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x30): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x3c): undefined reference to `dlclose'
/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x68): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0xb8): undefined reference to `dlerror'
/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x3c8): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x468): undefined reference to `dlerror'
/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x4fc): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x594): undefined reference to `dlerror'
/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x5f0): undefined reference to `dlclose'
/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x684): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x6e8): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x710): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[1]: *** [blocklist-test] Errore 1
make[1]: uscita dalla directory "/home/michele/build/transmission-2.52/libtransmission"
make: *** [all-recursive] Errore 1
michele@Workstation:~/build/transmission-2.52$
"

maybe i'm very tired...(sleeped only 4 hrs...and worked 12h!)...i'll try later...
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

No, I left out one library because it is the dynamic linker, I did not thought it was needed.

Its the "'-ldl" in LIBEVENT_LIBS .
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

just to be sure...i'll try when i'll be at home later....:
It will become this?:

Code: Select all

./configure --host=arm-linux-gnueabi --enable-daemon --disable-cli --disable-nls --without-gtk --enable-lightweight --enable-static --disable-shared --prefix=/home/michele/build/transmission-2.52/binaries/ --with-zlib=/home/michele/build/transmission-2.52/zlib127 LDFLAGS="-static" LIBCURL_CFLAGS="-I/home/michele/build/transmission-2.52/curl7260/include/" LIBCURL_LIBS="-L/home/michele/build/transmission-2.52/curl7260/lib -lcurl "  LIBEVENT_CFLAGS="-I/home/michele/build/transmission-2.52/libevent2010/include"  LIBEVENT_LIBS="-L/home/michele/build/transmission-2.52/libevent2010/lib -levent -ldl" OPENSSL_CFLAGS="-I/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/include/" OPENSSL_LIBS="-L/home/michele/build/transmission-2.52/openssl101/usr/local/ssl/lib -lcrypto -lssl"
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

Yes.

Take into consideration that other dynamic libraries will still be used, for instance I think you saw what libcurl was adding where I said configure probably used pkg-config to get those libraries.

I don't know what "scratchbox" is, but it probably has a procedure to set static linking that is better than what we are doing.

Another note, using "--enable-lightweight" is not really needed on most NASes, they don't have much resources but they are plenty powerful (mine is ARM926 with only 128 MB).
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

Just tried on the NAS...

/transmission-daemon -f --blocklist --config-dir /share/MD0_DATA/.qpkg/Transmission/conf --logfile /share/Download/transmission/logs/debug.log
./transmission-daemon: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

Same error...

I'm not using scratchbox at the moment for transmission, but the libs were compiled using scratchbox as the main environment.

Now i'm just re-downloading all the req. libs and doing compile without scratchbox...but i think it won't make any difference...

I'll let you know later (1 or 2 hrs... :wink: )
Post Reply