aMule Forum

English => Compilation problems => Topic started by: Rubinas on January 03, 2006, 05:28:31 PM

Title: FreeBSD compiling deamon problem
Post 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...
Title: Re: FreeBSD compiling deamon problem
Post by: Gerd78 on January 03, 2006, 05:40:50 PM
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.
Title: Re: FreeBSD compiling deamon problem
Post by: Kry on January 03, 2006, 05:49:36 PM
I suspect that.
Title: Re: FreeBSD compiling deamon problem
Post by: Rubinas on January 03, 2006, 05:57:39 PM
Thanks a lot. Gmake works. :baby:
Title: Re: FreeBSD compiling deamon problem
Post by: Gerd78 on January 03, 2006, 06:03:06 PM
The problem is in src/libs/ec/Makefile.am:
Code: [Select]
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.
Title: Re: FreeBSD compiling deamon problem
Post by: Rubinas on January 03, 2006, 06:17:37 PM
...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?
Title: Re: FreeBSD compiling deamon problem
Post by: Gerd78 on January 03, 2006, 06:22:48 PM
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".
Title: Re: FreeBSD compiling deamon problem
Post by: Rubinas on January 03, 2006, 06:39:22 PM
With --disable-debug result was same  :(
Title: Re: FreeBSD compiling deamon problem
Post by: Gerd78 on January 03, 2006, 06:50:33 PM
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.
Title: Re: FreeBSD compiling deamon problem
Post by: Rubinas on January 03, 2006, 08:40:58 PM
Thanks. Compiled. Trying to launch.