Opened 15 years ago

Closed 15 years ago

#22030 closed defect (fixed)

loudmouth fails to compile

Reported by: ewal@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: loudmouth

Description (last modified by blb@…)

I tried installing loudmouth, a dependency for amarok, on Snow Leopard. It failed with the following rather unspecific error message:

Error: Target org.macports.configure returned: autoreconf failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_loudmouth/work/loudmouth-1.4.3" && autoreconf --install " returned error 1
Command output: glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree.
glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:82:   `gtk-doc.make' included from here
gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:82:   `gtk-doc.make' included from here
gtk-doc.make:160: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/Makefile.am:82:   `gtk-doc.make' included from here
autoreconf: automake failed with exit status: 1

I than ran the configure script manually which gave me the following error:

checking for check - version >= 0.9.2... no
*** Could not run check test program, checking why...
*** The test program failed to compile or link. See the file config.log for
*** the exact error that occured.

I tried configuring manually with --without-check which gives another error:

./configure: line 11804: syntax error near unexpected token `1.0'
./configure: line 11804: `GTK_DOC_CHECK(1.0)'

When I comment out this line, configure manually with --without-check, set the port status to configured and run port install loudmouth again, it starts compiling and fails with:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_loudmouth/work/loudmouth-1.4.3" && /usr/bin/make -j2 all " returned error 2
Command output: libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT lm-socket.lo -MD -MP -MF .deps/lm-socket.Tpo -c lm-socket.c -o lm-socket.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT asyncns.lo -MD -MP -MF .deps/asyncns.Tpo -c asyncns.c -o asyncns.o >/dev/null 2>&1
mv -f .deps/lm-socket.Tpo .deps/lm-socket.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -I/opt/local/include   -DLM_COMPILATION -DRUNTIME_ENDIAN    -g -O2 -Wall -I/opt/local/include    -MT lm-sasl.lo -MD -MP -MF .deps/lm-sasl.Tpo -c -o lm-sasl.lo lm-sasl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT lm-sasl.lo -MD -MP -MF .deps/lm-sasl.Tpo -c lm-sasl.c  -fno-common -DPIC -o .libs/lm-sasl.o
mv -f .deps/asyncns.Tpo .deps/asyncns.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -I/opt/local/include   -DLM_COMPILATION -DRUNTIME_ENDIAN    -g -O2 -Wall -I/opt/local/include    -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c -o md5.lo md5.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT lm-sasl.lo -MD -MP -MF .deps/lm-sasl.Tpo -c lm-sasl.c -o lm-sasl.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c md5.c  -fno-common -DPIC -o .libs/md5.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c md5.c -o md5.o >/dev/null 2>&1
mv -f .deps/lm-sasl.Tpo .deps/lm-sasl.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -I/opt/local/include   -DLM_COMPILATION -DRUNTIME_ENDIAN    -g -O2 -Wall -I/opt/local/include    -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c -o base64.lo base64.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.c  -fno-common -DPIC -o .libs/base64.o
mv -f .deps/md5.Tpo .deps/md5.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -g -O2 -Wall -I/opt/local/include -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.c -o base64.o >/dev/null 2>&1
mv -f .deps/base64.Tpo .deps/base64.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -I/opt/local/include    -version-info 1:0:1 -export-symbols ./loudmouth.sym  -o libloudmouth-1.la -rpath /usr/local/lib lm-connection.lo lm-debug.lo lm-error.lo lm-message.lo lm-message-handler.lo lm-message-node.lo lm-message-queue.lo lm-misc.lo lm-parser.lo lm-sha.lo lm-ssl-generic.lo lm-ssl-base.lo lm-ssl-gnutls.lo lm-utils.lo lm-proxy.lo lm-sock.lo lm-socket.lo asyncns.lo lm-sasl.lo md5.lo base64.lo  -L/opt/local/lib -lglib-2.0 -lintl -liconv   -L/opt/local/lib -lidn   -lresolv -lresolv  -R/opt/local/lib -L/opt/local/lib -lgnutls -ltasn1  
libtool: link: sed 's,^,_,' < ./loudmouth.sym > .libs/libloudmouth-1-symbols.expsym
libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libloudmouth-1.0.dylib  .libs/lm-connection.o .libs/lm-debug.o .libs/lm-error.o .libs/lm-message.o .libs/lm-message-handler.o .libs/lm-message-node.o .libs/lm-message-queue.o .libs/lm-misc.o .libs/lm-parser.o .libs/lm-sha.o .libs/lm-ssl-generic.o .libs/lm-ssl-base.o .libs/lm-ssl-gnutls.o .libs/lm-utils.o .libs/lm-proxy.o .libs/lm-sock.o .libs/lm-socket.o .libs/asyncns.o .libs/lm-sasl.o .libs/md5.o .libs/base64.o   -L/opt/local/lib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libidn.dylib -lresolv /opt/local/lib/libgnutls.dylib -lz /opt/local/lib/libgcrypt.dylib /opt/local/lib/libgpg-error.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc /opt/local/lib/libtasn1.dylib    -framework Carbon -install_name  /usr/local/lib/libloudmouth-1.0.dylib -compatibility_version 2 -current_version 2.0 -Wl,-single_module -Wl,-exported_symbols_list,.libs/libloudmouth-1-symbols.expsym
libtool: link: dsymutil .libs/libloudmouth-1.0.dylib || :
libtool: link: (cd ".libs" && rm -f "libloudmouth-1.dylib" && ln -s "libloudmouth-1.0.dylib" "libloudmouth-1.dylib")
libtool: link: ar cru .libs/libloudmouth-1.a  lm-connection.o lm-debug.o lm-error.o lm-message.o lm-message-handler.o lm-message-node.o lm-message-queue.o lm-misc.o lm-parser.o lm-sha.o lm-ssl-generic.o lm-ssl-base.o lm-ssl-gnutls.o lm-utils.o lm-proxy.o lm-sock.o lm-socket.o asyncns.o lm-sasl.o md5.o base64.o
libtool: link: ranlib .libs/libloudmouth-1.a
libtool: link: ( cd ".libs" && rm -f "libloudmouth-1.la" && ln -s "../libloudmouth-1.la" "libloudmouth-1.la" )
Making all in docs
Making all in reference
Makefile:589: *** missing separator.  Stop.
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Now I give up, I do not see what else I can try.

Change History (6)

comment:1 Changed 15 years ago by blb@…

Description: modified (diff)
Port: loudmouth added

comment:2 Changed 15 years ago by blb@…

Description: modified (diff)

Builds fine for me (10.6.1, Xcode 3.2.1); what is the result from running the following?

$ port installed gtk-doc libtool libtool1

FYI, I updated it to not look for check in r59289.

comment:3 Changed 15 years ago by mark.gaylard@…

I had the same issue. I had to explicitly install gtk-doc then loudmouth would install.

comment:4 in reply to:  2 Changed 15 years ago by ewal@…

Replying to blb@…:

Builds fine for me (10.6.1, Xcode 3.2.1); what is the result from running the following?

$ port installed gtk-doc libtool libtool1

FYI, I updated it to not look for check in r59289.

The output is: {{{guest104:~ eggie$ port installed gtk-doc libtool libtool1 The following ports are currently installed:

libtool @2.2.6a_0 libtool @2.2.6a_0+universal (active)}}}

I will try, as suggested, to manually install gtk-doc. If that indeed fixes it, I suppose gtk-doc needs to be listed as one of loudmouth's dependencies.

comment:5 Changed 15 years ago by ewal@…

Indeed, installing gtk-doc fixed it. Strange for a library required for a KDE app that a documentation package for GTK is required...

The patch also seems to help. Thanks!

comment:6 Changed 15 years ago by blb@…

Resolution: fixed
Status: newclosed

gtk-doc added as a build dependency in r59853; it's needed because the port uses use_autoreconf which needs gtk-doc m4 files, hence gtk-doc is needed. I'm guessing once the need for autoreconf is gone, gtk-doc as a dependency can be removed.

Note: See TracTickets for help on using tickets.