aMule Forum
English => Compilation problems => Topic started by: Rubinas on January 03, 2006, 05:28:31 PM
-
Hey there,
I am trying to compile amule-deamon under FreeBSD 5.3,
and get error:
make all-recursive
Making all in m4
Making all in docs
Making all in man
Making all in src
Making all in libs
Making all in ec
gcc -o mkFileSum
gcc: No input files specified
*** Error code 1
Stop in /usr/home/ext/aMule-2.1.0/src/libs/ec.
configure was with parameters:
--enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
wxBase is installed (version 2.6.2)
Thank you for any suggestion...
-
Which make program are you using? If you have GNU make (maybe installed as "gmake", not "make"), use that. If not, I might look at it. It's known that some hand-written parts of the makefile system currently don't work with other make programs than GNU make.
-
I suspect that.
-
Thanks a lot. Gmake works. :baby:
-
The problem is in src/libs/ec/Makefile.am:
mkFileSum$(EXEEXT): $(top_srcdir)/src/utils/mkFileSum.c
$(CC) -o $@ $<
The behaviour of "$<" in such a context is unspecified in POSIX and different implementations have different ideas about it - that's why some implementations such as BSD make and smake expand it to nothing which results in a missing input file.
Use GNU make for now, it's present in the ports collection.
-
...but compilation ended with error:
/usr/home/ext/aMule-2.1.0/src/libs/ec/ECPacket.h:237: undefined reference to `__gnu_norm::_List_node_base::unhook()'
gmake[4]: *** [amuleweb] Error 1
gmake[4]: Leaving directory `/usr/home/ext/rimas/aMule-2.1.0/src/webserver/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/home/ext/rimas/aMule-2.1.0/src/webserver'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/ext/rimas/aMule-2.1.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/ext/rimas/aMule-2.1.0'
gmake: *** [all] Error 2
any ideas?
-
Use Google...
http://www.google.com/search?q=__gnu_norm::_List_node_base::unhook()
Looks like a problem with FreeBSD's GCC setup and _GLIBCXX_DEBUG.
Try "./configure --disable-debug".
-
With --disable-debug result was same :(
-
Hm... Are you sure that you started from a completely fresh source tree?
The problem is that the GCC version distributed with FreeBSD 5.3 doesn't like it if either _GLIBCXX_DEBUG or _GLIBCXX_DEBUG_PEDANTIC are defined. They are defined by default, but not if --disable-debug was passed to ./configure. Maybe there are some leftovers from a previous ./configure run, so try it again with a completely fresh source tree.
EDIT: While we are at it, could you please post a longer error message if the problem occurs again? I mean, not only the actual error message itself, but also the last gcc/g++ call above it.
-
Thanks. Compiled. Trying to launch.