I'm making a Fink package for FLAC. It all builds fine except for the xmms plugin. I'd use the pbproject, but fink users are likely to want the xmms plugin which pbxbuild does not build. Also it seems the pbproject does not build dynamic libraries. I build with: ./configure --prefix=/sw --mandir=/sw/share/man make make install DESTDIR=/tmp (to simulate building into a deb file) The xmms plugin build fails with: mkdir /tmp/sw/lib/xmms mkdir /tmp/sw/lib/xmms/Input ../../libtool-disable-static --mode=install /usr/bin/install -c libxmms-flac.la /tmp/sw/lib/xmms/Input/libxmms-flac.la libtool-disable-static: install: warning: relinking `libxmms-flac.la' cd /Users/ben/Desktop/flac-1_0_2-src_0/flac-1.0.2/src/plugin_xmms; /bin/sh ../../libtool-disable-static --mode=relink gcc -I../.. -I./include -I ../../include -Wall -W -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Winline -DFLaC__INLINE=__inline__ -g -O2 -I/sw/include -I/sw/include/xmms -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -o libxmms-flac.la -rpath /sw/lib/xmms/Input -module -avoid-version plugin.lo ../../src/libFLAC/libFLAC.la -L/sw/lib -L/sw/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lintl -lXext -lX11 -lm -lxmms ~/Desktop/flac-1_0_2-src_0/flac-1.0.2/src/plugin_xmms/.libs mv: rename libxmms-flac.so to libxmms-flac.soU: No such file or directory libtool-disable-static: install: error: relink `libxmms-flac.la' with the above command before installing it libtool-disable-static: install: warning: remember to run `libtool-disable-static --finish /sw/lib/xmms/Input' This looks like a libtool problem.. any ideas? It wants the *.so file but should it be looking for the *.lo file instead? Why does it need to relink the plugin at install time? btw, earlier, i also get: ranlib /tmp/sw/lib/libFLAC.a chmod 644 /tmp/sw/lib/libFLAC.a libtool: install: warning: remember to run `libtool --finish /usr/local/lib' Which is wrong, the lib is (correctly) being put in /sw/lib. Only the message is wrong. -Ben -- http://homepage.mac.com/bhines/
--- Ben Hines <bhines@alumni.ucsd.edu> wrote:> I guess the problem is really why is it trying to relink it? > > The "parse error: condition expected:" is suspicious, though.. maybe > it's another "zsh as sh" problem... hmm..I don't remember having any trouble building the plugin on my ibook but that was a few months ago, so my memory may be fuzzy. I'll try again and post what I get. Josh __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
On Tue, May 21, 2002 at 05:19:17AM -0700, Ben Hines wrote:> I guess the problem is really why is it trying to relink it? > > The "parse error: condition expected:" is suspicious, though.. maybe it's > another "zsh as sh" problem... hmm..I don't think that zsh is really intended to be entirely POSIX compliant, certainly not in its default configuration. Doesn't ash run on OS X? -- - mdz
Ok, it seems i had problems with stale stuff in there. I made clean and started over. The first part now correctly says " remember to run `libtool --finish /sw/lib'". The xmms plugin now gives a different error: /bin/sh ../../mkinstalldirs /tmp/sw/lib/xmms/Input ../../libtool-disable-static --mode=install /usr/bin/install -c libxmms-flac.la /tmp/sw/lib/xmms/Input/libxmms-flac.la libtool-disable-static: install: warning: relinking `libxmms-flac.la' cd /Users/ben/Desktop/flac-1_0_2-src_1/flac-1.0.2/src/plugin_xmms; /bin/sh ../../libtool-disable-static --mode=relink gcc -I../.. -I./include -I ../../include -Wall -W -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Winline -DFLaC__INLINE=__inline__ -I/sw/include -I/sw/include -I/sw/include/xmms -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -L/sw/lib -o libxmms-flac.la -rpath /sw/lib/xmms/Input -module -avoid-version plugin.lo ../../src/libFLAC/libFLAC.la -L/sw/lib -L/sw/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lintl -lXext -lX11 -lm -lxmms -logg ~/Desktop/flac-1_0_2-src_1/flac-1.0.2/src/plugin_xmms/.libs ../../libtool-disable-static: parse error: condition expected: xyes = [3183] gcc -dynamiclib -flat_namespace -undefined suppress -o .libs/libxmms-flac.so plugin.lo -L/sw/lib /sw/lib/libFLAC.dylib -L/usr/X11R6/lib /sw/lib/libgtk.dylib /sw/lib/libgdk.dylib /sw/lib/libgmodule.dylib /sw/lib/libglib.dylib -ldl /sw/lib/libintl.dylib -lXext -lX11 -lm /sw/lib/libxmms.dylib /sw/lib/libogg.dylib -lc -install_name /sw/lib/xmms/Input/libxmms-flac.so gcc: /sw/lib/libFLAC.dylib: No such file or directory libtool-disable-static: install: error: relink `libxmms-flac.la' with the above command before installing it libtool-disable-static: install: warning: remember to run `libtool-disable-static --finish /sw/lib/xmms/Input' I guess the problem is really why is it trying to relink it? The "parse error: condition expected:" is suspicious, though.. maybe it's another "zsh as sh" problem... hmm.. -Ben -- http://homepage.mac.com/bhines/