when trying to compile "lftp" on gentoo version 1.2 I get this compile error: ./.libs/cmd-mirror.a(MirrorJob.o): In function `cmd_mirror(CmdExec *)': MirrorJob.o(.text+0x2dfe): undefined reference to `PatternSet::Regex::Error(void)' MirrorJob.o(.text+0x2e16): undefined reference to `PatternSet::Regex::ErrorText(void)' MirrorJob.o(.text+0x35f2): undefined reference to `MirrorJob::SetFlags(int, int)' MirrorJob.o(.text+0x3608): undefined reference to `MirrorJob::SetVerbose(int)' MirrorJob.o(.text+0x361e): undefined reference to `MirrorJob::SetExclude(PatternSet *)' MirrorJob.o(.text+0x3654): undefined reference to `MirrorJob::UseCache(bool)' MirrorJob.o(.text+0x366c): undefined reference to `MirrorJob::RemoveSourceFiles(void)' MirrorJob.o(.text+0x36a2): undefined reference to `MirrorJob::SetParallel(int)' ./.libs/cmd-sleep.a(SleepJob.o): In function `SleepJob::Do(void)': SleepJob.o(.text+0x1e3): undefined reference to `SMTask::TimeoutS(int)' SleepJob.o(.text+0x27e): undefined reference to `Job::SetParentFg(Job *, bool)' SleepJob.o(.text+0x378): undefined reference to `SMTask::TimeoutS(int)' ./.libs/cmd-sleep.a(SleepJob.o): In function `cmd_repeat(CmdExec *)': SleepJob.o(.text+0x6e5): undefined reference to `SleepJob::Repeat(void)' collect2: ld returned 1 exit status make[1]: *** [lftp] Error 1 make[1]: Leaving directory `/var/tmp/portage/lftp-2.6.2/work/lftp-2.6.2/src' make: *** [all-recursive] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 47, Exitcode 2 !!! compile problem Thanks for any help.
I have compile and installed lftp on both gcc2 and gcc3 based systems without a problem What are your CFLAGS set to?
After checking my "/etc/make.conf" and "make.conf.build" I found that CFLAGS were not set in "make.conf", but were set in "make.conf.build". Thanks for the tip. I'm going to install gentoo on another box to see if this is my mistake or the installers mistake.
Are you still working at this? Let me know what's up.
Seems to only have happened on my install. I think it's fixed. Thanks.