aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: FreeBSD compiling deamon problem  (Read 3947 times)

Rubinas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
FreeBSD compiling deamon problem
« 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...
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: FreeBSD compiling deamon problem
« Reply #1 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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: FreeBSD compiling deamon problem
« Reply #2 on: January 03, 2006, 05:49:36 PM »

I suspect that.
Logged

Rubinas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: FreeBSD compiling deamon problem
« Reply #3 on: January 03, 2006, 05:57:39 PM »

Thanks a lot. Gmake works. :baby:
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: FreeBSD compiling deamon problem
« Reply #4 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.
Logged

Rubinas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: FreeBSD compiling deamon problem
« Reply #5 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?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: FreeBSD compiling deamon problem
« Reply #6 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".
Logged

Rubinas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: FreeBSD compiling deamon problem
« Reply #7 on: January 03, 2006, 06:39:22 PM »

With --disable-debug result was same  :(
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: FreeBSD compiling deamon problem
« Reply #8 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.
« Last Edit: January 03, 2006, 06:56:36 PM by Gerd78 »
Logged

Rubinas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: FreeBSD compiling deamon problem
« Reply #9 on: January 03, 2006, 08:40:58 PM »

Thanks. Compiled. Trying to launch.
Logged