aMule Forum

English => Compilation problems => Topic started by: Ezeltje on December 16, 2006, 01:39:43 PM

Title: undefined reference to `CPartFile::GetDlActiveTime() const'
Post by: Ezeltje on December 16, 2006, 01:39:43 PM
Hi all,

I am getting this "make" error with today's CVS:

Code: [Select]
c     -L. -lmuleappcore -pthread   -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lz
amuled-UserEvents.o: In function `CUserEvents::ProcessEvent(CUserEvents::EventType, void const*)':
UserEvents.cpp:(.text+0xb84): undefined reference to `CPartFile::GetDlActiveTime() const'
collect2: ld returned 1 exit status

Thanks.

$ rpm -qa | grep wx
wxGTK-devel-2.6.3-2.6.3.2.3.fc6
wxGTK-2.6.3-2.6.3.2.3.fc6
wxGTK-gl-2.6.3-2.6.3.2.3.fc6
Title: Re: undefined reference to `CPartFile::GetDlActiveTime() const'
Post by: phoenix on December 16, 2006, 03:05:59 PM
Ezeltje,

This is most probably an old cvs tarball, you probably downloaded the wrong one.

I did a small script here and compiled it without problems:
Code: [Select]
#! /bin/bash

tar jxvf aMule-CVS-20061216.tar.bz2
cd amule-cvs/
./autogen.sh && ./configure --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --enable-amule-daemon --enable-cas --enable-amule-gui && make
cd ..

Make sure you get the right version, and always untar it to a clean directory.

Cheers!
Title: Re: undefined reference to `CPartFile::GetDlActiveTime() const'
Post by: lionel77 on December 16, 2006, 07:43:21 PM
Quote
Originally posted by phoenix
Make sure you get the right version, and always untar it to a clean directory.
I can wholeheartedly agree with this point. "make clean" should really be called "make sorta clean". I once wasted 2h on trying to pin down a compilation problem, when the issue was just some leftover-junk that "make clean" did not take care of.
Title: Re: undefined reference to `CPartFile::GetDlActiveTime() const'
Post by: Ezeltje on December 16, 2006, 08:13:46 PM
Thanks, it works now. I unpacked the right tarball but the directory was "pre-owned".  ;)
Title: Re: undefined reference to `CPartFile::GetDlActiveTime() const'
Post by: Kry on December 17, 2006, 06:16:03 PM
Quote
Originally posted by lionel77
Quote
Originally posted by phoenix
Make sure you get the right version, and always untar it to a clean directory.
I can wholeheartedly agree with this point. "make clean" should really be called "make sorta clean". I once wasted 2h on trying to pin down a compilation problem, when the issue was just some leftover-junk that "make clean" did not take care of.

Welcome to the wonderful world of MAKE DISTCLEAN!