[Alsaplayer-devel]configuring the bootstrap script

Tim Beamish tbeamish@cs.ubc.ca
Mon, 17 Jun 2002 11:12:09 -0700 (PDT)


Hi Andy,

I upgraded all the autoconf stuff to match your versions. When I run
./bootstrap, this is what I get:

------------------------------------------------------
[root@baker alsaplayer]# ./bootstrap
If you see some warnings about cross-compiling, don't worry; this is
normal.
Setting ACLOCAL_INCLUDE to ' -I /usr/local/share/aclocal'
running aclocal -I /usr/local/share/aclocal ...
aclocal: /usr/local/share/aclocal/ccstdc.m4: 23: duplicated macro
`AM_PROG_CC_STDC'
aclocal: /usr/local/share/aclocal/cond.m4: 3: duplicated macro
`AM_CONDITIONAL'
aclocal: /usr/local/share/aclocal/dmalloc.m4: 8: duplicated macro
`AM_WITH_DMALLOC'
aclocal: /usr/local/share/aclocal/error.m4: 4: duplicated macro
`AM_FUNC_ERROR_AT_LINE'
aclocal: /usr/local/share/aclocal/header.m4: 3: duplicated macro
`AM_CONFIG_HEADER'
aclocal: /usr/local/share/aclocal/init.m4: 10: duplicated macro
`AM_INIT_AUTOMAKE'
aclocal: /usr/local/share/aclocal/lex.m4: 6: duplicated macro
`AM_PROG_LEX'
aclocal: /usr/local/share/aclocal/libtool.m4: 27: duplicated macro
`AC_PROG_LIBTOOL'
aclocal: /usr/local/share/aclocal/libtool.m4: 41: duplicated macro
`AC_LIBTOOL_SETUP'
aclocal: /usr/local/share/aclocal/libtool.m4: 154: duplicated macro
`AC_LIBTOOL_HEADER_ASSERT'
aclocal: /usr/local/share/aclocal/libtool.m4: 175: duplicated macro
`_LT_AC_CHECK_DLFCN'
aclocal: /usr/local/share/aclocal/libtool.m4: 181: duplicated macro
`AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE'
aclocal: /usr/local/share/aclocal/libtool.m4: 364: duplicated macro
`_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR'
aclocal: /usr/local/share/aclocal/libtool.m4: 381: duplicated macro
`_LT_AC_PROG_ECHO_BACKSLASH'
aclocal: /usr/local/share/aclocal/libtool.m4: 538: duplicated macro
`_LT_AC_TRY_DLOPEN_SELF'
aclocal: /usr/local/share/aclocal/libtool.m4: 625: duplicated macro
`AC_LIBTOOL_DLOPEN_SELF'
aclocal: /usr/local/share/aclocal/libtool.m4: 720: duplicated macro
`_LT_AC_LTCONFIG_HACK'
aclocal: /usr/local/share/aclocal/libtool.m4: 2983: duplicated macro
`AC_LIBTOOL_DLOPEN'
aclocal: /usr/local/share/aclocal/libtool.m4: 2986: duplicated macro
`AC_LIBTOOL_WIN32_DLL'
aclocal: /usr/local/share/aclocal/libtool.m4: 2992: duplicated macro
`AC_ENABLE_SHARED'
aclocal: /usr/local/share/aclocal/libtool.m4: 3018: duplicated macro
`AC_DISABLE_SHARED'
aclocal: /usr/local/share/aclocal/libtool.m4: 3026: duplicated macro
`AC_ENABLE_STATIC'
aclocal: /usr/local/share/aclocal/libtool.m4: 3052: duplicated macro
`AC_DISABLE_STATIC'
aclocal: /usr/local/share/aclocal/libtool.m4: 3061: duplicated macro
`AC_ENABLE_FAST_INSTALL'
aclocal: /usr/local/share/aclocal/libtool.m4: 3087: duplicated macro
`AC_DISABLE_FAST_INSTALL'
aclocal: /usr/local/share/aclocal/libtool.m4: 3095: duplicated macro
`AC_LIBTOOL_PICMODE'
aclocal: /usr/local/share/aclocal/libtool.m4: 3101: duplicated macro
`AC_PATH_TOOL_PREFIX'
aclocal: /usr/local/share/aclocal/libtool.m4: 3163: duplicated macro
`AC_PATH_MAGIC'
aclocal: /usr/local/share/aclocal/libtool.m4: 3177: duplicated macro
`AC_PROG_LD'
aclocal: /usr/local/share/aclocal/libtool.m4: 3253: duplicated macro
`AC_PROG_LD_GNU'
aclocal: /usr/local/share/aclocal/libtool.m4: 3266: duplicated macro
`AC_PROG_LD_RELOAD_FLAG'
aclocal: /usr/local/share/aclocal/libtool.m4: 3275: duplicated macro
`AC_DEPLIBS_CHECK_METHOD'
aclocal: /usr/local/share/aclocal/libtool.m4: 3456: duplicated macro
`AC_PROG_NM'
aclocal: /usr/local/share/aclocal/libtool.m4: 3493: duplicated macro
`AC_CHECK_LIBM'
aclocal: /usr/local/share/aclocal/libtool.m4: 3520: duplicated macro
`AC_LIBLTDL_CONVENIENCE'
aclocal: /usr/local/share/aclocal/libtool.m4: 3542: duplicated macro
`AC_LIBLTDL_INSTALLABLE'
aclocal: /usr/local/share/aclocal/libtool.m4: 3564: duplicated macro
`AM_PROG_LIBTOOL'
aclocal: /usr/local/share/aclocal/libtool.m4: 3565: duplicated macro
`AM_ENABLE_SHARED'
aclocal: /usr/local/share/aclocal/libtool.m4: 3566: duplicated macro
`AM_ENABLE_STATIC'
aclocal: /usr/local/share/aclocal/libtool.m4: 3567: duplicated macro
`AM_DISABLE_SHARED'
aclocal: /usr/local/share/aclocal/libtool.m4: 3568: duplicated macro
`AM_DISABLE_STATIC'
aclocal: /usr/local/share/aclocal/libtool.m4: 3569: duplicated macro
`AM_PROG_LD'
aclocal: /usr/local/share/aclocal/libtool.m4: 3570: duplicated macro
`AM_PROG_NM'
aclocal: /usr/local/share/aclocal/lispdir.m4: 8: duplicated macro
`AM_PATH_LISPDIR'
aclocal: /usr/local/share/aclocal/ltdl.m4: 29: duplicated macro
`AC_LIB_LTDL'
aclocal: /usr/local/share/aclocal/ltdl.m4: 62: duplicated macro
`AC_LTDL_ENABLE_INSTALL'
aclocal: /usr/local/share/aclocal/ltdl.m4: 72: duplicated macro
`AC_LTDL_SYS_DLOPEN_DEPLIBS'
aclocal: /usr/local/share/aclocal/ltdl.m4: 101: duplicated macro
`AC_LTDL_SHLIBEXT'
aclocal: /usr/local/share/aclocal/ltdl.m4: 121: duplicated macro
`AC_LTDL_SHLIBPATH'
aclocal: /usr/local/share/aclocal/ltdl.m4: 133: duplicated macro
`AC_LTDL_SYSSEARCHPATH'
aclocal: /usr/local/share/aclocal/ltdl.m4: 157: duplicated macro
`AC_LTDL_OBJDIR'
aclocal: /usr/local/share/aclocal/ltdl.m4: 179: duplicated macro
`AC_LTDL_DLPREOPEN'
aclocal: /usr/local/share/aclocal/ltdl.m4: 197: duplicated macro
`AC_LTDL_DLLIB'
aclocal: /usr/local/share/aclocal/ltdl.m4: 228: duplicated macro
`AC_LTDL_SYMBOL_USCORE'
aclocal: /usr/local/share/aclocal/ltdl.m4: 267: duplicated macro
`AC_LTDL_DLSYM_USCORE'
aclocal: /usr/local/share/aclocal/ltdl.m4: 316: duplicated macro
`AC_LTDL_FUNC_ARGZ'
aclocal: /usr/local/share/aclocal/maintainer.m4: 6: duplicated macro
`AM_MAINTAINER_MODE'
aclocal: /usr/local/share/aclocal/missing.m4: 6: duplicated macro
`AM_MISSING_PROG'
aclocal: /usr/local/share/aclocal/mktime.m4: 6: duplicated macro
`AM_FUNC_MKTIME'
aclocal: /usr/local/share/aclocal/multi.m4: 4: duplicated macro
`AM_ENABLE_MULTILIB'
aclocal: /usr/local/share/aclocal/obstack.m4: 4: duplicated macro
`AM_FUNC_OBSTACK'
aclocal: /usr/local/share/aclocal/protos.m4: 8: duplicated macro
`AM_C_PROTOTYPES'
aclocal: /usr/local/share/aclocal/ptrdiff.m4: 5: duplicated macro
`AM_TYPE_PTRDIFF_T'
aclocal: /usr/local/share/aclocal/regex.m4: 17: duplicated macro
`AM_WITH_REGEX'
aclocal: /usr/local/share/aclocal/sanity.m4: 5: duplicated macro
`AM_SANITY_CHECK'
aclocal: /usr/local/share/aclocal/strtod.m4: 30: duplicated macro
`AM_FUNC_STRTOD'
aclocal: /usr/local/share/aclocal/termios.m4: 5: duplicated macro
`AM_SYS_POSIX_TERMIOS'
aclocal: /usr/local/share/aclocal/winsz.m4: 5: duplicated macro
`AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL'
aclocal: both `configure.ac' and `configure.in' present: ignoring
`configure.in'
aclocal: configure.ac: 65: macro `AM_PATH_GLIB' not found in library
failed to run aclocal -I /usr/local/share/aclocal!
---------------------------------------------------

If I continue with the build, nothing complains and I can start alsaplayer
but again, there is music but no gui.

I did an ldd and found this:

-------------------------------
[root@baker alsaplayer]# ldd `which alsaplayer`
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40027000)
        libdl.so.2 => /lib/libdl.so.2 (0x4003c000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40040000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40063000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-------------------------------

There is no link to:
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40040000)
like there should be. This only happens when I use a gcc other than 2.96.
With 2.96 (the broken gcc), I get this link...but still no GUI.

Tim



On Sat, 15 Jun 2002, Andy Lo A Foe wrote:

> On Fri, Jun 14, 2002 at 01:01:53PM -0700, Tim Beamish wrote:
> > Okay, I'm still trying to get the latest alsaplayer up and running. I've
> > done a cvs update on alsaplayer so I have a fresh copy of the code. I
> > upgraded autoconf to 2.53. I am trying to compile with gcc 2.95.2.
> >
> > When I run ./bootstrap it fails on this code:
> > ----------------------
> > 	if [ "$AC_VER_MINOR" -lt "50" ]; then
> > 		if [ ! -e configure.in ]; then
> > 			ln -s configure.ac configure.in
> > 		fi
> > 		echo "If you see some warnings about cross-compiling, don't worry; this is normal."
> > 	else
> > 		rm -f configure.in
> > 	fi
> > ----------------------
> >
> > and removes configure.in. Then when it gets to
> > run_cmd aclocal $ACLOCAL_INCLUDE
> > it complains that configure.in doesn't exist.
>
> Which version of aclocal do you use?
> (I have 1.4-p4)
>
> > checking for ranlib... ranlib
> > checking for ld used by GCC... /usr/bin/ld
> > checking if the linker (/usr/bin/ld) is GNU ld... yes
> > checking for BSD-compatible nm... /usr/bin/nm -B
> > ltconfig: you must specify a host type if you use `--no-verify'
> > Try `ltconfig --help' for more information.
> > configure: error: libtool configure failed
>
> I suspect this is also the result of some mismatch in the build tools.
> Are you handupgrading autoconf/aclocal, etc?
> The list of versions I have installed on my box follows. I can verify
> that this combination works:
>
> aclocal (GNU automake) 1.4-p4
> autoheader (GNU Autoconf) 2.53
> libtoolize (GNU libtool) 1.4.2a
> automake (GNU automake) 1.4-p4
> autoconf (GNU Autoconf) 2.53
>
> Can you test it with the above versions?
>
> Thanks,
> Andy
>