Opened 9 years ago
Closed 9 years ago
#4900 closed Bug (fixed)
failed build with ccache
Reported by: | Elbandi | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | None Set |
Component: | Transmission | Version: | 2.51 |
Severity: | Normal | Keywords: | |
Cc: |
Description
When cache is using, the build is failed:
In file included from net.c:46: tr-utp.h:32:24: error: libutp/utp.h: No such file or directory
checking for g++... g++ .. checking for g++... no .. checking µTP... no
utp build need g++, which is exists (see first checking line), but if cache is used this is a link:
# ls -l /usr/lib/ccache/g++ lrwxrwxrwx 1 root root 16 May 12 01:26 /usr/lib/ccache/g++ -> ../../bin/ccache
But when you check for g++ (HAVE_CXX) with file test: if test -f "$CXX"; then
Possible solution:
HAVE_CXX="yes" AC_PROG_CXX(,HAVE_CXX="no")
Change History (4)
comment:1 Changed 9 years ago by jordan
comment:2 Changed 9 years ago by Elbandi
I can do that tomorrow, but at first sight that commit is wrong too, becasue $CXX is tested with -f (is file?), /usr/lib/ccache/g++. Anyway, You do double check: first made by AC_PROG_CXX, seconds made Your test code.
comment:3 Changed 9 years ago by Elbandi
test with 2.52, looks good:
checking for g++... g++ ... checking for g++... yes ... checking µTP... yes
But it is my opinion that the built-in AC checking is the better choice...
comment:4 Changed 9 years ago by jordan
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Elbandi, there was a change post-2.51 that may have fixed this (https://trac.transmissionbt.com/changeset/13283/) ... can you repeat the test case with that change?