Bug 239728

Summary: cad/tkgate: Fails to configure: error: possibly undefined macro: AC_PROG_LIBTOOL
Product: Ports & Packages Reporter: Robert Cina <transitive>
Component: Individual Port(s)Assignee: Vsevolod Stakhov <vsevolod>
Status: Closed FIXED    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (vsevolod)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
cad/tkgate poudriere build log with configure error
none
cad/tkgate poudriere build log when libtool is add to Uses
none
svn-diff-tkgate none

Description Robert Cina 2019-08-08 21:50:54 UTC
Created attachment 206381 [details]
cad/tkgate poudriere build log with configure error

While building cad/tkgate in poudriere on my 12-stable system the build fails with a configure error as shown below:

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
===>   tkgate-2.1 depends on shared library: libpango-1.0.so - found (/usr/local/lib/libpango-1.0.so)
===>   Returning to build of tkgate-2.1
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for tkgate-2.1
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:141: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf-2.69: /usr/local/bin/autoconf-2.69 failed with exit status: 1
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/tkgate
=>> Cleaning up wrkdir
===>  Cleaning for tkgate-2.1
build of cad/tkgate | tkgate-2.1 ended at Thu Aug  8 17:46:17 EDT 2019
build time: 00:00:22
!!! build failure encountered !!!
Comment 1 Walter Schwarzenfeld 2019-08-08 23:05:21 UTC
Please, can you post this in the update Bug #234081 ?
Comment 2 Walter Schwarzenfeld 2019-08-08 23:07:54 UTC
Try add libtool to USES.
Comment 3 Robert Cina 2019-08-08 23:15:58 UTC
Tried adding libtool to the uses in the Makefile but I get another configure error now.

checking for string.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
./configure: 14676: Syntax error: word unexpected (expecting ")")
===>  Script "configure" failed unexpectedly.
Please report the problem to vsevolod@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/cad/tkgate/work/tkgate-2.1/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/tkgate
=>> Cleaning up wrkdir
===>  Cleaning for tkgate-2.1
build of cad/tkgate | tkgate-2.1 ended at Thu Aug  8 19:12:10 EDT 2019
build time: 00:00:27
!!! build failure encountered !!!
Comment 4 Robert Cina 2019-08-08 23:18:28 UTC
Created attachment 206383 [details]
cad/tkgate poudriere build log when libtool is add to Uses
Comment 5 Walter Schwarzenfeld 2019-08-09 08:23:18 UTC
Created attachment 206386 [details]
svn-diff-tkgate

Also needed pkgconfig.
Comment 6 Vsevolod Stakhov freebsd_committer freebsd_triage 2019-08-09 09:20:43 UTC
It seems to be building fine with the proposed patch, thanks!
Comment 7 commit-hook freebsd_committer freebsd_triage 2019-08-09 09:23:24 UTC
A commit references this bug:

Author: vsevolod
Date: Fri Aug  9 09:22:47 UTC 2019
New revision: 508431
URL: https://svnweb.freebsd.org/changeset/ports/508431

Log:
  - Add missing uses [1]
  - Drop maintainership

  PR:		239728 [1]
  Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld at utanet.at> [1]
  Reported by:	Robert Cina <transitive at gmail.com>

Changes:
  head/cad/tkgate/Makefile
Comment 8 Vsevolod Stakhov freebsd_committer freebsd_triage 2019-08-09 09:24:48 UTC
Committed, thank you. Please let me know if the fix helped and if anybody wants to take the maintainership for this port as I have no time to support it appropriately.
Comment 9 Robert Cina 2019-08-09 11:55:03 UTC
The fix worked for me. Thank you very much!