LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with autoconf: undefined macro errors (https://www.linuxquestions.org/questions/linux-software-2/help-with-autoconf-undefined-macro-errors-742292/)

ACiD GRiM 07-23-2009 01:48 PM

Help with autoconf: undefined macro errors
 
I'm trying to compile fuppes, but I keep getting a string of errors when I tried to compile SVN 630-640.

Code:

lib/SharedConfig.cpp:41:24: error: ../version.h: No such file or directory
lib/SharedConfig.cpp:150:3: warning: #warning todo: system checks (e.g. XP firewall)
lib/SharedConfig.cpp:605:2: warning: #warning todo
lib/SharedConfig.cpp: In member function ‘std::string CSharedConfig::GetAppVersion()’:
lib/SharedConfig.cpp:240: error: ‘FUPPES_VERSION’ was not declared in this scope
make[2]: *** [SharedConfig.lo] Error 1
make[2]: Leaving directory `/root/fuppes-0.640/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/fuppes-0.640/src'
make: *** [all-recursive] Error 1

but if I do autoreconf -vfi, like this page suggests I get this

Code:

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
configure.ac:100: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_PREPARE_PREFIX is required by...
m4/iconv.m4:18: AM_ICONV_LINKFLAGS_BODY is expanded from...
configure.ac:100: AM_ICONV_LINKFLAGS_BODY is required by...
m4/iconv.m4:152: AM_ICONV_LINK is expanded from...
m4/iconv.m4:180: AM_ICONV is expanded from...
configure.ac:100: the top level
configure.ac:100: warning: AC_LIB_RPATH is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_RPATH is required by...
autoreconf: configure.ac: tracing
configure.ac:100: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_PREPARE_PREFIX is required by...
m4/iconv.m4:18: AM_ICONV_LINKFLAGS_BODY is expanded from...
configure.ac:100: AM_ICONV_LINKFLAGS_BODY is required by...
m4/iconv.m4:152: AM_ICONV_LINK is expanded from...
m4/iconv.m4:180: AM_ICONV is expanded from...
configure.ac:100: the top level
configure.ac:100: warning: AC_LIB_RPATH is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_RPATH is required by...
autoreconf: running: libtoolize --copy --force
You should update your `aclocal.m4' by running aclocal.
configure.ac:100: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_PREPARE_PREFIX is required by...
m4/iconv.m4:18: AM_ICONV_LINKFLAGS_BODY is expanded from...
configure.ac:100: AM_ICONV_LINKFLAGS_BODY is required by...
m4/iconv.m4:152: AM_ICONV_LINK is expanded from...
m4/iconv.m4:180: AM_ICONV is expanded from...
configure.ac:100: the top level
configure.ac:100: warning: AC_LIB_RPATH is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_RPATH is required by...
autoreconf: running: /usr/bin/autoconf --force
configure.ac:100: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_PREPARE_PREFIX is required by...
m4/iconv.m4:18: AM_ICONV_LINKFLAGS_BODY is expanded from...
configure.ac:100: AM_ICONV_LINKFLAGS_BODY is required by...
m4/iconv.m4:152: AM_ICONV_LINK is expanded from...
m4/iconv.m4:180: AM_ICONV is expanded from...
configure.ac:100: the top level
configure.ac:100: warning: AC_LIB_RPATH is m4_require'd but is not m4_defun'd
configure.ac:100: AC_LIB_RPATH is required by...
configure:20866: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:20867: error: possibly undefined macro: AC_LIB_RPATH
configure:20872: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY
configure:20880: error: possibly undefined macro: AC_LIB_APPENDTOVAR
autoreconf: /usr/bin/autoconf failed with exit status: 1

And the second line says it isn't using gettext, but i DO have gettext...

Thanks for any replies

knudfl 07-23-2009 06:08 PM

'fuppes-0.640'
http://sourceforge.net/projects/fupp...ar.gz/download
> > fuppes-0.640.tar.gz
And no need to run 'autoreconf' , it's only for files downloaded
with 'svn' : no 'configure' script is included.

I guess, you will have to delete fuppes-0.640/
and start from scratch and do :
./configure && make , # make install
.....

ACiD GRiM 07-24-2009 07:12 PM

I've redownloaded the 640 tar, but "./configure; make" still ends with

Code:

lib/SharedConfig.cpp:41:24: error: ../version.h: No such file or directory
lib/SharedConfig.cpp:150:3: warning: #warning todo: system checks (e.g. XP firewall)
lib/SharedConfig.cpp:605:2: warning: #warning todo
lib/SharedConfig.cpp: In member function ‘std::string CSharedConfig::GetAppVersion()’:
lib/SharedConfig.cpp:240: error: ‘FUPPES_VERSION’ was not declared in this scope
make[2]: *** [SharedConfig.lo] Error 1
make[2]: Leaving directory `/root/fuppes-0.640/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/fuppes-0.640/src'
make: *** [all-recursive] Error 1


knudfl 07-25-2009 04:26 AM

Well, I guessed from your other posts,
that you were using Fedora 10.
Is 'libtool' installed ? # yum install libtool .
'fuppes' has an internal libtool, which can have
a bug.

Version 640 makes no errors on a clean install of Fedora 10.
( Other versions of fuppes requires editing of some files,
before you can compile it. May be the the same for this one,
if the OS is different, or some unstable updates are used.)

So which OS are you using ? ?
Must be told every time, a question is asked.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....

ACiD GRiM 07-25-2009 11:12 PM

Sorry, I had it in my signature at one point but I must have cleared it accidentely.

I'm actually using Centos 5.3 and libtool was installed. I can't really try compiling on my Fedora client, because it's 64bit.

knudfl 07-26-2009 05:25 AM

CentOS 5.x., 'rpm -qa | grep autoconf' :
autoconf213-2.13-12.1 , autoconf-2.63-1.fc10
wget http://download.fedora.redhat.com/pu...c10.noarch.rpm
> > autoconf-2.63-1.fc10.noarch.rpm

I installed the Fedora 10 version last year, probably
for good reasons. It's just some scripts and will fit
in nicely, and has worked with everything compiled
since then. Also fuppes-640.
.....
Good luck !
.....


All times are GMT -5. The time now is 03:44 AM.