SVN 2093 - still wont build

Still have a problem building from SVN.
It was described previously here:
http://moc.daper.net/node/352
I also try to build with --without-sidplay2 but got the same error.
hiben, is it possible to fix it?
+ test -f Makefile
+ autopoint -f
+ aclocal -I m4
/usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
/usr/share/aclocal/smpeg.m4:13: run info '(automake)Extending aclocal'
/usr/share/aclocal/smpeg.m4:13: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
+ autoheader
+ automake -W all -a
/usr/share/automake-1.10/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am: The usual way to define `am__fastdepCXX' is to add `AC_PROG_CXX'
/usr/share/automake-1.10/am/depend2.am: to `configure.in' and run `aclocal' and `autoconf' again.
decoder_plugins/sidplay2/Makefile.am: C++ source seen but `CXX' is undefined
decoder_plugins/sidplay2/Makefile.am: The usual way to define `CXX' is to add `AC_PROG_CXX'
decoder_plugins/sidplay2/Makefile.am: to `configure.in' and run `autoconf' again.
+ '[' 1 '!=' 0 ']'
+ cat
If you see errors it maight be necassary to install additional packages like
autoconf >= 2.60
automake >= 1.9
libltdl (libltdl3-dev debian package)
and all -devel packages mentioned in the README file

I still can't reproduce this error...
This is my setup (in a virtual environment):
Arch Linux (Archlinux-i686-2007.08-2), Kernel 2.6.22-ARCH, autoconf 2.61, autoheader 2.61, automake 1.10, autopoint 0.17

I'll try to match your system if you can give me more information...

If you do not need the sidplay decoder you could try the following:
Take a fresh checkout of moc (or clean generated files)
In the file configure.in delete line 589 (decoder_plugins/sidplay2/Makefile)
Run autogen.sh

This should just rip out the sidplay2 decoder of the whole process.

Alternativly you could try this:
Again fresh checkout.
In configure.in below line 10 (AC_PROG_CC) add the line:
AC_PROG_CXX

Maybe this does the trick. It does not change anything for me here...

I would really like to fix this problem but I just don't see where it comes from... :-|

Thahks for a fast reply. After removing sidplay from building I've got the same old error:
make[2]: Entering directory `/home/storm/builds/cvs-svn/moc-svn/src/decoder_plugins'<br /> Making all in mp3<br /> make[3]: Entering directory `/home/storm/builds/cvs-svn/moc-svn/src/decoder_plugins/mp3'<br /> /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -march=686 -mtune=generic -O2 -pipe -Wall -W -I/usr/include/alsa -g -MT libmp3_decoder_la-mp3.lo -MD -MP -MF .deps/libmp3_decoder_la-mp3.Tpo -c -o libmp3_decoder_la-mp3.lo `test -f 'mp3.c' || echo './'`mp3.c<br /> ../../libtool: line 760: X--tag=CC: command not found<br /> ../../libtool: line 793: libtool: ignoring unknown tag : command not found<br /> ../../libtool: line 760: X--mode=compile: command not found<br /> ../../libtool: line 910: *** Warning: inferring the mode of operation is deprecated.: command not found<br /> ../../libtool: line 911: *** Future versions of Libtool will require -mode=MODE be specified.: command not found<br /> ../../libtool: line 1054: Xgcc: command not found<br /> ../../libtool: line 1054: X-DHAVE_CONFIG_H: command not found<br /> ../../libtool: line 1054: X-I.: command not found<br /> ../../libtool: line 1054: X-I../..: No such file or directory<br /> ../../libtool: line 1054: X-I../..: No such file or directory<br /> ../../libtool: line 1054: X-march=686: command not found<br /> ../../libtool: line 1054: X-mtune=generic: command not found<br /> ../../libtool: line 1054: X-O2: command not found<br /> ../../libtool: line 1054: X-pipe: command not found<br /> ../../libtool: line 1054: X-Wall: command not found<br /> ../../libtool: line 1054: X-W: command not found<br /> ../../libtool: line 1054: X-I/usr/include/alsa: No such file or directory<br /> ../../libtool: line 1054: X-g: command not found<br /> ../../libtool: line 1054: X-MT: command not found<br /> ../../libtool: line 1054: Xlibmp3_decoder_la-mp3.lo: command not found<br /> ../../libtool: line 1054: X-MD: command not found<br /> ../../libtool: line 1054: X-MP: command not found<br /> ../../libtool: line 1054: X-MF: command not found<br /> ../../libtool: line 1054: X.deps/libmp3_decoder_la-mp3.Tpo: No such file or directory<br /> ../../libtool: line 1054: X-c: command not found<br /> ../../libtool: line 1102: Xlibmp3_decoder_la-mp3.lo: command not found<br /> ../../libtool: line 1107: libtool: compile: cannot determine name of library object from `': command not found<br /> make[3]: *** [libmp3_decoder_la-mp3.lo] Ошибка 1<br /> make[3]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/decoder_plugins/mp3'<br /> make[2]: *** [all-recursive] Ошибка 1<br /> make[2]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/decoder_plugins'<br /> make[1]: *** [all-recursive] Ошибка 1<br /> make[1]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src'
Adding AC_PROG_CXX does nothing...
kernel 2.6.25.10
autoconf, autoheader 2.62
automake 1.10.1
autopoint 0.17

Just another wild guess:
I had some trouble once with my local libtool disagreeing with some files from moc.
To solve it, I had to run the following command in mocs directory:
libtoolize --copy --force

And then the autogen.sh script.
I am no expert on this and sometimes I had to run 'libtoolize --copy --force' again or 'aclocal -Im4' to get everything running.

Maybe something works for you...

Well, now I have this:

gcc -DHAVE_CONFIG_H -I. -DSYSTEM_THEMES_DIR=\"/usr/share/moc/themes\" -DPLUGIN_DIR=\"/usr/lib/moc/decoder_plugins\" -DLOCALEDIR=\"/usr/share/locale\" -march=686 -mtune=generic -O2 -pipe -Wall -W -I/usr/include/alsa -g -MT ltdl.o -MD -MP -MF .deps/ltdl.Tpo -c -o ltdl.o ltdl.c<br /> ltdl.c:318:1: warning: "strchr" redefined<br /> In file included from /usr/include/string.h:423,<br /> from ltdl.c:51:<br /> /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition<br /> ltdl.c:863: error: ‘LTDL_OBJDIR’ undeclared here (not in a function)<br /> ltdl.c: In function ‘sys_dl_open’:<br /> ltdl.c:1104: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘sys_dl_close’:<br /> ltdl.c:1119: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘sys_dl_sym’:<br /> ltdl.c:1135: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘presym_init’:<br /> ltdl.c:1948: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘presym_exit’:<br /> ltdl.c:1989: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘presym_open’:<br /> ltdl.c:2035: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘presym_close’:<br /> ltdl.c:2085: warning: unused parameter ‘loader_data’<br /> ltdl.c: In function ‘presym_sym’:<br /> ltdl.c:2095: warning: unused parameter ‘loader_data’<br /> ltdl.c: At top level:<br /> ltdl.c:2150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br /> ltdl.c: In function ‘tryall_dlopen_module’:<br /> ltdl.c:2485: warning: implicit declaration of function ‘sprintf’<br /> ltdl.c:2485: warning: incompatible implicit declaration of built-in function ‘sprintf’<br /> ltdl.c: In function ‘foreach_dirinpath’:<br /> ltdl.c:2684: warning: comparison between signed and unsigned<br /> ltdl.c:2693: warning: comparison between signed and unsigned<br /> ltdl.c: In function ‘find_file_callback’:<br /> ltdl.c:2730: error: ‘FILE’ undeclared (first use in this function)<br /> ltdl.c:2730: error: (Each undeclared identifier is reported only once<br /> ltdl.c:2730: error: for each function it appears in.)<br /> ltdl.c:2730: error: ‘pfile’ undeclared (first use in this function)<br /> ltdl.c:2730: error: invalid operands to binary * (have ‘const char *’ and ‘int’)<br /> ltdl.c:2730: error: expected expression before ‘)’ token<br /> ltdl.c:2730: error: invalid operands to binary * (have ‘const char *’ and ‘int’)<br /> ltdl.c:2730: warning: statement with no effect<br /> ltdl.c:2737: warning: implicit declaration of function ‘fopen’<br /> ltdl.c:2737: error: assignment of read-only location ‘*(const char *)&amp;<erroneous-expression>’<br /> ltdl.c:2727: warning: unused parameter ‘data2’<br /> ltdl.c: At top level:<br /> ltdl.c:2752: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br /> ltdl.c:2757: error: expected identifier or ‘(’ before ‘{’ token<br /> ltdl.c: In function ‘find_handle_callback’:<br /> ltdl.c:2769: warning: unused parameter ‘ignored’<br /> ltdl.c: In function ‘load_deplibs’:<br /> ltdl.c:2807: warning: unused parameter ‘deplibs’<br /> ltdl.c: In function ‘try_dlopen’:<br /> ltdl.c:3113: error: ‘FILE’ undeclared (first use in this function)<br /> ltdl.c:3113: error: ‘file’ undeclared (first use in this function)<br /> ltdl.c:3113: error: invalid operands to binary * (have ‘const char *’ and ‘const char *’)<br /> ltdl.c:3113: warning: statement with no effect<br /> ltdl.c:3137: warning: comparison between signed and unsigned<br /> ltdl.c:3139: warning: implicit declaration of function ‘isalnum’<br /> ltdl.c:3162: warning: implicit declaration of function ‘find_file’<br /> ltdl.c:3162: warning: statement with no effect<br /> ltdl.c:3169: warning: statement with no effect<br /> ltdl.c:3189: warning: statement with no effect<br /> ltdl.c:3205: warning: implicit declaration of function ‘fclose’<br /> ltdl.c:3211: warning: implicit declaration of function ‘feof’<br /> ltdl.c:3213: warning: implicit declaration of function ‘fgets’<br /> ltdl.c: In function ‘lt_dlopenext’:<br /> ltdl.c:3473: warning: the address of ‘archive_ext’ will always evaluate as ‘true’<br /> ltdl.c: In function ‘lt_dlpath_insertdir’:<br /> ltdl.c:3989: warning: comparison between signed and unsigned<br /> make[2]: *** [ltdl.o] Error 1<br /> make[2]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/moc-build'<br /> make[1]: *** [all-recursive] Error 1<br /> make[1]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/moc-build'<br /> make: *** [all] Error 2

Hmm... again not sure on this but:
Try copying the 'ltdl.c' and 'ltdl.h' files from your system into mocs source. On my system (Gentoo) they can be found in '/usr/share/libtool/libltdl/'.

For me, the ltdl files from mocs repository are working but maybe there is some incompatibility...

Got same problem, solved that way:
- clean checkout from svn
- using own patch, very similar to first posted one: http://pastebin.ca/1071372
- delete ltdl.c and ltdl.h from MOC sources (to force including system ones)
- run ./autogen.sh
- do NOT run libtoolize
- configure as usual and AFTER that copy system libtool (eg. /usr/bin/libtool) to MOC source directory, replacing those created by configure script
- make
It should do the trick with build, but I spotted a deadlock somewhere 3-4 seconds after starting MOC (maybe just something in my system), still tracing that.
updated: emmm, looks like deadlock when loading modules, probably caused by the new libtool (binary incompatible with prev. versions afaik).

You posted versions of various autobuild utilities, but what are your versions of libtool?

[fazi@F-NTB ~]$ libtool --help
[cutted]
host-triplet: i686-pld-linux-gnu
shell: /bin/sh
compiler: i686-pld-linux-gcc
compiler flags: -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-2 -g2
linker: /usr/bin/ld (gnu? yes)
libtool: (GNU libtool) 2.2.4
automake: automake (GNU automake) 1.10.1
autoconf: autoconf (GNU Autoconf) 2.62

[fazi@F-NTB ~]$ gcc --version
gcc (PLD-Linux) 4.3.1 20080623 (release)

I think the build problem is with newest version of libtool.

Thanks too much and all the blessings to you :)
Now everything is ok. Yes I think it is new libtool problem.
<br /> host-triplet: i686-pc-linux-gnu<br /> shell: /bin/sh<br /> compiler: gcc<br /> compiler flags: -march=i686 -mtune=generic -O2 -pipe<br /> linker: /usr/bin/ld (gnu? yes)<br /> libtool: (GNU libtool) 2.2.4<br /> automake: automake (GNU automake) 1.10.1<br /> autoconf: autoconf (GNU Autoconf) 2.62</p> <p> gcc (GCC) 4.3.1 20080626 (prerelease)

diff -up ./Makefile.am.orig ./Makefile.am
--- ./Makefile.am.orig 2008-07-12 02:29:45.000000000 -0300
+++ ./Makefile.am 2008-07-12 02:38:16.474980460 -0300
@@ -41,8 +41,6 @@ mocp_SOURCES = log.c \
themes.h \
keys.c \
keys.h \
- ltdl.c \
- ltdl.h \
io.c \
io.h \
compat.c \
@@ -72,7 +70,7 @@ EXTRA_mocp_SOURCES = gnugetopt.h \
jack.h \
gettext.h
man_MANS = mocp.1
-mocp_LDADD = @EXTRA_OBJS@ @LIBINTL@
+mocp_LDADD = @EXTRA_OBJS@ @LIBINTL@ -lltdl
mocp_DEPENDENCIES = @EXTRA_OBJS@
mocp_LDFLAGS = @EXTRA_LIBS@ $(RCC_LIBS)
EXTRA_DIST = config.example mocp.1 THANKS keymap.example Doxyfile \
diff -up ./configure.in.orig ./configure.in
--- ./configure.in.orig 2008-07-12 02:29:45.000000000 -0300
+++ ./configure.in 2008-07-12 02:32:23.870980351 -0300
@@ -8,6 +8,7 @@ AC_PREREQ(2.59)

AC_CANONICAL_HOST
AC_PROG_CC
+AC_PROG_CXX
AC_PROG_INSTALL

AC_PROG_AWK

Try this Patch, and before autogen.sh, use "libtoolize -f"

There's the PKGBUILD for it, just for reference:
http://aur.archlinux.org/packages.php?ID=12793

I just tested the 'libtool-theory' on my machine:

Updating from 1.5.26 to 2.2.4 results in the same error.

The patch also works for me.

I would vote for applying this patch and to the repository. Are there any side-effects to concern ?