Bug 206270

Summary: net/GeoIP: failed to build
Product: Ports & Packages Reporter: Guntis <guntis.bumburs>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed Not A Bug    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (adamw)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Guntis 2016-01-14 20:37:01 UTC
failed to build

root@mail:/usr/ports/net/GeoIP # make clean
===>  Cleaning for GeoIP-1.6.9
root@mail:/usr/ports/net/GeoIP # make
===>  License GPLv2 accepted by the user
===>  Found saved configuration for GeoIP-1.6.4
===>   GeoIP-1.6.9 depends on file: /usr/local/sbin/pkg - found
=> maxmind-geoip-api-c-v1.6.9_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/maxmind/geoip-api-c/tar.gz/v1.6.9?dummy=/maxmind-geoip-api-c-v1.6.9_GH0.tar.gz
maxmind-geoip-api-c-v1.6.9_GH0.tar.gz         100% of  154 kB  407 kBps 00m00s
===> Fetching all distfiles required by GeoIP-1.6.9 for building
===>  Extracting for GeoIP-1.6.9
=> SHA256 Checksum OK for maxmind-geoip-api-c-v1.6.9_GH0.tar.gz.
===>  Patching for GeoIP-1.6.9
===>  Applying FreeBSD patches for GeoIP-1.6.9
===>   GeoIP-1.6.9 depends on executable: autoconf-2.69 - found
===>   GeoIP-1.6.9 depends on executable: autoheader-2.69 - found
===>   GeoIP-1.6.9 depends on executable: autoreconf-2.69 - found
===>   GeoIP-1.6.9 depends on executable: aclocal-1.15 - found
===>   GeoIP-1.6.9 depends on executable: automake-1.15 - found
===>   GeoIP-1.6.9 depends on executable: libtoolize - found
===>  Configuring for GeoIP-1.6.9
configure.ac:9: installing './compile'
configure.ac:14: installing './config.guess'
configure.ac:14: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:14: error: required file './ltmain.sh' not found
configure.ac:8: installing './missing'
apps/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf-2.69: automake failed with exit status: 1
*** Error code 1

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

Stop.
make: stopped in /usr/ports/net/GeoIP
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2016-01-14 21:34:59 UTC
Hi Guntis, I can't replicate this build failure. Can you please provide more information:

* Which FreeBSD version
* contents of /etc/make.conf
* output of "pkg info"
Comment 2 Guntis 2016-01-15 07:01:29 UTC
(In reply to Adam Weinberger from comment #1)

root@mail:~ # uname -a
FreeBSD xxxx 10.2-RELEASE-p9 FreeBSD 10.2-RELEASE-p9 #0: Thu Jan 14 01:32:46 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

no make.conf

root@mail:~ # pkg version
GeoIP-1.6.6                        <
aide-0.15.1_1                      =
amavisd-new-2.10.1_1,1             =
arc-5.21p                          =
arj-3.10.22_4                      =
autoconf-2.69                      =
autoconf-wrapper-20131203          =
automake-1.15_1                    =
automake-wrapper-20131203          =
ca_root_nss-3.21                   =
cabextract-1.6                     =
clamav-0.99                        =
curl-7.46.0_2                      =
db5-5.3.28_3                       =
dcc-dccd-1.3.158                   =
dialog4ports-0.1.5_2               =
dkimproxy-1.4.1_1                  =
dovecot-pigeonhole-0.4.11          =
dovecot2-2.2.21_1                  =
dovecot2-antispam-plugin-20130429_15 =
expat-2.1.0_3                      =
file-5.22                          =
freeze-2.5_2                       =
gawk-4.1.3_2                       =
gdbm-1.11_2                        =
gettext-runtime-0.19.6             =
gettext-tools-0.19.6               =
gmake-4.1_2                        =
gmake-lite-4.1_1                   =
gmp-5.1.3_2                        =
gnupg-2.1.8                        =
gnutls-3.3.17.1                    =
help2man-1.43.3_1                  =
ifstat-1.1_5                       =
indexinfo-0.2.4                    =
json-c-0.12_2                      =
lha-1.14i_6                        =
libassuan-2.4.2                    =
libevent2-2.0.22_1                 =
libffi-3.2.1                       =
libgcrypt-1.6.4_3                  =
libgpg-error-1.21                  =
libidn-1.31                        =
libksba-1.3.3                      =
libltdl-2.4.6                      =
liblz4-131                         =
libsigsegv-2.10_1                  =
libtasn1-4.7                       =
libtool-2.4.6                      =
libxml2-2.9.3                      =
lrzip-0.621                        =
lynx-2.8.8.2_3,1                   =
lzo2-2.09                          =
lzop-1.03                          =
m4-1.4.17_1,1                      =
mc-light-4.1.40.p9_11              =
mhash-0.9.9.9_4                    =
monit-5.15                         =
mysql55-client-5.5.46              =
mysql55-server-5.5.46              =
nettle-2.7.1                       =
npth-1.2                           =
p0f-3.08b_1                        =
p11-kit-0.23.2                     =
p5-Archive-Zip-1.56                =
p5-BerkeleyDB-0.55                 =
p5-Bit-Vector-7.4                  =
p5-Carp-Clan-6.04_1                =
p5-Convert-BinHex-1.125            =
p5-Convert-TNEF-0.18_1             =
p5-Convert-UUlib-1.50,1            =
p5-Crypt-OpenSSL-Bignum-0.06       =
p5-Crypt-OpenSSL-RSA-0.28_1        =
p5-Crypt-OpenSSL-Random-0.11       =
p5-DBI-1.634                       =
p5-Date-Calc-6.4                   =
p5-Digest-HMAC-1.03_1              =
p5-Digest-SHA1-2.13_1              =
p5-Encode-Detect-1.01_1            =
p5-Error-0.17024                   =
p5-Geo-IP-1.45                     =
p5-Geography-Countries-2009041301_1 =
p5-HTML-Parser-3.71_1              =
p5-HTML-Tagset-3.20_1              =
p5-HTTP-Date-6.02_1                =
p5-IO-Multiplex-1.13_1             =
p5-IO-Socket-INET6-2.72_1          =
p5-IO-Socket-IP-0.37               =
p5-IO-Socket-SSL-2.022             =
p5-IO-stringy-2.111                =
p5-IP-Country-2.28_1               =
p5-Locale-gettext-1.06             =
p5-MIME-Tools-5.507,2              =
p5-Mail-DKIM-0.40_2                =
p5-Mail-SPF-2.9.0_3                =
p5-Mail-Tools-2.14                 =
p5-Mozilla-CA-20141217             =
p5-Net-DNS-1.04,1                  =
p5-Net-DNS-Resolver-Programmable-0.003_2 =
p5-Net-LibIDN-0.12_4               =
p5-Net-Patricia-1.22_1             =
p5-Net-SSLeay-1.72                 =
p5-Net-Server-2.008_1              =
p5-NetAddr-IP-4.075                =
p5-Parse-Syslog-1.10_1             =
p5-Socket-2.021                    =
p5-Socket6-0.25_2                  =
p5-Storable-2.45_1                 =
p5-Sys-Hostname-Long-1.5_1         =
p5-Time-HiRes-1.9726_1,1           =
p5-TimeDate-2.30_2,1               =
p5-URI-1.71                        =
p5-Unix-Syslog-1.1_1               =
p7zip-15.09                        =
pcre-8.37_4                        =
perl5-5.18.4_17                    =
pflogsumm-1.1.5,1                  =
pftop-0.7_6                        =
pinentry-0.9.5                     =
pinentry-tty-0.9.5                 =
pkg-1.6.2                          =
pkgconf-0.9.12_1                   =
portmaster-3.17.8_1                =
postfix-2.11.7_1,1                 =
postfix-policyd-spf-perl-2.010_1   =
postfix-postfwd-1.35_1             =
postgrey-1.36                      =
py27-gdbm-2.7.11_4                 =
py27-setuptools27-19.2             =
python27-2.7.11_1                  =
pyzor-0.7.0                        =
razor-agents-2.84_1                =
re2c-0.14.3                        =
ripole-0.2.2                       =
rpm2cpio-1.4_1                     =
rsync-3.1.2_1                      =
spamassassin-3.4.1_5               =
sshguard-pf-1.6.2                  =
tmux-2.1_1                         =
tnef-1.4.11                        =
trousers-tddl-0.3.10_7             =
unrar-5.30,5                       =
unzoo-4.4_2                        =
zoo-2.10.1_3                       =
root@mail:~ #
Comment 3 Adam Weinberger freebsd_committer freebsd_triage 2016-01-15 17:22:52 UTC
I've been trying to replicate your environment but I can't reproduce that build error.

Can you please try reinstalling all the auto*/libtool stuff?

# portmaster auto\* libtool

You should also consider upgrading your perl; perl5.18 is deprecated and unsupported at this point (though I doubt that's the cause of the build failure you're seeing).
Comment 4 Adam Weinberger freebsd_committer freebsd_triage 2016-01-15 17:30:25 UTC
I should add, the issue here is that libtoolize isn't being run at the start of the build. That should be happening automatically from Mk/Uses/autoreconf.mk. Is your ports tree fully up-to-date?
Comment 5 Guntis 2016-01-15 20:18:05 UTC
(In reply to Adam Weinberger from comment #4)

Thanks for helping me out on this.

This is a bug on my system probably caused by upgrades from previous FreeBSD versions.

Tried to remove ports
# rm -rf /usr/ports
# portsnap fetch extract
# head -1 /usr/ports/Mk/Uses/autoreconf.mk
# $FreeBSD: head/Mk/Uses/autoreconf.mk 401710 2015-11-15 15:34:51Z tijl $

Upgraded Perl from 5.18 to 5.20

did # portmaster auto\* libtool

and it still fails to build GeoIP

any suggestions?
Comment 6 Guntis 2016-01-15 20:27:49 UTC
It is not GeoIP port bug.

problem is with libtoolize, it is truncated

found somebody with same problem: https://lists.freebsd.org/pipermail/freebsd-ports/2015-January/097518.html

On my system:
root@mail:/var/log # ls -l /usr/local/bin/lib*
-r-xr-xr-x  1 root  wheel    2528 Jan 14 22:07 /usr/local/bin/libassuan-config
-r-xr-xr-x  1 root  wheel    3988 Jan 14 22:07 /usr/local/bin/libgcrypt-config
-rwxr-xr-x  1 root  wheel   15731 Jan 15 21:24 /usr/local/bin/libnetcfg
-r-xr-xr-x  1 root  wheel  364340 Jan 15 21:51 /usr/local/bin/libtool
-rwxr-xr-x  1 root  wheel       0 Jan 15 21:51 /usr/local/bin/libtoolize
Comment 7 Guntis 2016-01-15 20:47:14 UTC
digging deeper:
anyone else having same build problems should look into libtool

Trying to update devel/libtool, I get /usr/local/bin/libtoolize with 0 bytes.
https://lists.freebsd.org/pipermail/freebsd-ports/2015-February/097922.html

temporary workaround was to manually replace libtoolize. Then I was able to make GeoIP.

Something is definitely wrong with my system.