Bug 188262 - Port net/quagga on FreeBSD 10 fails install
Summary: Port net/quagga on FreeBSD 10 fails install
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 17:40 UTC by Kevin Thompson
Modified: 2014-07-26 13:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Thompson 2014-04-04 17:40:00 UTC
I created a fresh install of FreeBSD 10.0 in a VirtualBox VM and attempted to install net/quagga.

The install fails when libtool is invoked to install binaries. 

I was able to successfully build quagga on a separate FreeBSD 9.0 installation.


beast(/usr/ports/net/quagga) # make install
===>  Installing for quagga-0.99.22.3
===>   Generating temporary packing list
===>  Checking if net/quagga already installed
===> Creating users and/or groups.
Using existing group `quagga'.
Using existing user `quagga'.
gmake[2]: Entering directory `/usr/ports/net/quagga/work/quagga-0.99.22.3'
Making install in lib
gmake[3]: Entering directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
true
gmake  install-am
gmake[4]: Entering directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
gmake[5]: Entering directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
 /bin/mkdir -p '/usr/local/lib'
 /bin/sh /usr/local/bin/libtool   --mode=install /usr/bin/install -c -o root -g wheel   libzebra.la '/usr/local/lib'
libtool: install: /usr/bin/install -c -o root -g wheel .libs/libzebra.so.0 /usr/local/lib/libzebra.so.0
libtool: install: (cd /usr/local/lib && { ln -s -f libzebra.so.0 libzebra.so || { rm -f libzebra.so && ln -s libzebra.so.0 libzebra.so; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libzebra.so.0 libzebra.so || { rm -f libzebra.so && ln -s libzebra.so.0 libzebra.so; }; })
libtool: install: /usr/bin/install -c -o root -g wheel .libs/libzebra.lai /usr/local/lib/libzebra.la
libtool: install: /usr/bin/install -c -o root -g wheel .libs/libzebra.a /usr/local/lib/libzebra.a
libtool: install: chmod 644 /usr/local/lib/libzebra.a
libtool: install: ranlib /usr/local/lib/libzebra.a
 /bin/mkdir -p '/usr/local/include/quagga'
 install  -o root -g wheel -m 444 buffer.h checksum.h command.h filter.h getopt.h hash.h if.h linklist.h log.h memory.h network.h prefix.h routemap.h distribute.h sockunion.h str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h privs.h sigevent.h pqueue.h jhash.h zassert.h memtypes.h workqueue.h route_types.h '/usr/local/include/quagga'
gmake[5]: Leaving directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
gmake[4]: Leaving directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
gmake[3]: Leaving directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
Making install in zebra
gmake[3]: Entering directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/zebra'
gmake[4]: Entering directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/zebra'
 /bin/mkdir -p '/usr/local/sbin'
  /bin/sh /usr/local/bin/libtool   --mode=install STRIPBIN=/usr/bin/strip install  -s -o root -g wheel -m 555 zebra '/usr/local/sbin'
libtool: install: STRIPBIN=/usr/bin/strip install /usr/local/sbin/install
usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               [-B suffix] [-l linkflags] [-N dbdir]
               file1 file2
       install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               [-B suffix] [-l linkflags] [-N dbdir]
               file1 ... fileN directory
       install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               directory ...
gmake[4]: *** [install-sbinPROGRAMS] Error 64
gmake[4]: Leaving directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/zebra'
gmake[3]: *** [install-am] Error 2
gmake[3]: Leaving directory `/usr/ports/net/quagga/work/quagga-0.99.22.3/zebra'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/net/quagga/work/quagga-0.99.22.3'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/net/quagga
*** Error code 1

Stop.
make: stopped in /usr/ports/net/quagga
beast(/usr/ports/net/quagga) #

How-To-Repeat: Attempt to build and install net/quagga on a fresh FreeBSD 10.0 install.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-04 17:40:02 UTC
Maintainer of net/quagga,

Please note that PR ports/188262 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/188262

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-04 17:40:03 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Boris Kovalenko 2014-04-04 19:07:27 UTC
Can't reproduce on my system:

libtool: install: ranlib /usr/local/lib/libzebra.a
  /bin/mkdir -p '/usr/local/include/quagga'
  install  -o root -g wheel -m 444 buffer.h checksum.h command.h 
filter.h getopt.h hash.h if.h linklist.h log.h memory.h network.h 
prefix.h routemap.h distribute.h sockunion.h str.h stream.h table.h 
thread.h vector.h version.h vty.h zebra.h plist.h zclient.h sockopt.h 
smux.h md5.h if_rmap.h keychain.h privs.h sigevent.h pqueue.h jhash.h 
zassert.h memtypes.h workqueue.h route_types.h '/usr/local/include/quagga'
gmake[5]: ÐÑÑод из каÑалога 
`/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
gmake[4]: ÐÑÑод из каÑалога 
`/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
gmake[3]: ÐÑÑод из каÑалога 
`/usr/ports/net/quagga/work/quagga-0.99.22.3/lib'
Making install in zebra
gmake[3]: ÐÑод в каÑалог `/usr/ports/net/quagga/work/quagga-0.99.22.3/zebra'
gmake[4]: ÐÑод в каÑалог `/usr/ports/net/quagga/work/quagga-0.99.22.3/zebra'
  /bin/mkdir -p '/usr/local/sbin'
   /bin/sh /usr/local/bin/libtool   --mode=install install  -s -o root 
-g wheel -m 555 zebra '/usr/local/sbin'
libtool: install: install -o root -g wheel -m 555 -s .libs/zebra 
/usr/local/sbin/zebra
  /bin/mkdir -p '/usr/local/share/examples/quagga'
  install  -o root -g wheel -m 444 zebra.conf.sample 
'/usr/local/share/examples/quagga'


[root@japp02 /usr/ports/net/quagga]# uname -a
FreeBSD japp02.korus-isp.ru 10.0-RELEASE FreeBSD 10.0-RELEASE #0 
r260789: Thu Jan 16 22:34:59 UTC 2014 
root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64


Please provide more info on your system. SSH access if this is possible.

-- 
Regards,
Boris
Comment 4 Kevin Thompson 2014-04-04 21:02:14 UTC
Well, there's not much to add - like I said, it was a fresh install. I 
did a portsnap fetch update just yesterday, so I should be as up-to-date 
as possible. Some of the packages I had installed came from 'pkg 
install' because I was too lazy to build them, but quagga and a few 
others were built from source.

My src.conf file is empty
My make.conf file is empty
net/quagga has no 'make config' tunables checked.

Here's a list of every package installed on the machine:

autoconf-2.69                  Automatically configure source code on 
many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
automake-1.14                  GNU Standards-compliant Makefile 
generator
automake-wrapper-20131203      Wrapper script for GNU automake
cscope-15.8a                   An interactive C program browser
ctags-5.8                      A feature-filled tagfile generator for vi 
and emacs clones
dialog4ports-0.1.5_2           Console Interface to configure ports
gawk-4.1.0                     The GNU version of Awk
gettext-0.18.3.1               GNU gettext package
gmake-3.82_1                   GNU version of 'make' utility
help2man-1.43.3_1              Automatically generating simple manual 
pages from program output
libffi-3.0.13_1                Foreign Function Interface
libsigsegv-2.10                Handling page faults in user mode
libtool-2.4.2_2                Generic shared library support script
libyaml-0.1.4_3                A YAML 1.1 parser and emitter written in 
C
lua52-5.2.3_2                  Small, compilable scripting language 
providing easy access to C code
m4-1.4.17_1,1                  GNU m4
p5-Locale-gettext-1.05_3       Message handling functions
perl5-5.16.3_9                 Practical Extraction and Report Language
pkg-1.2.7_2                    Package manager
pkgconf-0.9.5                  Utility to help to configure compiler and 
linker flags
portmaster-3.17.4              Manage your ports without external 
databases or languages
python-2.7_1,2                 The \"meta-port\" for the default version 
of Python interpreter
python2-2_2                    The \"meta-port\" for version 2 of the 
Python interpreter
python27-2.7.6_4               Interpreted object-oriented programming 
language
quagga-0.99.22.3               Free RIPv1, RIPv2, OSPFv2, BGP4, IS-IS 
route software
ruby-1.9.3.484_2,1             Object-oriented interpreted scripting 
language
tcl86-8.6.1                    Tool Command Language
vim-7.4.229_1                  Improved version of the vi editor


I have no idea why that 'STRIPBIN' is getting into the command line to 
install; something wrong with libtool? It might've been one of the 
packages I installed from 'pkg install'

/bin/sh /usr/local/bin/libtool   --mode=install STRIPBIN=/usr/bin/strip 
install  -s -o root -g wheel -m 555 zebra '/usr/local/sbin'
libtool: install: STRIPBIN=/usr/bin/strip install 
/usr/local/sbin/install
usage: install <snip>
gmake[4]: *** [install-sbinPROGRAMS] Error 64

I have no idea what's setting that.
Comment 5 Kevin Thompson 2014-04-04 21:16:51 UTC
This isn't a problem with the quagga port, this is a problem with the 
ports system or the libtool port. I started having this same problem 
with a few other ports and decided on a whim to rebuild libtool from 
ports; I had previously acquired it from pkg.FreeBSD.org. Quagga and my 
other ports started building just fine.

What's strange is that the version of libtool from pkg.FreeBSD.org was 
2.4.2_2 and the one in ports was the same; not even the port revision 
was different.

Something wrong with libtool on pkg.FreeBSD.org?

(forgot to CC bug-followup@)
Comment 6 John Marino freebsd_committer freebsd_triage 2014-06-18 21:25:21 UTC
Adding maintainer back, looks like it got lost in conversion process.

Is this PR still valid?
Comment 7 John Marino freebsd_committer freebsd_triage 2014-07-26 13:17:06 UTC
apparently not, portsmon says it builds everywhere:
http://portsmon.freebsd.org/portoverview.py?category=net&portname=quagga