Hello, when compiling program on Madriva 2009, it seems that every libtool option has 'X' prepended. The package builds without any problems on all other RPM-based hosts.
make[2]: Entering directory `/usr/src/rpm/BUILD/xylib-0.4/xylib' /bin/sh ../libtool --tag=CXX --mode=compile i586-mandriva-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -MT libxy_la-xylib.lo -MD -MP -MF .deps/libxy_la-xylib.Tpo -c -o libxy_la-xylib.lo `test -f 'xylib.cpp' || echo './'`xylib.cpp ../libtool: line 844: X--tag=CXX: command not found ../libtool: line 877: libtool: ignoring unknown tag : command not found ../libtool: line 844: X--mode=compile: command not found
The full log: https://build.opensuse.org/package/live_build_log?arch=i586&package=xyli...
Any ideas what's wrong here?
Thanks, Marcin
Marcin Wojdyr wrote:
when compiling program on Madriva 2009, it seems that every libtool option has 'X' prepended. The package builds without any problems on all other RPM-based hosts.
make[2]: Entering directory `/usr/src/rpm/BUILD/xylib-0.4/xylib' /bin/sh ../libtool --tag=CXX --mode=compile i586-mandriva-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -MT libxy_la-xylib.lo -MD -MP -MF .deps/libxy_la-xylib.Tpo -c -o libxy_la-xylib.lo `test -f 'xylib.cpp' || echo './'`xylib.cpp ../libtool: line 844: X--tag=CXX: command not found ../libtool: line 877: libtool: ignoring unknown tag : command not found ../libtool: line 844: X--mode=compile: command not found
The full log: https://build.opensuse.org/package/live_build_log?arch=i586&package=xyli...
Any ideas what's wrong here?
Probably a mismatch between libtool/autoconf/automake versions. According to the log "libtoolize --copy --force" is called by some Mandriva magic. You could try whether adding e.g. "autoreconf -f" before %configure helps.
cu Ludwig
Ludwig Nussel wrote:
Probably a mismatch between libtool/autoconf/automake versions. According to the log "libtoolize --copy --force" is called by some Mandriva magic. You could try whether adding e.g. "autoreconf -f" before %configure helps.
Thanks! Indeed, this was the problem. I added %define __libtoolize /bin/true to prevent running libtool and the package builds fine.
Thanks again, Marcin
buildservice@lists.opensuse.org