Cannot build SVN 2078

Got this error:

/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

2.5.0-alpha3 compiles without problems. ArchLinux, libtool 2.2 WITH libltdl.

Add missing AC_PROG_CXX and use system LTDL.

I've just patch moc in gentoo with following patch,

diff -ur moc-2.5.0-alpha3.orig/configure.in moc-2.5.0-alpha3/configure.in
--- moc-2.5.0-alpha3.orig/configure.in 2008-02-26 00:37:30.000000000 +0200
+++ moc-2.5.0-alpha3/configure.in 2008-05-08 21:17:21.000000000 +0300
@@ -8,6 +8,7 @@

AC_CANONICAL_HOST
AC_PROG_CC
+AC_PROG_CXX
AC_PROG_INSTALL

AC_PROG_AWK
diff -ur moc-2.5.0-alpha3.orig/Makefile.am moc-2.5.0-alpha3/Makefile.am
--- moc-2.5.0-alpha3.orig/Makefile.am 2007-12-15 09:38:57.000000000 +0200
+++ moc-2.5.0-alpha3/Makefile.am 2008-05-08 21:20:59.000000000 +0300
@@ -40,8 +40,6 @@
themes.h \
keys.c \
keys.h \
- ltdl.c \
- ltdl.h \
io.c \
io.h \
compat.c \
@@ -70,7 +68,7 @@
jack.c \
jack.h
man_MANS = mocp.1
-mocp_LDADD = @EXTRA_OBJS@
+mocp_LDADD = @EXTRA_OBJS@ -lltdl
mocp_DEPENDENCIES = @EXTRA_OBJS@
mocp_LDFLAGS = @EXTRA_LIBS@ $(RCC_LIBS)
EXTRA_DIST = config.example mocp.1 THANKS keymap.example Doxyfile \

Continued... Add AC_PROG_CXX

Continued...
Add AC_PROG_CXX to configure.in. Autogen finished ok. Manually set LIBTOOL var to '/usr/bin/libtool' instead of '$(SHELL) $(top_builddir)/libtool' which was set by script.
Compilation started and continues until this:

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

I'm not a coder but it seems like libtool issues, no?

The SID-decoder is AFAIK the

The SID-decoder is AFAIK the only component that requires a C++ compiler (I created this decoder). It seems like something is missing to setup the compilation on your system - I've never seen that error before.

I'll try to reproduce this with ArchLinux and find a solution.

I was not able to build

I was not able to build revision 2078 due to problems with the native language support but I was not able to reproduce the described error. The language-problems seem to be fixed in revision 2081 and I had no problems building this revison (with and without sid decoder) in ArchLinux.
Could you try rev 2081 and see if it works for you ?

Still without success...

Still without success... Cannot build SVN 2081. Automake failed. I tried to remove sidplay2 libs but it doesn't change anything. Same error.

[storm@silence moc]$ ./autogen.sh
+ test -f Makefile
+ autopoint -f
+ aclocal -I m4
+ 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.
+ autoconf -W syntax
+ '[' 0 '!=' 0 ']'

Add AC_PROG_CXX to

Add AC_PROG_CXX to configure.in. Autogen and configure scripts finished ok, but when I try to make it still fails:

make[3]: Entering directory `/home/storm/builds/cvs-svn/moc-svn/src/moc-build/decoder_plugins/mp3'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..    -I../.. -g -O2 -Wall -W -I/usr/include/alsa        -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
../../libtool: line 765: X--tag=CC: command not found
../../libtool: line 798: libtool: ignoring unknown tag : command not found
../../libtool: line 765: X--mode=compile: command not found
../../libtool: line 915: *** Warning: inferring the mode of operation is deprecated.: command not found
../../libtool: line 916: *** Future versions of Libtool will require -mode=MODE be specified.: command not found
../../libtool: line 1059: Xgcc: command not found
../../libtool: line 1059: X-DHAVE_CONFIG_H: command not found
../../libtool: line 1059: X-I.: command not found
../../libtool: line 1059: X-I../..: No such file or directory
../../libtool: line 1059: X-I../..: No such file or directory
../../libtool: line 1059: X-g: command not found
../../libtool: line 1059: X-O2: command not found
../../libtool: line 1059: X-Wall: command not found
../../libtool: line 1059: X-W: command not found
../../libtool: line 1059: X-I/usr/include/alsa: No such file or directory
../../libtool: line 1059: X-MT: command not found
../../libtool: line 1059: Xlibmp3_decoder_la-mp3.lo: command not found
../../libtool: line 1059: X-MD: command not found
../../libtool: line 1059: X-MP: command not found
../../libtool: line 1059: X-MF: command not found
../../libtool: line 1059: X.deps/libmp3_decoder_la-mp3.Tpo: No such file or directory
../../libtool: line 1059: X-c: command not found
../../libtool: line 1107: Xlibmp3_decoder_la-mp3.lo: command not found
../../libtool: line 1112: libtool: compile: cannot determine name of library object from `': command not found
make[3]: *** [libmp3_decoder_la-mp3.lo] Error 1
make[3]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/moc-build/decoder_plugins/mp3'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/moc-build/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/storm/builds/cvs-svn/moc-svn/src/moc-build'
make: *** [all] Error 2