Bug 239728 - cad/tkgate: Fails to configure: error: possibly undefined macro: AC_PROG_LIBTOOL
Summary: cad/tkgate: Fails to configure: error: possibly undefined macro: AC_PROG_LIBTOOL
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vsevolod Stakhov
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-08-08 21:50 UTC by Robert Cina
Modified: 2019-08-09 14:57 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vsevolod)


Attachments
cad/tkgate poudriere build log with configure error (21.74 KB, text/plain)
2019-08-08 21:50 UTC, Robert Cina
no flags Details
cad/tkgate poudriere build log when libtool is add to Uses (28.27 KB, text/plain)
2019-08-08 23:18 UTC, Robert Cina
no flags Details
svn-diff-tkgate (372 bytes, patch)
2019-08-09 08:23 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 2019-08-08 23:05:21 UTC
Please, can you post this in the update Bug #234081 ?
Comment 2 Walter Schwarzenfeld freebsd_triage 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 freebsd_triage 2019-08-09 08:23:18 UTC
Created attachment 206386 [details]
svn-diff-tkgate

Also needed pkgconfig.
Comment 6 Vsevolod Stakhov freebsd_committer 2019-08-09 09:20:43 UTC
It seems to be building fine with the proposed patch, thanks!
Comment 7 commit-hook freebsd_committer 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 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!