Author Topic: Can't build current libusb srpm? A chain of weird issues with current srpms.  (Read 1025 times)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Rebuilding a bunch of packages, but strangely the current vlc srpm cannot build (just download the current srpm and tried rebuild). The vlc build fails because it cannot find libusb.la that is put in /lib - and when building libusb (v. 1.0.7, simple rebuild, to see how the libusb static libraries is packaged) it fails also! ffmpeg also failed (the spec was so weird it should not be able to compile at all!) but I've updated and fixed this (also, the spec missed a -lot- dependencies to build a lot functionality),

these builds are performed in Zen.

This is an extract of the libusb build log - what on earth is going on?


Code: [Select]
...
+ make
make  all-recursive
make[1]: Entering directory `/home/mbz/src/rpm/BUILD/libusb-1.0.7'
Making all in libusb
make[2]: Entering directory `/home/mbz/src/rpm/BUILD/libusb-1.0.7/libusb'
  CC     libusb_1_0_la-core.lo
../libtool: line 830: X--tag=CC: command not found
../libtool: line 863: libtool: ignoring unknown tag : command not found
../libtool: line 830: X--mode=compile: command not found
../libtool: line 997: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 998: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1141: Xgcc: command not found
../libtool: line 1141: X-DHAVE_CONFIG_H: command not found
../libtool: line 1141: X-I.: command not found
../libtool: line 1141: X-I..: command not found
../libtool: line 1141: X-fvisibility=hidden: command not found
../libtool: line 1141: X-std=gnu99: command not found
../libtool: line 1141: X-fgnu89-inline: command not found
../libtool: line 1141: X-Wall: command not found
../libtool: line 1141: X-Wundef: command not found
../libtool: line 1141: X-Wunused: command not found
../libtool: line 1141: X-Wstrict-prototypes: command not found
../libtool: line 1141: X-Werror-implicit-function-declaration: command not found
../libtool: line 1141: X-Wno-pointer-sign: command not found
../libtool: line 1141: X-Wshadow: command not found
../libtool: line 1141: X-pthread: command not found
../libtool: line 1141: X-O2: command not found
../libtool: line 1141: X-pipe: command not found
../libtool: line 1141: X-Wp,-D_FORTIFY_SOURCE=2: command not found
../libtool: line 1141: X-fomit-frame-pointer: command not found
../libtool: line 1141: X-march=i586: command not found
../libtool: line 1141: X-mtune=generic: command not found
../libtool: line 1141: X-fasynchronous-unwind-tables: command not found
../libtool: line 1141: X-MT: command not found
../libtool: line 1141: Xlibusb_1_0_la-core.lo: command not found
../libtool: line 1141: X-MD: command not found
../libtool: line 1141: X-MP: command not found
../libtool: line 1141: X-MF: command not found
../libtool: line 1141: X.deps/libusb_1_0_la-core.Tpo: No such file or directory
../libtool: line 1141: X-c: command not found
../libtool: line 1194: Xlibusb_1_0_la-core.lo: command not found
../libtool: line 1199: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [libusb_1_0_la-core.lo] Error 1
make[2]: Leaving directory `/home/mbz/src/rpm/BUILD/libusb-1.0.7/libusb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mbz/src/rpm/BUILD/libusb-1.0.7'
make: *** [all] Error 2
error: Bad exit status from /home/mbz/src/tmp/rpm-tmp.25600 (%build)


RPM build errors:
    Bad exit status from /home/mbz/src/tmp/rpm-tmp.25600 (%build)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Do you have %define __libtoolize /bin/true in your spec?

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12539
There are 3 different libtool pacakges in the dropbox folder depending on what program needs what libtool package. I normally use 2.2.6b and use autoreconf -fi which works for most packages and force downgrade when needed.


Thanks to everyone who donates. You keep the servers running.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Thanks - I'll try the 3 versions and set the spec accordingly,

cheers,
MBantz