[Q]build submodule problem


#1

Hi,

I am trying to build submodules. I checkout hydrogen, git submodule update --init pkgs/vyatta-vrrp, and try to build “sudo make vyatta-vrrp” it works. But when I try to do the same on vyatta-quagga, it failed. see log:

user@debian6:~/build-iso$ sudo make vyatta-quagga
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package vyatta-quagga
dpkg-buildpackage: source version 0.99.17-15
dpkg-buildpackage: source changed by Stephen Hemminger stephen.hemminger@vyatta.com
dpkg-source -i --before-build vyatta-quagga
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: gawk libncurses5-dev libreadline5-dev libpam0g-dev libcap-dev libsnmp-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc failed
make: *** [vyatta-quagga] Error 29
user@debian6:~/build-iso$

Then i tried several other submodules, some work, some don’t work. for example, vyatta-lldp could not make as well, see log:

user@debian6:~/build-iso$ sudo make vyatta-lldp
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package vyatta-lldp
dpkg-buildpackage: source version 0.18
dpkg-buildpackage: source changed by Stephen Hemminger stephen.hemminger@vyatta.com
dpkg-source -i --before-build vyatta-lldp
dpkg-buildpackage: host architecture i386
debian/rules build
dh_testdir
rm -f config.cache
./configure --host=i486-linux-gnu --build=i486-linux-gnu --prefix=/opt/vyatta --mandir=${prefix}/share/man --infodir=${prefix}/share/info CFLAGS="-Wall -g -O2"
configure: error: cannot find install-sh, install.sh, or shtool in config “.”/config
make: *** [config.status] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc failed
make: *** [vyatta-lldp] Error 29
user@debian6:~/build-iso$

Any advise? thanks!


#2

apt-get install gawk libncurses5-dev libreadline5-dev libpam0g-dev libcap-dev libsnmp-dev


#3

installed but still get error:

user@debian6:~/build-iso$ sudo make vyatta-quagga
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package vyatta-quagga
dpkg-buildpackage: source version 0.99.17-15
dpkg-buildpackage: source changed by Stephen Hemminger stephen.hemminger@vyatta.com
dpkg-source -i --before-build vyatta-quagga
dpkg-buildpackage: host architecture i386
debian/rules build
dh_testdir
rm -f config.cache
./configure --host=i486-linux-gnu --build=i486-linux-gnu --prefix=/usr --sbindir=/usr/sbin --libdir=/usr/lib/quagga --localstatedir=/var/run/quagga --sysconfdir=/etc/quagga --mandir=/usr/share/man --infodir=/usr/share/info/quagga --enable-exampledir=/usr/share/doc/quagga/examples/ --enable-vtysh --enable-ipv6 --enable-watchquagga --enable-opaque-lsa --enable-ospfclient=yes --enable-ospfapi=yes --enable-ospf-te --enable-multipath=64 --enable-user=quagga --enable-group=quagga --enable-vty-group=quaggavty --enable-configfile-mask=0640 --enable-logfile-mask=0640 --enable-rtadv --enable-gcc-rdynamic --enable-snmp --with-libpam CFLAGS="-Wall -DIP_MINTTL=21 -DIPV6_MINHOPCNT=73 -O2 -g" --disable-doc
configure: error: cannot find install-sh, install.sh, or shtool in “.” “./…” “./…/…”
make: *** [config.status] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc failed
make: *** [vyatta-quagga] Error 29
user@debian6:~/build-iso$


#4

Maybe you need to install autotools
Easiest way, please execute apt-get install build-essential.


Hiroyuki Sato


#5

I had installed that, reinstalled again, still get same error for vyatta-quagga package.


#6
  1. I can build vyatta-quagga the following step
    git clone https://github.com/vyos/build-iso
    cd build-iso
    git submodule update --init pkgs/vyatta-quagga
    make vyatta-quagga    
please tell me your step.
  1. install-sh

install-sh generated in debian/autogen.sh script

Please execute debian/autogen.sh in pkgs/vyatta-quagga directory.

If you get error, please execute the following command.

  apt-get install autotools-dev automake libtool

#7

I think i missed the install-sh part. Did not see any of that information in the guide. Once i run the script, it works fine. :slight_smile: Thanks a lot!