First of all thank you very much for your kind and detailed reply and please excuse me for being late with replying. I've set that environment variable as you've told me (thanks for telling me, I didn't know that!) and here is the error log in english:
Code: Select all
make[1]: Entering directory '/home/domenico/work/transmission/transmission-2.93+/libtransmission'
CCLD bitfield-test
/opt/toolchains/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/../lib/gcc/mips-linux-uclibc/3.4.2/../../../../mips-linux-uclibc/bin/ld: /opt/toolchains/uclibc-crosstools/lib/: No such file: File format not recognized
collect2: ld returned 1 exit status
Makefile:1090: recipe for target 'bitfield-test' failed
make[1]: *** [bitfield-test] Error 1
make[1]: Leaving directory '/home/domenico/work/transmission/transmission-2.93+/libtransmission'
Makefile:501: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
For what concerns the rest, I apologize as I've been misleading. According to the error log, it's clear that the error arises when trying to build libtransmission so I've checked line 1090 for its Makefile and it is the one I've previously reported but it's clear that I haven't thought for a split second the problem was with the rm command indeed I've commented all the lines linked with bitfield-test (which I completely agree with you isn't the culprit but only the first point where the issue arises, an issue certainly linked to my particular case, almost certainly my toolchain though I can't still understand why up to v2.84 everthing has always gone and still goes smoothly),
What I've commented are lines from 1089 to 1091:
Code: Select all
bitfield-test$(EXEEXT): $(bitfield_test_OBJECTS) $(bitfield_test_DEPENDENCIES) $(EXTRA_bitfield_test_DEPENDENCIES)
@rm -f bitfield-test$(EXEEXT)
$(AM_V_CCLD)$(bitfield_test_LINK) $(bitfield_test_OBJECTS) $(bitfield_test_LDADD) $(LIBS)
Following this modification (which I don't believe is a very ortodox one), I immediatetely get an error about bitfield-test.h:
Code: Select all
bitfield.h:12:2: #error only libtransmission should #include this header.
Disabling that check in the header, I can go on for a while but again I get stuck on another error later on:
Code: Select all
st.c:232: undefined reference to `runTests'
collect2: ld returned 1 exit status
<builtin>: recipe for target 'bitfield-test' failed
make: *** [bitfield-test] Error 1
This isn't certainly the way to follow, that's sure. I've only tried to detail the best I could what I've done and the path I've followed to avoid other misunderstandings like the previous one which was completely my fault. I would thoroughly read again and again your message to figure out what else I can do now.
Just a last thing: I'm almost certain I'm not mixing anything up; the libraries should definitively be all for the target architecture and the only thing coming from the host one is the pkg-config executable. I'm forced to use this workaround to make it work. I define manually the PKG_CONFIG environment variable immediately before launching the configure script then the make command for Transmission:
Code: Select all
export PKG_CONFIG=/usr/bin/pkg-config
but I've done exactly the same with all the Transmission versions successfully built till now.
Again, I haven't issues building other libraries or executables, neither Transmission up to v2.84 so I'm confident my toolchain isn't broken (nor are the newer Transmission sources, that's clear: I just believe my toolchain has something which clashes with something that has changed in the Transmission sources in the meantime). Here are all the other relevant environment variables should they help:
Code: Select all
AR=mips-linux-ar
LDFLAGS=-L/opt/toolchains/uclibc-crosstools/lib
ac_cv_func_nonposix_getpwuid_r=no
CPPFLAGS=-I/opt/toolchains/uclibc-crosstools/include
LC_ALL=C
PATH=/opt/toolchains:/opt/toolchains/uclibc-crosstools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LD=mips-linux-ld
CXX=mips-linux-g++
CFLAGS=-I/opt/toolchains/uclibc-crosstools/include
ac_cv_func_posix_getpwuid_r=yes
glib_cv_uscore=no
PKG_CONFIG_PATH=/opt/toolchains/uclibc-crosstools/lib/pkgconfig
CC=mips-linux-gcc
ZLIB_LIBS=/opt/toolchains/uclibc-crosstools/lib/
Thanks again and have a good day!
