Bug 217849 - Port: devel/autogen fails to build
Summary: Port: devel/autogen fails to build
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-16 17:29 UTC by Robert Cina
Modified: 2018-02-23 14:23 UTC (History)
4 users (show)

See Also:


Attachments
Synth log of failed build of devel/autogen (44.84 KB, text/plain)
2017-03-16 17:31 UTC, Robert Cina
no flags Details
poudriere testport for devel/autogen (79.90 KB, text/plain)
2017-03-20 12:24 UTC, Robert Cina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2017-03-16 17:29:38 UTC
The devel/autogen port fails to build on my system. The attached synth log shows how it fails.

Below is an excerpt of the build log showing where it fails:

Imv -f .deps/autogen-ag.Tpo .deps/autogen-ag.Po
/bin/sh ../libtool  --tag=CC   --mode=link cc -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread  -O2 -pipe  -fstack-protector -fno-strict-aliasing -export-dynamic  -fstack-protector -o autogen  autogen-ag.o ../autoopts/libopts.la ../snprintfv/libsnprintfv.la -L/usr/local/lib -lguile-2.0 -lgc-threaded  -Wl,-rpath -Wl,/usr/local/lib -lm -lm 
libtool: link: cc -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread -O2 -pipe -fstack-protector -fno-strict-aliasing -fstack-protector -o .libs/autogen autogen-ag.o -Wl,-rpath -Wl,/usr/local/lib -Wl,--export-dynamic  ../autoopts/.libs/libopts.so ../snprintfv/.libs/libsnprintfv.a -L/usr/local/lib -lguile-2.0 -lgc-threaded -lm -pthread -Wl,-rpath -Wl,/usr/local/lib
autogen-ag.o: In function `main':
ag.c:(.text+0xc9): undefined reference to `optionSaveState'
autogen-ag.o: In function `inner_main':
ag.c:(.text+0x778): undefined reference to `optionProcess'
ag.c:(.text+0xae7): undefined reference to `option_streqvcmp'
ag.c:(.text+0xafd): undefined reference to `option_streqvcmp'
ag.c:(.text+0xfee): undefined reference to `option_strequate'
ag.c:(.text+0x1c1d): undefined reference to `optionFree'
autogen-ag.o: In function `dp_run_fsm':
ag.c:(.text+0x246f): undefined reference to `ao_string_cook'
ag.c:(.text+0x27ed): undefined reference to `ao_string_cook'
ag.c:(.text+0x3224): undefined reference to `option_streqvcmp'
ag.c:(.text+0x323e): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `doDir_option':
ag.c:(.text+0x4e86): undefined reference to `optionLoadLine'
autogen-ag.o: In function `ag_scm_string_ends_eqv_p':
ag.c:(.text+0x5734): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `Select_Equivalent_End':
ag.c:(.text+0x579a): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `ag_scm_string_starts_eqv_p':
ag.c:(.text+0x57e8): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `Select_Equivalent_Start':
ag.c:(.text+0x582e): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `ag_scm_string_eqv_p':
ag.c:(.text+0x58ad): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `Select_Equivalent_Full':
ag.c:(.text+0x6475): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `mLoad_Expr':
ag.c:(.text+0x724c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x7559): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x762d): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x76de): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x77c4): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o:ag.c:(.text+0x7869): more undefined references to `ao_string_cook_escape_char' follow
autogen-ag.o: In function `parse_tpl':
ag.c:(.text+0x8129): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `mFunc_Invoke':
ag.c:(.text+0x8ef5): undefined reference to `option_streqvcmp'
ag.c:(.text+0x90c8): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `eval':
ag.c:(.text+0x935c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x946c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `skip_expr':
ag.c:(.text+0xa74c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `find_def_ent':
ag.c:(.text+0xb663): undefined reference to `option_strtransform'
autogen-ag.o: In function `mLoad_For':
ag.c:(.text+0xb98a): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xbb4c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xbd6c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `eval_true':
ag.c:(.text+0xc25a): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `tpl_load':
ag.c:(.text+0xcc90): undefined reference to `text_mmap'
ag.c:(.text+0xd014): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xd02e): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xd58a): undefined reference to `text_munmap'
autogen-ag.o: In function `mFunc_Unknown':
ag.c:(.text+0xd7a8): undefined reference to `option_streqvcmp'
ag.c:(.text+0xd8bf): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xd9ff): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `parse_mac_args':
ag.c:(.text+0xe1c5): undefined reference to `option_strtransform'
ag.c:(.text+0xe2fd): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xe3c0): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xe57d): undefined reference to `option_streqvcmp'
ag.c:(.text+0xe5cd): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `find_file':
ag.c:(.text+0xed97): undefined reference to `optionMakePath'
ag.c:(.text+0xef0c): undefined reference to `optionMakePath'
autogen-ag.o: In function `ag_scm_license':
ag.c:(.text+0x10666): undefined reference to `text_munmap'
ag.c:(.text+0x10696): undefined reference to `text_mmap'
autogen-ag.o: In function `ag_scm_ag_function_p':
ag.c:(.text+0x14e48): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `ag_scm_set_option':
ag.c:(.text+0x153e7): undefined reference to `optionLoadLine'
autogen-ag.o: In function `ag_scm_mk_gettextable':
ag.c:(.text+0x157d1): undefined reference to `optionPrintParagraphs'
autogen-ag.o: In function `ag_scm_kr_string':
ag.c:(.text+0x1608a): undefined reference to `optionQuoteString'
autogen-ag.o: In function `ag_scm_c_string':
ag.c:(.text+0x160ca): undefined reference to `optionQuoteString'
autogen-ag.o: In function `ag_scm_time_string_to_number':
ag.c:(.text+0x167bf): undefined reference to `option_parse_duration'
autogen-ag.o: In function `vusage_message':
ag.c:(.text+0x17e05): undefined reference to `optionUsage'
autogen-ag.o: In function `do_stdout_tpl':
ag.c:(.text+0x18a3f): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `number_and_insert_ent':
ag.c:(.text+0x192a8): undefined reference to `option_strtransform'
autogen-ag.o: In function `skip_quote':
ag.c:(.text+0x19a2c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `order_def_list':
ag.c:(.text+0x19a86): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `find_def':
ag.c:(.text+0x1a2f8): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `doOptLoop_Limit':
ag.c:(.text+0x1b2e1): undefined reference to `optionNumericVal'
ag.c:(.text+0x1b31f): undefined reference to `optionShowRange'
autogen-ag.o: In function `doOptTimeout':
ag.c:(.text+0x1b351): undefined reference to `optionNumericVal'
ag.c:(.text+0x1b387): undefined reference to `optionShowRange'
autogen-ag.o: In function `doOptTrace':
ag.c:(.text+0x1b3b3): undefined reference to `optionEnumerationVal'
ag.c:(.text+0x1b3d6): undefined reference to `optionEnumerationVal'
autogen-ag.o: In function `doUsageOpt':
ag.c:(.text+0x1b701): undefined reference to `optionUsage'
autogen-ag.o:(.data+0xd8): undefined reference to `optionUsage'
autogen-ag.o:(.data+0x200): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xa20): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xaf0): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xb58): undefined reference to `optionUnstackArg'
autogen-ag.o:(.data+0xcf8): undefined reference to `optionResetOpt'
autogen-ag.o:(.data+0xd60): undefined reference to `optionPrintVersion'
autogen-ag.o:(.data+0xe30): undefined reference to `optionPagedUsage'
autogen-ag.o:(.data+0xf68): undefined reference to `optionLoadOpt'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:574: autogen] Error 1
gmake[4]: Leaving directory '/construction/xports/devel/autogen/work/autogen-5.18.10/agen5'
gmake[3]: *** [Makefile:696: all-recursive] Error 1
gmake[3]: Leaving directory '/construction/xports/devel/autogen/work/autogen-5.18.10/agen5'
gmake[2]: *** [Makefile:540: all-recursive] Error 1
gmake[2]: Leaving directory '/construction/xports/devel/autogen/work/autogen-5.18.10'
gmake[1]: *** [Makefile:447: all] Error 2
gmake[1]: Leaving directory '/construction/xports/devel/autogen/work/autogen-5.18.10'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /xports/devel/autoge
Comment 1 Robert Cina 2017-03-16 17:31:36 UTC
Created attachment 180881 [details]
Synth log of failed build of devel/autogen
Comment 2 Anton Yuzhaninov 2017-03-17 03:05:21 UTC
Did you try to rebuild with MAKE_JOBS_UNSAFE=yes ?
Comment 3 Robert Cina 2017-03-17 09:33:58 UTC
Yes I tried setting MAKE_JOBS_UNSAFE=yes i get the same result as you can see below.

rob@alto:/usr/ports/devel/autogen % sudo make MAKE_JOBS_UNSAFE=yes clean install 
===>  Cleaning for autogen-5.18.10
===>   NOTICE:

The autogen port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port

===>  License GPLv2 accepted by the user
===>   autogen-5.18.10 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by autogen-5.18.10 for building
===>  Extracting for autogen-5.18.10
=> SHA256 Checksum OK for autogen-5.18.10.tar.xz.
===>  Patching for autogen-5.18.10
===>   autogen-5.18.10 depends on executable: bash - found
===>   autogen-5.18.10 depends on executable: gmake - found
===>   autogen-5.18.10 depends on package: pkgconf>=1.3.0_1 - found
===>   autogen-5.18.10 depends on package: perl5>=5.24<5.25 - found
===>   autogen-5.18.10 depends on shared library: libguile-2.0.so - found (/usr/local/lib/libguile-2.0.so)
===>   autogen-5.18.10 depends on shared library: libgc-threaded.so - found (/usr/local/lib/libgc-threaded.so)
===>   autogen-5.18.10 depends on shared library: libxml2.so - found (/usr/local/lib/libxml2.so)
===>  Configuring for autogen-5.18.10
configure: WARNING: unrecognized options: --with-libguile
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-portbld-freebsd11.0
checking host system type... amd64-portbld-freebsd11.0
checking target system type... amd64-portbld-freebsd11.0
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

                        A    U    T    O    G    E    N

GNU AutoGen-5.18.10                                          libopts.la-41:1:16
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking whether gmake supports nested variables... yes
checking for style of include used by gmake... GNU
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... (cached) /usr/bin/fgrep
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd11.0 file names to amd64-portbld-freebsd11.0 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd11.0 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd11.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if malloc debugging is wanted... no
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking for texi2html... :
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for dlopen in -ldl... no
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for long double with more range or precision than double... yes
checking for long long... (cached) yes
checking for uintmax_t... yes
checking for size_t... (cached) yes
checking for wchar_t... (cached) yes
checking size of char*... 8
checking size of int... 4
checking size of long... 8
checking size of short... 2
checking for strchr... yes
checking for strlcpy... (cached) yes
checking for snprintf... (cached) yes
checking for dlopen... (cached) yes
checking for library containing copysign... -lm
checking for library containing copysignl... none required
checking for library containing modfl... none required
checking for unsigned long long int... (cached) yes
checking libio.h usability... no
checking libio.h presence... no
checking for libio.h... no
checking for ctype.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking whether sigsetjmp is declared... yes
checking whether sys_siglist is declared... (cached) yes
checking for putenv... (cached) yes
checking for getdate_r... no
checking for utimes... (cached) yes
checking for futimes... (cached) yes
checking for inline... (cached) inline
checking for long long int... (cached) yes
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 2.0
configure: found guile 2.0
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/mman.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking sys/procset.h usability... no
checking sys/procset.h presence... no
checking for sys/procset.h... no
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking sys/stropts.h usability... no
checking sys/stropts.h presence... no
checking for sys/stropts.h... no
checking for sys/time.h... (cached) yes
checking for sys/un.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for libgen.h... (cached) yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking for memory.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for stdbool.h... (cached) yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking for unistd.h... (cached) yes
checking for utime.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for string.h... (cached) yes
checking for limits.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for working stdnoreturn.h... yes
checking for runetype.h... yes
checking for wchar.h... (cached) yes
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... (cached) yes
checking for uint16_t... yes
checking for int32_t... (cached) yes
checking for uint32_t... yes
checking for intptr_t... yes
checking for uintptr_t... (cached) yes
checking for uint_t... no
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for ptrdiff_t... (cached) yes
checking size of char *... 8
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of short... (cached) 2
checking for pathfind in -lgen... no
checking for gettext in -lintl... no
checking for vprintf... (cached) yes
checking for _doprnt... no
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for mmap... (cached) yes
checking for canonicalize_file_name... no
checking for snprintf... (cached) yes
checking for strdup... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... yes
checking for strsignal... (cached) yes
checking for fchmod... (cached) yes
checking for fstat... yes
checking for chmod... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether shell scripts are desired... yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking whether using shell scripts... yes
checking whether statically link autogen to libopts... no
checking whether setjmp() links okay... yes
checking whether __attribute__((format_arg(n))) works... yes
checking whether sigsetjmp() links okay... yes
checking whether with-libxml2-cflags was specified... no
checking whether with-libxml2-libs was specified... no
configure: xml2-config used for CFLAGS: -I/usr/local/include/libxml2 -I/usr/include
configure: xml2-config used for LIBS: -L/usr/local/lib -lxml2 -lz -llzma -L/usr/lib -lm
checking whether libxml2 can be linked with... yes
checking whether sysinfo(2) is Solaris... no
checking whether specify an autogen timeout... no
checking whether strcspn matches prototype and works... no
checking whether uname(2) is POSIX... yes
checking whether runtime library dirs can be specified... -Wl,-R${libdir}
checking whether wanting autogen debugging... no
checking whether name of the packager of this software is supplied... no
checking whether packager-specific version information is supplied... no
checking whether bug reporting URI/e-mail/etc. is supplied... no
checking for GUILE... yes
checking whether a reg expr header is specified... no
checking whether with-libregex was specified... no
checking whether with-libregex-cflags was specified... no
checking whether with-libregex-libs was specified... no
checking whether libregex functions properly... yes
checking whether pathfind(3) works... no
checking whether /dev/zero is readable device... crw-rw-rw- 1 root wheel 0x1b Mar 17 05:26 /dev/zero
checking whether we have a functional realpath(3C)... yes
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
test "X${ac_cv_header_sys_wait_h}" = Xyes
checking for fopencookie... yes
checking for static inline... static inline
checking for working stdnoreturn.h... (cached) yes
checking if malloc debugging is wanted... no
checking for gawk... (cached) /usr/bin/awk
checking for runetype.h... (cached) yes
checking for wchar.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for long double... (cached) yes
checking for strtoul... (cached) yes
checking for ldexpl... yes
checking for frexpl... yes
checking for log in -lm... yes
checking for copysign... yes
checking for copysignl... yes
checking whether ln -s works... yes
test: -ge: unexpected operator
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating autoopts/mk-autoopts-pc
config.status: creating autoopts/autoopts-config
config.status: creating autoopts/tpl/tpl-config.tlib
config.status: creating doc/auto_gen.tpl
config.status: creating autoopts/test/defs
config.status: creating config/mk-shdefs
config.status: creating pkg/pkg-env
config.status: creating Makefile
config.status: creating agen5/Makefile
config.status: creating agen5/test/Makefile
config.status: creating autoopts/Makefile
config.status: creating autoopts/test/Makefile
config.status: creating columns/Makefile
config.status: creating compat/Makefile
config.status: creating doc/Makefile
config.status: creating getdefs/Makefile
config.status: creating getdefs/test/Makefile
config.status: creating pkg/Makefile
config.status: creating snprintfv/Makefile
config.status: creating xml2ag/Makefile
config.status: creating xml2ag/test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing stamp-h commands
configure: WARNING: unrecognized options: --with-libguile
------------------------------------------------------------------------
Configuration:

  Source code location:   .
  Compiler:               cc
  Compiler flags:         -O2 -pipe  -fstack-protector -fno-strict-aliasing
  Host System Type:       amd64-portbld-freebsd11.0
  Install path:           /usr/local

  See config.h for further configuration information.
------------------------------------------------------------------------
===>  Building for autogen-5.18.10
gmake[1]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
/bin/sh config/mk-shdefs config/shdefs
config.status: creating shdef-temp
gmake  all-recursive
gmake[2]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
Making all in compat
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/compat'
:
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/compat'
Making all in snprintfv
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv'
for f in filament.c format.c printf.c mem.c stream.c custom.c ; do echo "#include \"$f\"" ; done > snv.c
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I..   -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c -o snv.lo snv.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -pipe -fstack-protector -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c snv.c  -fPIC -DPIC -o .libs/snv.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -pipe -fstack-protector -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c snv.c -o snv.o >/dev/null 2>&1
mv -f .deps/snv.Tpo .deps/snv.Plo
/bin/sh ../libtool  --tag=CC   --mode=link cc  -O2 -pipe  -fstack-protector -fno-strict-aliasing -no-undefined -fstack-protector -o libsnprintfv.la  snv.lo  -lm -lm 
libtool: link: ar cru .libs/libsnprintfv.a .libs/snv.o 
libtool: link: ranlib .libs/libsnprintfv.a
libtool: link: ( cd ".libs" && rm -f "libsnprintfv.la" && ln -s "../libsnprintfv.la" "libsnprintfv.la" )
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv'
Making all in autoopts
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
gmake  all-recursive
gmake[4]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
Making all in test
gmake[5]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/test'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/test'
gmake[5]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
LGCFLAGS="-I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread " \
AGexe="/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/autogen" GDexe="/usr/ports/devel/autogen/work/autogen-5.18.10/getdefs/getdefs" CLexe="/usr/ports/devel/autogen/work/autogen-5.18.10/columns/columns" srcdir="."     top_srcdir=".." builddir="." top_builddir=".." AO_AGE="16"     AO_CURRENT="41" AO_REVISION="1" POSIX_SHELL="/usr/local/bin/bash" \
    /usr/local/bin/bash ./mk-tpl-config.sh tpl-config-stamp autoopts/options.h autoopts/usage-txt.h genshell.h option-xat-attribute.h option-value-type.h ao-strs.h ag-char-map.h autoopts.h project.h proto.h parse-duration.c ao-strs.c option-value-type.c option-xat-attribute.c autoopts.c alias.c    boolean.c   check.c     configfile.c cook.c enum.c     env.c       file.c      find.c       genshell.c load.c     makeshell.c nested.c    numeric.c    pgusage.c putshell.c reset.c     restore.c   save.c       sort.c stack.c    streqvcmp.c text_mmap.c time.c       tokenize.c usage.c    version.c   init.c
./mk-tpl-config.sh: redirection error: cannot duplicate fd: Bad file descriptor
./mk-tpl-config.sh: line 50: 1: Bad file descriptor
./mk-tpl-config.sh: line 53: 8: Bad file descriptor
./mk-tpl-config.sh: line 49: 8: Bad file descriptor
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../autoopts  -DPKGDATADIR='"/usr/local/share/autogen"' -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c -o libopts_la-libopts.lo `test -f 'libopts.c' || echo './'`libopts.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../autoopts -DPKGDATADIR=\"/usr/local/share/autogen\" -O2 -pipe -fstack-protector -fno-strict-aliasing -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c  -fPIC -DPIC -o .libs/libopts_la-libopts.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../autoopts -DPKGDATADIR=\"/usr/local/share/autogen\" -O2 -pipe -fstack-protector -fno-strict-aliasing -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c -o libopts_la-libopts.o >/dev/null 2>&1
mv -f .deps/libopts_la-libopts.Tpo .deps/libopts_la-libopts.Plo
/bin/sh ../libtool  --tag=CC   --mode=link cc -DPKGDATADIR='"/usr/local/share/autogen"' -O2 -pipe  -fstack-protector -fno-strict-aliasing -version-info 41:1:16 -fstack-protector -o libopts.la -rpath /usr/local/lib  libopts_la-libopts.lo ../snprintfv/libsnprintfv.la -lm -lm 
libtool: link: cc -shared  -fPIC -DPIC  .libs/libopts_la-libopts.o  -Wl,--whole-archive ../snprintfv/.libs/libsnprintfv.a -Wl,--no-whole-archive  -lm  -O2 -fstack-protector -fstack-protector   -Wl,-soname -Wl,libopts.so.25 -o .libs/libopts.so.25.16.1
libtool: link: (cd ".libs" && rm -f "libopts.so.25" && ln -s "libopts.so.25.16.1" "libopts.so.25")
libtool: link: (cd ".libs" && rm -f "libopts.so" && ln -s "libopts.so.25.16.1" "libopts.so")
libtool: link: (cd .libs/libopts.lax/libsnprintfv.a && ar x "/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/../snprintfv/.libs/libsnprintfv.a")
libtool: link: ar cru .libs/libopts.a  libopts_la-libopts.o  .libs/libopts.lax/libsnprintfv.a/snv.o 
libtool: link: ranlib .libs/libopts.a
libtool: link: rm -fr .libs/libopts.lax
libtool: link: ( cd ".libs" && rm -f "libopts.la" && ln -s "../libopts.la" "libopts.la" )
/usr/local/bin/bash mk-autoopts-pc pkgconfig/autoopts.pc
gmake[5]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
gmake[4]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
Making all in agen5
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
Making all in test
gmake[4]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/test'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/test'
gmake[4]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
exec > ag.c ; \
echo '#undef   PKGDATADIR' ; \
echo '#define  PKGDATADIR "/usr/local/share/autogen"' ; \
echo '#undef   LIBDATADIR' ; \
echo '#define  LIBDATADIR "/usr/local/lib/autogen"' ; \
mk=`set -- gmake ; command -v $1` ; \
echo 'static char const make_prog[] = "'$mk'";' ; \
printf '\n#define  DEFINING 1\n' ; \
printf '#include "%s"\n' autoopts/project.h autogen.h autogen.c defParse-fsm.c defLex.c directive.c funcCase.c funcDef.c funcEval.c funcFor.c funcIf.c functions.c expExtract.c expFormat.c expGperf.c expGuile.c  expMake.c expOutput.c  expPrint.c  expState.c expString.c agShell.c ag-text.c    agCgi.c      agDep.c      agInit.c     agUtils.c cgi-fsm.c    defDirect.c  defFind.c    defLoad.c    fmemopen.c loadPseudo.c opts.c       scribble.c   tpLoad.c     tpParse.c tpProcess.c
cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../autoopts  -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread  -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT autogen-ag.o -MD -MP -MF .deps/autogen-ag.Tpo -c -o autogen-ag.o `test -f 'ag.c' || echo './'`ag.c
In file included from ag.c:35:
./cgi-fsm.c:57:16: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
        return CGI_EV_END;
        ~~~~~~ ^~~~~~~~~~
./cgi-fsm.c:67:16: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
        return CGI_EV_ALPHA;
        ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:70:16: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
        return CGI_EV_NAME_CHAR;
        ~~~~~~ ^~~~~~~~~~~~~~~~
./cgi-fsm.c:73:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '_': return CGI_EV_NAME_CHAR; break;
              ~~~~~~ ^~~~~~~~~~~~~~~~
./cgi-fsm.c:74:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '=': return CGI_EV_EQUAL;     break;
              ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:75:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '+': return CGI_EV_SPACE;     break;
              ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:76:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '%': return CGI_EV_ESCAPE;    break;
              ~~~~~~ ^~~~~~~~~~~~~
./cgi-fsm.c:77:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '&': return CGI_EV_SEPARATOR; break;
              ~~~~~~ ^~~~~~~~~~~~~~~~
./cgi-fsm.c:78:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    default:  return CGI_EV_OTHER;     break;
              ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:236:21: warning: implicit conversion from enumeration type
      'te_cgi_state' to different enumeration type 'te_cgi_event'
      [-Wenum-conversion]
        trans_evt = get_next_event(curCh, inlen--, saved_pzOut, outlen);
                  ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 warnings generated.
mv -f .deps/autogen-ag.Tpo .deps/autogen-ag.Po
/bin/sh ../libtool  --tag=CC   --mode=link cc -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread  -O2 -pipe  -fstack-protector -fno-strict-aliasing -export-dynamic  -fstack-protector -o autogen  autogen-ag.o ../autoopts/libopts.la ../snprintfv/libsnprintfv.la -L/usr/local/lib -lguile-2.0 -lgc-threaded  -Wl,-rpath -Wl,/usr/local/lib -lm -lm 
libtool: link: cc -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread -O2 -pipe -fstack-protector -fno-strict-aliasing -fstack-protector -o .libs/autogen autogen-ag.o -Wl,-rpath -Wl,/usr/local/lib -Wl,--export-dynamic  ../autoopts/.libs/libopts.so ../snprintfv/.libs/libsnprintfv.a -L/usr/local/lib -lguile-2.0 -lgc-threaded -lm -pthread -Wl,-rpath -Wl,/usr/local/lib
autogen-ag.o: In function `main':
ag.c:(.text+0xc9): undefined reference to `optionSaveState'
autogen-ag.o: In function `inner_main':
ag.c:(.text+0x778): undefined reference to `optionProcess'
ag.c:(.text+0xae7): undefined reference to `option_streqvcmp'
ag.c:(.text+0xafd): undefined reference to `option_streqvcmp'
ag.c:(.text+0xfee): undefined reference to `option_strequate'
ag.c:(.text+0x1c1d): undefined reference to `optionFree'
autogen-ag.o: In function `dp_run_fsm':
ag.c:(.text+0x246f): undefined reference to `ao_string_cook'
ag.c:(.text+0x27ed): undefined reference to `ao_string_cook'
ag.c:(.text+0x3224): undefined reference to `option_streqvcmp'
ag.c:(.text+0x323e): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `doDir_option':
ag.c:(.text+0x4e86): undefined reference to `optionLoadLine'
autogen-ag.o: In function `ag_scm_string_ends_eqv_p':
ag.c:(.text+0x5734): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `Select_Equivalent_End':
ag.c:(.text+0x579a): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `ag_scm_string_starts_eqv_p':
ag.c:(.text+0x57e8): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `Select_Equivalent_Start':
ag.c:(.text+0x582e): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `ag_scm_string_eqv_p':
ag.c:(.text+0x58ad): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `Select_Equivalent_Full':
ag.c:(.text+0x6475): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `mLoad_Expr':
ag.c:(.text+0x724c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x7559): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x762d): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x76de): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x77c4): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o:ag.c:(.text+0x7869): more undefined references to `ao_string_cook_escape_char' follow
autogen-ag.o: In function `parse_tpl':
ag.c:(.text+0x8129): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `mFunc_Invoke':
ag.c:(.text+0x8ef5): undefined reference to `option_streqvcmp'
ag.c:(.text+0x90c8): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `eval':
ag.c:(.text+0x935c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x946c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `skip_expr':
ag.c:(.text+0xa74c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `find_def_ent':
ag.c:(.text+0xb663): undefined reference to `option_strtransform'
autogen-ag.o: In function `mLoad_For':
ag.c:(.text+0xb98a): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xbb4c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xbd6c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `eval_true':
ag.c:(.text+0xc25a): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `tpl_load':
ag.c:(.text+0xcc90): undefined reference to `text_mmap'
ag.c:(.text+0xd014): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xd02e): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xd58a): undefined reference to `text_munmap'
autogen-ag.o: In function `mFunc_Unknown':
ag.c:(.text+0xd7a8): undefined reference to `option_streqvcmp'
ag.c:(.text+0xd8bf): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xd9ff): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `parse_mac_args':
ag.c:(.text+0xe1c5): undefined reference to `option_strtransform'
ag.c:(.text+0xe2fd): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xe3c0): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xe57d): undefined reference to `option_streqvcmp'
ag.c:(.text+0xe5cd): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `find_file':
ag.c:(.text+0xed97): undefined reference to `optionMakePath'
ag.c:(.text+0xef0c): undefined reference to `optionMakePath'
autogen-ag.o: In function `ag_scm_license':
ag.c:(.text+0x10666): undefined reference to `text_munmap'
ag.c:(.text+0x10696): undefined reference to `text_mmap'
autogen-ag.o: In function `ag_scm_ag_function_p':
ag.c:(.text+0x14e48): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `ag_scm_set_option':
ag.c:(.text+0x153e7): undefined reference to `optionLoadLine'
autogen-ag.o: In function `ag_scm_mk_gettextable':
ag.c:(.text+0x157d1): undefined reference to `optionPrintParagraphs'
autogen-ag.o: In function `ag_scm_kr_string':
ag.c:(.text+0x1608a): undefined reference to `optionQuoteString'
autogen-ag.o: In function `ag_scm_c_string':
ag.c:(.text+0x160ca): undefined reference to `optionQuoteString'
autogen-ag.o: In function `ag_scm_time_string_to_number':
ag.c:(.text+0x167bf): undefined reference to `option_parse_duration'
autogen-ag.o: In function `vusage_message':
ag.c:(.text+0x17e05): undefined reference to `optionUsage'
autogen-ag.o: In function `do_stdout_tpl':
ag.c:(.text+0x18a3f): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `number_and_insert_ent':
ag.c:(.text+0x192a8): undefined reference to `option_strtransform'
autogen-ag.o: In function `skip_quote':
ag.c:(.text+0x19a2c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `order_def_list':
ag.c:(.text+0x19a86): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `find_def':
ag.c:(.text+0x1a2f8): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `doOptLoop_Limit':
ag.c:(.text+0x1b2e1): undefined reference to `optionNumericVal'
ag.c:(.text+0x1b31f): undefined reference to `optionShowRange'
autogen-ag.o: In function `doOptTimeout':
ag.c:(.text+0x1b351): undefined reference to `optionNumericVal'
ag.c:(.text+0x1b387): undefined reference to `optionShowRange'
autogen-ag.o: In function `doOptTrace':
ag.c:(.text+0x1b3b3): undefined reference to `optionEnumerationVal'
ag.c:(.text+0x1b3d6): undefined reference to `optionEnumerationVal'
autogen-ag.o: In function `doUsageOpt':
ag.c:(.text+0x1b701): undefined reference to `optionUsage'
autogen-ag.o:(.data+0xd8): undefined reference to `optionUsage'
autogen-ag.o:(.data+0x200): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xa20): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xaf0): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xb58): undefined reference to `optionUnstackArg'
autogen-ag.o:(.data+0xcf8): undefined reference to `optionResetOpt'
autogen-ag.o:(.data+0xd60): undefined reference to `optionPrintVersion'
autogen-ag.o:(.data+0xe30): undefined reference to `optionPagedUsage'
autogen-ag.o:(.data+0xf68): undefined reference to `optionLoadOpt'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:574: autogen] Error 1
gmake[4]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
gmake[3]: *** [Makefile:696: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
gmake[2]: *** [Makefile:540: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
gmake[1]: *** [Makefile:447: all] Error 2
gmake[1]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/autogen
Comment 4 Anton Yuzhaninov 2017-03-17 22:54:01 UTC
You build logs contain messages:

./mk-tpl-config.sh: redirection error: cannot duplicate fd: Bad file descriptor
./mk-tpl-config.sh: line 50: 1: Bad file descriptor
./mk-tpl-config.sh: line 53: 8: Bad file descriptor
./mk-tpl-config.sh: line 49: 8: Bad file descriptor

I have no such messages in my build logs.

Try to debug this script:
devel/autogen # make patch
devel/autogen # cd `make -V WRKSRC`
autogen-5.18.10 # $EDITOR autoopts/mk-tpl-config.sh
# add 
# set -x
# after shebang
autogen-5.18.10 # cd -
# make

And look for messages from mk-tpl-config.sh
Comment 5 Anton Yuzhaninov 2017-03-17 23:18:15 UTC
Also make sure, that you don't hit limits kern.maxfiles or kern.maxfilesperproc
Comment 6 Anton Yuzhaninov 2017-03-17 23:20:30 UTC
If you use poudriere, please run
'poudriere testport' using latest poudriere version (3.1.15) - it writes section
"Resource limits" to the log file.
Comment 7 Robert Cina 2017-03-17 23:50:43 UTC
Hopefully, I have followed the instructions properly. I still get the bad file descriptor in the log of the build. I also have noticed that another port on this system (java/openjdk8) for which I submitted a bug here https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217846 has a build issue related to a bad file descriptor and this may or may not be related.

>>Also make sure, that you don't hit limits kern.maxfiles or kern.maxfilesperproc

How do I see whether kern.maxfiles or kern.maxfilesperproc have hit their limits? This is a new installation of freebsd on this system so I haven't done any tuning to any sysctl's. I am following 11-stable.

Here's the system details. 

FreeBSD alto.localdomain 11.0-STABLE FreeBSD 11.0-STABLE #0 r315336: Wed Mar 15 20:06:21 EDT 2017     root@alto.localdomain:/usr/obj/usr/src/sys/GENERIC  amd64

As I just set this FreeBSD system up the other day, I only use Synth to manage ports.  However, I have used poudriere before briefly. I can set it up but it will take some time since poudriere is a bit more involved to set up. I have to read up in the handbook about how to use poudriere testport as well.  


Anyways, here is the output from the make that you requested I do.

 make
===>   autogen-5.18.10 depends on executable: bash - found
===>   autogen-5.18.10 depends on executable: gmake - found
===>   autogen-5.18.10 depends on package: pkgconf>=1.3.0_1 - found
===>   autogen-5.18.10 depends on package: perl5>=5.24<5.25 - found
===>   autogen-5.18.10 depends on shared library: libguile-2.0.so - found (/usr/local/lib/libguile-2.0.so)
===>   autogen-5.18.10 depends on shared library: libgc-threaded.so - found (/usr/local/lib/libgc-threaded.so)
===>   autogen-5.18.10 depends on shared library: libxml2.so - found (/usr/local/lib/libxml2.so)
===>  Configuring for autogen-5.18.10
configure: WARNING: unrecognized options: --with-libguile
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-portbld-freebsd11.0
checking host system type... amd64-portbld-freebsd11.0
checking target system type... amd64-portbld-freebsd11.0
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

                        A    U    T    O    G    E    N

GNU AutoGen-5.18.10                                          libopts.la-41:1:16
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking whether gmake supports nested variables... yes
checking for style of include used by gmake... GNU
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... (cached) /usr/bin/fgrep
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd11.0 file names to amd64-portbld-freebsd11.0 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd11.0 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd11.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if malloc debugging is wanted... no
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking for texi2html... :
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for dlopen in -ldl... no
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for long double with more range or precision than double... yes
checking for long long... (cached) yes
checking for uintmax_t... yes
checking for size_t... (cached) yes
checking for wchar_t... (cached) yes
checking size of char*... 8
checking size of int... 4
checking size of long... 8
checking size of short... 2
checking for strchr... yes
checking for strlcpy... (cached) yes
checking for snprintf... (cached) yes
checking for dlopen... (cached) yes
checking for library containing copysign... -lm
checking for library containing copysignl... none required
checking for library containing modfl... none required
checking for unsigned long long int... (cached) yes
checking libio.h usability... no
checking libio.h presence... no
checking for libio.h... no
checking for ctype.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking whether sigsetjmp is declared... yes
checking whether sys_siglist is declared... (cached) yes
checking for putenv... (cached) yes
checking for getdate_r... no
checking for utimes... (cached) yes
checking for futimes... (cached) yes
checking for inline... (cached) inline
checking for long long int... (cached) yes
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 2.0
configure: found guile 2.0
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/mman.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking sys/procset.h usability... no
checking sys/procset.h presence... no
checking for sys/procset.h... no
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking sys/stropts.h usability... no
checking sys/stropts.h presence... no
checking for sys/stropts.h... no
checking for sys/time.h... (cached) yes
checking for sys/un.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for libgen.h... (cached) yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking for memory.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for stdbool.h... (cached) yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking for unistd.h... (cached) yes
checking for utime.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for string.h... (cached) yes
checking for limits.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for working stdnoreturn.h... yes
checking for runetype.h... yes
checking for wchar.h... (cached) yes
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... (cached) yes
checking for uint16_t... yes
checking for int32_t... (cached) yes
checking for uint32_t... yes
checking for intptr_t... yes
checking for uintptr_t... (cached) yes
checking for uint_t... no
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for ptrdiff_t... (cached) yes
checking size of char *... 8
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of short... (cached) 2
checking for pathfind in -lgen... no
checking for gettext in -lintl... no
checking for vprintf... (cached) yes
checking for _doprnt... no
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for mmap... (cached) yes
checking for canonicalize_file_name... no
checking for snprintf... (cached) yes
checking for strdup... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... yes
checking for strsignal... (cached) yes
checking for fchmod... (cached) yes
checking for fstat... yes
checking for chmod... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether shell scripts are desired... yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking whether using shell scripts... yes
checking whether statically link autogen to libopts... no
checking whether setjmp() links okay... yes
checking whether __attribute__((format_arg(n))) works... yes
checking whether sigsetjmp() links okay... yes
checking whether with-libxml2-cflags was specified... no
checking whether with-libxml2-libs was specified... no
configure: xml2-config used for CFLAGS: -I/usr/local/include/libxml2 -I/usr/include
configure: xml2-config used for LIBS: -L/usr/local/lib -lxml2 -lz -llzma -L/usr/lib -lm
checking whether libxml2 can be linked with... yes
checking whether sysinfo(2) is Solaris... no
checking whether specify an autogen timeout... no
checking whether strcspn matches prototype and works... no
checking whether uname(2) is POSIX... yes
checking whether runtime library dirs can be specified... -Wl,-R${libdir}
checking whether wanting autogen debugging... no
checking whether name of the packager of this software is supplied... no
checking whether packager-specific version information is supplied... no
checking whether bug reporting URI/e-mail/etc. is supplied... no
checking for GUILE... yes
checking whether a reg expr header is specified... no
checking whether with-libregex was specified... no
checking whether with-libregex-cflags was specified... no
checking whether with-libregex-libs was specified... no
checking whether libregex functions properly... yes
checking whether pathfind(3) works... no
checking whether /dev/zero is readable device... crw-rw-rw- 1 root wheel 0x1b Mar 17 19:07 /dev/zero
checking whether we have a functional realpath(3C)... yes
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
test "X${ac_cv_header_sys_wait_h}" = Xyes
checking for fopencookie... yes
checking for static inline... static inline
checking for working stdnoreturn.h... (cached) yes
checking if malloc debugging is wanted... no
checking for gawk... (cached) /usr/bin/awk
checking for runetype.h... (cached) yes
checking for wchar.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for long double... (cached) yes
checking for strtoul... (cached) yes
checking for ldexpl... yes
checking for frexpl... yes
checking for log in -lm... yes
checking for copysign... yes
checking for copysignl... yes
checking whether ln -s works... yes
test: -ge: unexpected operator
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating autoopts/mk-autoopts-pc
config.status: creating autoopts/autoopts-config
config.status: creating autoopts/tpl/tpl-config.tlib
config.status: creating doc/auto_gen.tpl
config.status: creating autoopts/test/defs
config.status: creating config/mk-shdefs
config.status: creating pkg/pkg-env
config.status: creating Makefile
config.status: creating agen5/Makefile
config.status: creating agen5/test/Makefile
config.status: creating autoopts/Makefile
config.status: creating autoopts/test/Makefile
config.status: creating columns/Makefile
config.status: creating compat/Makefile
config.status: creating doc/Makefile
config.status: creating getdefs/Makefile
config.status: creating getdefs/test/Makefile
config.status: creating pkg/Makefile
config.status: creating snprintfv/Makefile
config.status: creating xml2ag/Makefile
config.status: creating xml2ag/test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing stamp-h commands
configure: WARNING: unrecognized options: --with-libguile
------------------------------------------------------------------------
Configuration:

  Source code location:   .
  Compiler:               cc
  Compiler flags:         -O2 -pipe  -fstack-protector -fno-strict-aliasing
  Host System Type:       amd64-portbld-freebsd11.0
  Install path:           /usr/local

  See config.h for further configuration information.
------------------------------------------------------------------------
===>  Building for autogen-5.18.10
gmake[1]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
/bin/sh config/mk-shdefs config/shdefs
config.status: creating shdef-temp
gmake  all-recursive
gmake[2]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
Making all in compat
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/compat'
:
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/compat'
Making all in snprintfv
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv'
for f in filament.c format.c printf.c mem.c stream.c custom.c ; do echo "#include \"$f\"" ; done > snv.c
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I..   -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c -o snv.lo snv.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -pipe -fstack-protector -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c snv.c  -fPIC -DPIC -o .libs/snv.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -pipe -fstack-protector -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c snv.c -o snv.o >/dev/null 2>&1
mv -f .deps/snv.Tpo .deps/snv.Plo
/bin/sh ../libtool  --tag=CC   --mode=link cc  -O2 -pipe  -fstack-protector -fno-strict-aliasing -no-undefined -fstack-protector -o libsnprintfv.la  snv.lo  -lm -lm 
libtool: link: ar cru .libs/libsnprintfv.a .libs/snv.o 
libtool: link: ranlib .libs/libsnprintfv.a
libtool: link: ( cd ".libs" && rm -f "libsnprintfv.la" && ln -s "../libsnprintfv.la" "libsnprintfv.la" )
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv'
Making all in autoopts
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
gmake  all-recursive
gmake[4]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
Making all in test
gmake[5]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/test'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/test'
gmake[5]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
LGCFLAGS="-I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread " \
AGexe="/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/autogen" GDexe="/usr/ports/devel/autogen/work/autogen-5.18.10/getdefs/getdefs" CLexe="/usr/ports/devel/autogen/work/autogen-5.18.10/columns/columns" srcdir="."     top_srcdir=".." builddir="." top_builddir=".." AO_AGE="16"     AO_CURRENT="41" AO_REVISION="1" POSIX_SHELL="/usr/local/bin/bash" \
    /usr/local/bin/bash ./mk-tpl-config.sh tpl-config-stamp autoopts/options.h autoopts/usage-txt.h genshell.h option-xat-attribute.h option-value-type.h ao-strs.h ag-char-map.h autoopts.h project.h proto.h parse-duration.c ao-strs.c option-value-type.c option-xat-attribute.c autoopts.c alias.c    boolean.c   check.c     configfile.c cook.c enum.c     env.c       file.c      find.c       genshell.c load.c     makeshell.c nested.c    numeric.c    pgusage.c putshell.c reset.c     restore.c   save.c       sort.c stack.c    streqvcmp.c text_mmap.c time.c       tokenize.c usage.c    version.c   init.c
++ basename ./mk-tpl-config.sh .sh
+ prog=mk-tpl-config
+ init
+ PS4='>tpc-${FUNCNAME}> '
>tpc-init> progpid=31239
>>tpc-init> basename ./mk-tpl-config.sh
>tpc-init> prog=mk-tpl-config.sh
>>>tpc-init> dirname ./mk-tpl-config.sh
>>tpc-init> cd .
>>tpc-init> pwd
>tpc-init> progdir=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-init> readonly progpid progdir prog
>tpc-init> for d in top_srcdir srcdir top_builddir builddir
>tpc-init> eval 'v=${top_srcdir}'
>>tpc-init> v=..
>tpc-init> test -d ..
>>tpc-init> cd ..
>>tpc-init> pwd
>tpc-init> v=/usr/ports/devel/autogen/work/autogen-5.18.10
>tpc-init> eval top_srcdir=/usr/ports/devel/autogen/work/autogen-5.18.10
>>tpc-init> top_srcdir=/usr/ports/devel/autogen/work/autogen-5.18.10
>tpc-init> for d in top_srcdir srcdir top_builddir builddir
>tpc-init> eval 'v=${srcdir}'
>>tpc-init> v=.
>tpc-init> test -d .
>>tpc-init> cd .
>>tpc-init> pwd
>tpc-init> v=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-init> eval srcdir=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>>tpc-init> srcdir=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-init> for d in top_srcdir srcdir top_builddir builddir
>tpc-init> eval 'v=${top_builddir}'
>>tpc-init> v=..
>tpc-init> test -d ..
>>tpc-init> cd ..
>>tpc-init> pwd
>tpc-init> v=/usr/ports/devel/autogen/work/autogen-5.18.10
>tpc-init> eval top_builddir=/usr/ports/devel/autogen/work/autogen-5.18.10
>>tpc-init> top_builddir=/usr/ports/devel/autogen/work/autogen-5.18.10
>tpc-init> for d in top_srcdir srcdir top_builddir builddir
>tpc-init> eval 'v=${builddir}'
>>tpc-init> v=.
>tpc-init> test -d .
>>tpc-init> cd .
>>tpc-init> pwd
>tpc-init> v=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-init> eval builddir=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>>tpc-init> builddir=/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-init> . /usr/ports/devel/autogen/work/autogen-5.18.10/config/shdefs
>>tpc-source> case "`set -o | /usr/bin/awk '/^allexport/ {print $2}'`" in
>>>tpc-source> set -o
>>>tpc-source> /usr/bin/awk '/^allexport/ {print $2}'
>>tpc-source> cleara='set +a'
>>tpc-source> set -a
>>tpc-source> top_srcdir=/usr/ports/devel/autogen/work/autogen-5.18.10
>>tpc-source> top_builddir=/usr/ports/devel/autogen/work/autogen-5.18.10
>>tpc-source> prefix=/usr/local
>>tpc-source> exec_prefix=
>>tpc-source> PACKAGE_TARNAME=autogen
>>tpc-source> eval 'datarootdir="/usr/local/share"'
>>>tpc-source> datarootdir=/usr/local/share
>>tpc-source> eval 'mandir="/usr/local/man"'
>>>tpc-source> mandir=/usr/local/man
>>tpc-source> eval 'localedir="/usr/local/share/locale"'
>>>tpc-source> localedir=/usr/local/share/locale
>>tpc-source> eval 'infodir="/usr/local/info"'
>>>tpc-source> infodir=/usr/local/info
>>tpc-source> eval 'docdir="/usr/local/share/doc/autogen"'
>>>tpc-source> docdir=/usr/local/share/doc/autogen
>>tpc-source> eval 'datadir="/usr/local/share"'
>>>tpc-source> datadir=/usr/local/share
>>tpc-source> eval 'libdir="/lib"'
>>>tpc-source> libdir=/lib
>>tpc-source> eval 'libexecdir="/libexec"'
>>>tpc-source> libexecdir=/libexec
>>tpc-source> eval 'sbindir="/sbin"'
>>>tpc-source> sbindir=/sbin
>>tpc-source> eval 'bindir="/bin"'
>>>tpc-source> bindir=/bin
>>tpc-source> eval 'includedir="/usr/local/include"'
>>>tpc-source> includedir=/usr/local/include
>>tpc-source> eval 'localstatedir="/var"'
>>>tpc-source> localstatedir=/var
>>tpc-source> eval 'sharedstatedir="/usr/local/com"'
>>>tpc-source> sharedstatedir=/usr/local/com
>>tpc-source> eval 'sysconfdir="/usr/local/etc"'
>>>tpc-source> sysconfdir=/usr/local/etc
>>tpc-source> eval 'oldincludedir="/usr/include"'
>>>tpc-source> oldincludedir=/usr/include
>>tpc-source> LTLIBOBJS=
>>tpc-source> CONFIG_SHELL=/usr/local/bin/bash
>>tpc-source> eval 'INCLIST="-I/usr/ports/devel/autogen/work/autogen-5.18.10 -I/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts"'
>>>tpc-source> INCLIST='-I/usr/ports/devel/autogen/work/autogen-5.18.10 -I/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
>>tpc-source> ENABLE_STATIC=yes
>>tpc-source> DEBUG_ENABLED=
>>tpc-source> CLexe=/usr/ports/devel/autogen/work/autogen-5.18.10/columns/columns
>>tpc-source> GDexe=/usr/ports/devel/autogen/work/autogen-5.18.10/getdefs/getdefs
>>tpc-source> AGexe=/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/autogen
>>tpc-source> CLnam=columns
>>tpc-source> GDnam=getdefs
>>tpc-source> AGnam=autogen
>>tpc-source> M4_SRC='ag_macros.m4 extensions.m4 gnulib-cache.m4 gnulib-comp.m4 guile.m4 lib-link.m4 libopts.m4 liboptschk.m4 libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4 onceonly.m4 pkg.m4 snprintfv.m4 stdnoreturn.m4 unlocked-io.m4'
>>tpc-source> LIBOBJS=
>>tpc-source> eval 'INCSNPRINTFV="-I/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv -I/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv"'
>>>tpc-source> INCSNPRINTFV='-I/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv -I/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv'
>>tpc-source> eval 'LIBSNPRINTFV="/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv/snprintfv/libsnprintfvc.la"'
>>>tpc-source> LIBSNPRINTFV=/usr/ports/devel/autogen/work/autogen-5.18.10/snprintfv/snprintfv/libsnprintfvc.la
>>tpc-source> POSIX_SHELL=/usr/local/bin/bash
>>tpc-source> STDNORETURN_H=
>>tpc-source> GUILE_LDFLAGS='-L/usr/local/lib -lguile-2.0 -lgc-threaded '
>>tpc-source> GUILE_LTLIBS='-L/usr/local/lib -lguile-2.0 -lgc-threaded  -R/usr/local/lib'
>>tpc-source> GUILE_LIBS='-L/usr/local/lib -lguile-2.0 -lgc-threaded  -Wl,-rpath -Wl,/usr/local/lib'
>>tpc-source> GUILE_CFLAGS='-I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread '
>>tpc-source> GUILE_EFFECTIVE_VERSION=2.0
>>tpc-source> PKG_CONFIG_LIBDIR=
>>tpc-source> PKG_CONFIG_PATH=
>>tpc-source> PKG_CONFIG=pkgconf
>>tpc-source> eval 'AG_LDFLAGS="-Wl,-R/lib"'
>>>tpc-source> AG_LDFLAGS=-Wl,-R/lib
>>tpc-source> AG_TIMEOUT=5
>>tpc-source> AG_XML2=
>>tpc-source> LIBXML2_LIBS='-L/usr/local/lib -lxml2 -lz -llzma -L/usr/lib -lm'
>>tpc-source> LIBXML2_CFLAGS='-I/usr/local/include/libxml2 -I/usr/include'
>>tpc-source> AG_STATIC_AUTOGEN=
>>tpc-source> OPTS_TESTDIR=test
>>tpc-source> DYNAMIC_AG=-export-dynamic
>>tpc-source> TEXI2HTML=:
>>tpc-source> GO_AGE=
>>tpc-source> GO_REVISION=
>>tpc-source> GO_CURRENT=
>>tpc-source> AO_TEMPLATE_VERSION=167937
>>tpc-source> AO_AGE=16
>>tpc-source> AO_REVISION=1
>>tpc-source> AO_CURRENT=41
>>tpc-source> AG_MINOR_VERSION=18
>>tpc-source> AG_MAJOR_VERSION=5
>>tpc-source> AG_VERSION=5.18.10
>>tpc-source> OTOOL64=
>>tpc-source> OTOOL=
>>tpc-source> LIPO=
>>tpc-source> NMEDIT=
>>tpc-source> DSYMUTIL=
>>tpc-source> MANIFEST_TOOL=:
>>tpc-source> RANLIB=ranlib
>>tpc-source> AR=ar
>>tpc-source> LN_S='ln -s'
>>tpc-source> NM='/usr/local/bin/nm -B'
>>tpc-source> DUMPBIN=
>>tpc-source> LD=/usr/bin/ld
>>tpc-source> FGREP=/usr/bin/fgrep
>>tpc-source> SED=/usr/bin/sed
>>tpc-source> OBJDUMP=objdump
>>tpc-source> DLLTOOL=dlltool
>>tpc-source> AS=as
>>tpc-source> EGREP=/usr/bin/egrep
>>tpc-source> GREP=/usr/bin/grep
>>tpc-source> CPP=cpp
>>tpc-source> CCDEPMODE=depmode=gcc3
>>tpc-source> AMDEPBACKSLASH='\'
>>tpc-source> DEPDIR=.deps
>>tpc-source> OBJEXT=o
>>tpc-source> EXEEXT=
>>tpc-source> CPPFLAGS=
>>tpc-source> LDFLAGS=' -fstack-protector'
>>tpc-source> CFLAGS='-O2 -pipe  -fstack-protector -fno-strict-aliasing'
>>tpc-source> CC=cc
>>tpc-source> AM_BACKSLASH='\'
>>tpc-source> AM_DEFAULT_VERBOSITY=1
>>tpc-source> eval 'AMTAR="31239{TAR-tar}"'
>>>tpc-source> AMTAR='31239{TAR-tar}'
>>tpc-source> SET_MAKE=
>>tpc-source> AWK=/usr/bin/awk
>>tpc-source> MKDIR_P='/bin/mkdir -p'
>>tpc-source> STRIP=strip
>>tpc-source> eval 'install_sh="/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/install-sh"'
>>>tpc-source> install_sh='/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/install-sh'
>>tpc-source> eval 'MAKEINFO="/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing makeinfo"'
>>>tpc-source> MAKEINFO='/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing makeinfo'
>>tpc-source> eval 'AUTOHEADER="/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing autoheader"'
>>>tpc-source> AUTOHEADER='/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing autoheader'
>>tpc-source> eval 'AUTOMAKE="/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing automake-1.15"'
>>>tpc-source> AUTOMAKE='/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing automake-1.15'
>>tpc-source> eval 'AUTOCONF="/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing autoconf"'
>>>tpc-source> AUTOCONF='/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing autoconf'
>>tpc-source> eval 'ACLOCAL="/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing aclocal-1.15"'
>>>tpc-source> ACLOCAL='/bin/sh /usr/ports/devel/autogen/work/autogen-5.18.10/config/missing aclocal-1.15'
>>tpc-source> VERSION=5.18.10
>>tpc-source> PACKAGE=autogen
>>tpc-source> CYGPATH_W=echo
>>tpc-source> INSTALL_DATA='install  -m 0644'
>>tpc-source> INSTALL_SCRIPT='install  -m 555'
>>tpc-source> INSTALL_PROGRAM='install  -s -m 555'
>>tpc-source> target_os=freebsd11.0
>>tpc-source> target_vendor=portbld
>>tpc-source> target_cpu=amd64
>>tpc-source> target=amd64-portbld-freebsd11.0
>>tpc-source> host_os=freebsd11.0
>>tpc-source> host_vendor=portbld
>>tpc-source> host_cpu=amd64
>>tpc-source> host=amd64-portbld-freebsd11.0
>>tpc-source> build_os=freebsd11.0
>>tpc-source> build_vendor=portbld
>>tpc-source> build_cpu=amd64
>>tpc-source> build=amd64-portbld-freebsd11.0
>>tpc-source> target_alias=
>>tpc-source> host_alias=
>>tpc-source> build_alias=amd64-portbld-freebsd11.0
>>tpc-source> LIBS='-lm -lm '
>>tpc-source> ECHO_T=
>>tpc-source> ECHO_N=-n
>>tpc-source> ECHO_C=
>>tpc-source> DEFS=-DHAVE_CONFIG_H
>>tpc-source> eval 'psdir="/usr/local/share/doc/autogen"'
>>>tpc-source> psdir=/usr/local/share/doc/autogen
>>tpc-source> eval 'pdfdir="/usr/local/share/doc/autogen"'
>>>tpc-source> pdfdir=/usr/local/share/doc/autogen
>>tpc-source> eval 'dvidir="/usr/local/share/doc/autogen"'
>>>tpc-source> dvidir=/usr/local/share/doc/autogen
>>tpc-source> eval 'htmldir="/usr/local/share/doc/autogen"'
>>>tpc-source> htmldir=/usr/local/share/doc/autogen
>>tpc-source> program_transform_name=s,x,x,
>>tpc-source> PACKAGE_URL=http://www.gnu.org/software/autogen/
>>tpc-source> PACKAGE_BUGREPORT=autogen-users@lists.sourceforge.net
>>tpc-source> PACKAGE_STRING='GNU AutoGen 5.18.10'
>>tpc-source> PACKAGE_VERSION=5.18.10
>>tpc-source> PACKAGE_NAME='GNU AutoGen'
>>tpc-source> PATH_SEPARATOR=:
>>tpc-source> SHELL=/bin/sh
>>tpc-source> eval set +a
>>>tpc-source> set +a
>tpc-> collect_src tpl-config-stamp autoopts/options.h autoopts/usage-txt.h genshell.h option-xat-attribute.h option-value-type.h ao-strs.h ag-char-map.h autoopts.h project.h proto.h parse-duration.c ao-strs.c option-value-type.c option-xat-attribute.c autoopts.c alias.c boolean.c check.c configfile.c cook.c enum.c env.c file.c find.c genshell.c load.c makeshell.c nested.c numeric.c pgusage.c putshell.c reset.c restore.c save.c sort.c stack.c streqvcmp.c text_mmap.c time.c tokenize.c usage.c version.c init.c
>tpc-collect_src> exec
./mk-tpl-config.sh: redirection error: cannot duplicate fd: Bad file descriptor
./mk-tpl-config.sh: line 50: 1: Bad file descriptor
>tpc-collect_src> cd /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-collect_src> sentinel_file=tpl-config-stamp
>tpc-collect_src> shift
>tpc-collect_src> cat
./mk-tpl-config.sh: line 53: 8: Bad file descriptor
./mk-tpl-config.sh: line 49: 8: Bad file descriptor
>tpc-> extension_defines
>tpc-extension_defines> cd /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl
>tpc-extension_defines> test -f tpl-config.tlib
>tpc-extension_defines> test -f /usr/ports/devel/autogen/work/autogen-5.18.10/config.h
>tpc-extension_defines> /usr/bin/grep extension-defines tpl-config.tlib
>>tpc-extension_defines> sed -n '/POSIX.*SOURCE/,/does not conform to ANSI C/{
	    /^#/p
	}
	/does not conform to ANSI C/q' /usr/ports/devel/autogen/work/autogen-5.18.10/config.h
>tpc-extension_defines> txt=
>tpc-extension_defines> sed '/define  *top-build-dir/d;/^;;;/d' tpl-config.tlib
>tpc-extension_defines> cat
>>tpc-extension_defines> cd /usr/ports/devel/autogen/work/autogen-5.18.10
>>tpc-extension_defines> pwd
>>tpc-extension_defines> cd /usr/ports/devel/autogen/work/autogen-5.18.10
>>tpc-extension_defines> pwd
>tpc-extension_defines> mv -f tpl-config.31239 tpl-config.tlib
>tpc-> fix_scripts
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.sh ${srcdir}/tpl/*.pl
>>tpc-fix_scripts> basename /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/man2texi.sh
>>tpc-fix_scripts> sed 's/\.[sp][hl]$//'
>tpc-fix_scripts> d=man2texi
>>tpc-fix_scripts> sed 1q /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/man2texi.sh
>tpc-fix_scripts> st='#! /bin/sh'
>tpc-fix_scripts> case "$st" in
>tpc-fix_scripts> echo '#!' /usr/local/bin/bash
>tpc-fix_scripts> sed 1d /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/man2texi.sh
>tpc-fix_scripts> chmod 755 man2texi
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.sh ${srcdir}/tpl/*.pl
>>tpc-fix_scripts> basename /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/texi2man.sh
>>tpc-fix_scripts> sed 's/\.[sp][hl]$//'
>tpc-fix_scripts> d=texi2man
>>tpc-fix_scripts> sed 1q /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/texi2man.sh
>tpc-fix_scripts> st='#! /bin/sh'
>tpc-fix_scripts> case "$st" in
>tpc-fix_scripts> echo '#!' /usr/local/bin/bash
>tpc-fix_scripts> sed 1d /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/texi2man.sh
>tpc-fix_scripts> chmod 755 texi2man
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.sh ${srcdir}/tpl/*.pl
>>tpc-fix_scripts> basename /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/texi2mdoc.sh
>>tpc-fix_scripts> sed 's/\.[sp][hl]$//'
>tpc-fix_scripts> d=texi2mdoc
>>tpc-fix_scripts> sed 1q /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/texi2mdoc.sh
>tpc-fix_scripts> st='#! /bin/sh'
>tpc-fix_scripts> case "$st" in
>tpc-fix_scripts> echo '#!' /usr/local/bin/bash
>tpc-fix_scripts> sed 1d /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/texi2mdoc.sh
>tpc-fix_scripts> chmod 755 texi2mdoc
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.sh ${srcdir}/tpl/*.pl
>>tpc-fix_scripts> basename /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/man2mdoc.pl
>>tpc-fix_scripts> sed 's/\.[sp][hl]$//'
>tpc-fix_scripts> d=man2mdoc
>>tpc-fix_scripts> sed 1q /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/man2mdoc.pl
>tpc-fix_scripts> st='#!/usr/local/bin/perl'
>tpc-fix_scripts> case "$st" in
>>tpc-fix_scripts> which perl
>tpc-fix_scripts> echo '#!' /usr/local/bin/perl
>tpc-fix_scripts> sed 1d /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/man2mdoc.pl
>tpc-fix_scripts> chmod 755 man2mdoc
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.sh ${srcdir}/tpl/*.pl
>>tpc-fix_scripts> basename /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/mdoc2man.pl
>>tpc-fix_scripts> sed 's/\.[sp][hl]$//'
>tpc-fix_scripts> d=mdoc2man
>>tpc-fix_scripts> sed 1q /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/mdoc2man.pl
>tpc-fix_scripts> st='#!/usr/local/bin/perl'
>tpc-fix_scripts> case "$st" in
>>tpc-fix_scripts> which perl
>tpc-fix_scripts> echo '#!' /usr/local/bin/perl
>tpc-fix_scripts> sed 1d /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/mdoc2man.pl
>tpc-fix_scripts> chmod 755 mdoc2man
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.sh ${srcdir}/tpl/*.pl
>>tpc-fix_scripts> basename /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/mdoc2texi.pl
>>tpc-fix_scripts> sed 's/\.[sp][hl]$//'
>tpc-fix_scripts> d=mdoc2texi
>>tpc-fix_scripts> sed 1q /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/mdoc2texi.pl
>tpc-fix_scripts> st='#!/usr/local/bin/perl'
>tpc-fix_scripts> case "$st" in
>>tpc-fix_scripts> which perl
>tpc-fix_scripts> echo '#!' /usr/local/bin/perl
>tpc-fix_scripts> sed 1d /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/tpl/mdoc2texi.pl
>tpc-fix_scripts> chmod 755 mdoc2texi
>tpc-fix_scripts> for f in ${srcdir}/tpl/*.pm
>tpc-fix_scripts> test -f Mdoc.pm
>tpc-fix_scripts> continue
>tpc-> find_shell_prog
>tpc-find_shell_prog> case `uname -s` in
>>tpc-find_shell_prog> uname -s
>tpc-> find_cat_prog
>tpc-find_cat_prog> :
>tpc-find_cat_prog> unalias -a
>tpc-find_cat_prog> unset -f command cat which
>>tpc-find_cat_prog> which cat
>tpc-find_cat_prog> POSIX_CAT=/bin/cat
>tpc-find_cat_prog> test -x /bin/cat
>tpc-find_cat_prog> break
>tpc-find_cat_prog> formats='man mdoc texi'
>tpc-find_cat_prog> for f in $formats
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f man2man
>tpc-find_cat_prog> printf '#! /usr/local/bin/bash\nexec /bin/cat ${1+"$@"}\n'
>tpc-find_cat_prog> chmod 755 man2man
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f man2mdoc
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f man2texi
>tpc-find_cat_prog> for f in $formats
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f mdoc2man
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f mdoc2mdoc
>tpc-find_cat_prog> printf '#! /usr/local/bin/bash\nexec /bin/cat ${1+"$@"}\n'
>tpc-find_cat_prog> chmod 755 mdoc2mdoc
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f mdoc2texi
>tpc-find_cat_prog> for f in $formats
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f texi2man
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f texi2mdoc
>tpc-find_cat_prog> for g in $formats
>tpc-find_cat_prog> test -f texi2texi
>tpc-find_cat_prog> printf '#! /usr/local/bin/bash\nexec /bin/cat ${1+"$@"}\n'
>tpc-find_cat_prog> chmod 755 texi2texi
>tpc-> fix_guile
>tpc-fix_guile> cd /usr/ports/devel/autogen/work/autogen-5.18.10/autoopts
>tpc-fix_guile> find_libguiledir -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread
>tpc-find_libguiledir> guile_scm_h=
>>tpc-find_libguiledir> exec
>tpc-find_libguiledir> libguiledir=/usr/local/include
>tpc-find_libguiledir> test -d /usr/local/include
>tpc-find_libguiledir> test -f /usr/local/include/libguile.h
>tpc-find_libguiledir> set -- /usr/local/include/guile/.
>tpc-find_libguiledir> test -d ''
>tpc-find_libguiledir> test -d /usr/local/include/guile/.
>tpc-find_libguiledir> libguiledir=/usr/local/include/guile
>>tpc-find_libguiledir> guile-config --version
>>tpc-find_libguiledir> sed 's/.* version //'
>tpc-find_libguiledir> v=2.0.14
>tpc-find_libguiledir> test -d /usr/local/include/guile/2.0
>tpc-find_libguiledir> v=2.0
>tpc-find_libguiledir> test -d /usr/local/include/guile/2.0
>tpc-find_libguiledir> libguiledir=/usr/local/include/guile/2.0
>>tpc-find_libguiledir> find /usr/local/include/guile/2.0 -type f -name __scm.h
>tpc-find_libguiledir> guile_scm_h=/usr/local/include/guile/2.0/libguile/__scm.h
>>tpc-fix_guile> exec
>tpc-fix_guile> list=
>tpc-fix_guile> test -z ''
>tpc-fix_guile> exit 0
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../autoopts  -DPKGDATADIR='"/usr/local/share/autogen"' -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c -o libopts_la-libopts.lo `test -f 'libopts.c' || echo './'`libopts.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../autoopts -DPKGDATADIR=\"/usr/local/share/autogen\" -O2 -pipe -fstack-protector -fno-strict-aliasing -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c  -fPIC -DPIC -o .libs/libopts_la-libopts.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../autoopts -DPKGDATADIR=\"/usr/local/share/autogen\" -O2 -pipe -fstack-protector -fno-strict-aliasing -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c -o libopts_la-libopts.o >/dev/null 2>&1
mv -f .deps/libopts_la-libopts.Tpo .deps/libopts_la-libopts.Plo
/bin/sh ../libtool  --tag=CC   --mode=link cc -DPKGDATADIR='"/usr/local/share/autogen"' -O2 -pipe  -fstack-protector -fno-strict-aliasing -version-info 41:1:16 -fstack-protector -o libopts.la -rpath /usr/local/lib  libopts_la-libopts.lo ../snprintfv/libsnprintfv.la -lm -lm 
libtool: link: cc -shared  -fPIC -DPIC  .libs/libopts_la-libopts.o  -Wl,--whole-archive ../snprintfv/.libs/libsnprintfv.a -Wl,--no-whole-archive  -lm  -O2 -fstack-protector -fstack-protector   -Wl,-soname -Wl,libopts.so.25 -o .libs/libopts.so.25.16.1
libtool: link: (cd ".libs" && rm -f "libopts.so.25" && ln -s "libopts.so.25.16.1" "libopts.so.25")
libtool: link: (cd ".libs" && rm -f "libopts.so" && ln -s "libopts.so.25.16.1" "libopts.so")
libtool: link: (cd .libs/libopts.lax/libsnprintfv.a && ar x "/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts/../snprintfv/.libs/libsnprintfv.a")
libtool: link: ar cru .libs/libopts.a  libopts_la-libopts.o  .libs/libopts.lax/libsnprintfv.a/snv.o 
libtool: link: ranlib .libs/libopts.a
libtool: link: rm -fr .libs/libopts.lax
libtool: link: ( cd ".libs" && rm -f "libopts.la" && ln -s "../libopts.la" "libopts.la" )
/usr/local/bin/bash mk-autoopts-pc pkgconfig/autoopts.pc
gmake[5]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
gmake[4]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/autoopts'
Making all in agen5
gmake[3]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
Making all in test
gmake[4]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/test'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5/test'
gmake[4]: Entering directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
exec > ag.c ; \
echo '#undef   PKGDATADIR' ; \
echo '#define  PKGDATADIR "/usr/local/share/autogen"' ; \
echo '#undef   LIBDATADIR' ; \
echo '#define  LIBDATADIR "/usr/local/lib/autogen"' ; \
mk=`set -- gmake ; command -v $1` ; \
echo 'static char const make_prog[] = "'$mk'";' ; \
printf '\n#define  DEFINING 1\n' ; \
printf '#include "%s"\n' autoopts/project.h autogen.h autogen.c defParse-fsm.c defLex.c directive.c funcCase.c funcDef.c funcEval.c funcFor.c funcIf.c functions.c expExtract.c expFormat.c expGperf.c expGuile.c  expMake.c expOutput.c  expPrint.c  expState.c expString.c agShell.c ag-text.c    agCgi.c      agDep.c      agInit.c     agUtils.c cgi-fsm.c    defDirect.c  defFind.c    defLoad.c    fmemopen.c loadPseudo.c opts.c       scribble.c   tpLoad.c     tpParse.c tpProcess.c
cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../autoopts  -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread  -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT autogen-ag.o -MD -MP -MF .deps/autogen-ag.Tpo -c -o autogen-ag.o `test -f 'ag.c' || echo './'`ag.c
In file included from ag.c:35:
./cgi-fsm.c:57:16: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
        return CGI_EV_END;
        ~~~~~~ ^~~~~~~~~~
./cgi-fsm.c:67:16: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
        return CGI_EV_ALPHA;
        ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:70:16: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
        return CGI_EV_NAME_CHAR;
        ~~~~~~ ^~~~~~~~~~~~~~~~
./cgi-fsm.c:73:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '_': return CGI_EV_NAME_CHAR; break;
              ~~~~~~ ^~~~~~~~~~~~~~~~
./cgi-fsm.c:74:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '=': return CGI_EV_EQUAL;     break;
              ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:75:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '+': return CGI_EV_SPACE;     break;
              ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:76:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '%': return CGI_EV_ESCAPE;    break;
              ~~~~~~ ^~~~~~~~~~~~~
./cgi-fsm.c:77:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    case '&': return CGI_EV_SEPARATOR; break;
              ~~~~~~ ^~~~~~~~~~~~~~~~
./cgi-fsm.c:78:22: warning: implicit conversion from enumeration type
      'te_cgi_event' to different enumeration type 'te_cgi_state'
      [-Wenum-conversion]
    default:  return CGI_EV_OTHER;     break;
              ~~~~~~ ^~~~~~~~~~~~
./cgi-fsm.c:236:21: warning: implicit conversion from enumeration type
      'te_cgi_state' to different enumeration type 'te_cgi_event'
      [-Wenum-conversion]
        trans_evt = get_next_event(curCh, inlen--, saved_pzOut, outlen);
                  ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 warnings generated.
mv -f .deps/autogen-ag.Tpo .deps/autogen-ag.Po
/bin/sh ../libtool  --tag=CC   --mode=link cc -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread  -O2 -pipe  -fstack-protector -fno-strict-aliasing -export-dynamic  -fstack-protector -o autogen  autogen-ag.o ../autoopts/libopts.la ../snprintfv/libsnprintfv.la -L/usr/local/lib -lguile-2.0 -lgc-threaded  -Wl,-rpath -Wl,/usr/local/lib -lm -lm 
libtool: link: cc -I/usr/local/include/guile/2.0 -I/usr/local/include -D_THREAD_SAFE -pthread -O2 -pipe -fstack-protector -fno-strict-aliasing -fstack-protector -o .libs/autogen autogen-ag.o -Wl,-rpath -Wl,/usr/local/lib -Wl,--export-dynamic  ../autoopts/.libs/libopts.so ../snprintfv/.libs/libsnprintfv.a -L/usr/local/lib -lguile-2.0 -lgc-threaded -lm -pthread -Wl,-rpath -Wl,/usr/local/lib
autogen-ag.o: In function `main':
ag.c:(.text+0xc9): undefined reference to `optionSaveState'
autogen-ag.o: In function `inner_main':
ag.c:(.text+0x778): undefined reference to `optionProcess'
ag.c:(.text+0xae7): undefined reference to `option_streqvcmp'
ag.c:(.text+0xafd): undefined reference to `option_streqvcmp'
ag.c:(.text+0xfee): undefined reference to `option_strequate'
ag.c:(.text+0x1c1d): undefined reference to `optionFree'
autogen-ag.o: In function `dp_run_fsm':
ag.c:(.text+0x246f): undefined reference to `ao_string_cook'
ag.c:(.text+0x27ed): undefined reference to `ao_string_cook'
ag.c:(.text+0x3224): undefined reference to `option_streqvcmp'
ag.c:(.text+0x323e): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `doDir_option':
ag.c:(.text+0x4e86): undefined reference to `optionLoadLine'
autogen-ag.o: In function `ag_scm_string_ends_eqv_p':
ag.c:(.text+0x5734): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `Select_Equivalent_End':
ag.c:(.text+0x579a): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `ag_scm_string_starts_eqv_p':
ag.c:(.text+0x57e8): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `Select_Equivalent_Start':
ag.c:(.text+0x582e): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `ag_scm_string_eqv_p':
ag.c:(.text+0x58ad): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `Select_Equivalent_Full':
ag.c:(.text+0x6475): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `mLoad_Expr':
ag.c:(.text+0x724c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x7559): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x762d): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x76de): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x77c4): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o:ag.c:(.text+0x7869): more undefined references to `ao_string_cook_escape_char' follow
autogen-ag.o: In function `parse_tpl':
ag.c:(.text+0x8129): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `mFunc_Invoke':
ag.c:(.text+0x8ef5): undefined reference to `option_streqvcmp'
ag.c:(.text+0x90c8): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `eval':
ag.c:(.text+0x935c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0x946c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `skip_expr':
ag.c:(.text+0xa74c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `find_def_ent':
ag.c:(.text+0xb663): undefined reference to `option_strtransform'
autogen-ag.o: In function `mLoad_For':
ag.c:(.text+0xb98a): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xbb4c): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xbd6c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `eval_true':
ag.c:(.text+0xc25a): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `tpl_load':
ag.c:(.text+0xcc90): undefined reference to `text_mmap'
ag.c:(.text+0xd014): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xd02e): undefined reference to `option_strneqvcmp'
ag.c:(.text+0xd58a): undefined reference to `text_munmap'
autogen-ag.o: In function `mFunc_Unknown':
ag.c:(.text+0xd7a8): undefined reference to `option_streqvcmp'
ag.c:(.text+0xd8bf): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xd9ff): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `parse_mac_args':
ag.c:(.text+0xe1c5): undefined reference to `option_strtransform'
ag.c:(.text+0xe2fd): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xe3c0): undefined reference to `ao_string_cook_escape_char'
ag.c:(.text+0xe57d): undefined reference to `option_streqvcmp'
ag.c:(.text+0xe5cd): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `find_file':
ag.c:(.text+0xed97): undefined reference to `optionMakePath'
ag.c:(.text+0xef0c): undefined reference to `optionMakePath'
autogen-ag.o: In function `ag_scm_license':
ag.c:(.text+0x10666): undefined reference to `text_munmap'
ag.c:(.text+0x10696): undefined reference to `text_mmap'
autogen-ag.o: In function `ag_scm_ag_function_p':
ag.c:(.text+0x14e48): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `ag_scm_set_option':
ag.c:(.text+0x153e7): undefined reference to `optionLoadLine'
autogen-ag.o: In function `ag_scm_mk_gettextable':
ag.c:(.text+0x157d1): undefined reference to `optionPrintParagraphs'
autogen-ag.o: In function `ag_scm_kr_string':
ag.c:(.text+0x1608a): undefined reference to `optionQuoteString'
autogen-ag.o: In function `ag_scm_c_string':
ag.c:(.text+0x160ca): undefined reference to `optionQuoteString'
autogen-ag.o: In function `ag_scm_time_string_to_number':
ag.c:(.text+0x167bf): undefined reference to `option_parse_duration'
autogen-ag.o: In function `vusage_message':
ag.c:(.text+0x17e05): undefined reference to `optionUsage'
autogen-ag.o: In function `do_stdout_tpl':
ag.c:(.text+0x18a3f): undefined reference to `option_strneqvcmp'
autogen-ag.o: In function `number_and_insert_ent':
ag.c:(.text+0x192a8): undefined reference to `option_strtransform'
autogen-ag.o: In function `skip_quote':
ag.c:(.text+0x19a2c): undefined reference to `ao_string_cook_escape_char'
autogen-ag.o: In function `order_def_list':
ag.c:(.text+0x19a86): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `find_def':
ag.c:(.text+0x1a2f8): undefined reference to `option_streqvcmp'
autogen-ag.o: In function `doOptLoop_Limit':
ag.c:(.text+0x1b2e1): undefined reference to `optionNumericVal'
ag.c:(.text+0x1b31f): undefined reference to `optionShowRange'
autogen-ag.o: In function `doOptTimeout':
ag.c:(.text+0x1b351): undefined reference to `optionNumericVal'
ag.c:(.text+0x1b387): undefined reference to `optionShowRange'
autogen-ag.o: In function `doOptTrace':
ag.c:(.text+0x1b3b3): undefined reference to `optionEnumerationVal'
ag.c:(.text+0x1b3d6): undefined reference to `optionEnumerationVal'
autogen-ag.o: In function `doUsageOpt':
ag.c:(.text+0x1b701): undefined reference to `optionUsage'
autogen-ag.o:(.data+0xd8): undefined reference to `optionUsage'
autogen-ag.o:(.data+0x200): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xa20): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xaf0): undefined reference to `optionStackArg'
autogen-ag.o:(.data+0xb58): undefined reference to `optionUnstackArg'
autogen-ag.o:(.data+0xcf8): undefined reference to `optionResetOpt'
autogen-ag.o:(.data+0xd60): undefined reference to `optionPrintVersion'
autogen-ag.o:(.data+0xe30): undefined reference to `optionPagedUsage'
autogen-ag.o:(.data+0xf68): undefined reference to `optionLoadOpt'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:574: autogen] Error 1
gmake[4]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
gmake[3]: *** [Makefile:696: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10/agen5'
gmake[2]: *** [Makefile:540: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
gmake[1]: *** [Makefile:447: all] Error 2
gmake[1]: Leaving directory '/usr/ports/devel/autogen/work/autogen-5.18.10'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/autogen
Comment 8 Anton Yuzhaninov 2017-03-18 00:05:40 UTC
(In reply to Robert Cina from comment #7)
> How do I see whether kern.maxfiles or kern.maxfilesperproc have hit their limits?

check dmesg(8) or /var/log/messages
As I remember there should me a message about hitting this limits.
Comment 9 Robert Cina 2017-03-20 12:24:59 UTC
Created attachment 180988 [details]
poudriere testport for devel/autogen

I just attached the poudriere testport for autogen that i did.  It built successfully using poudriere. But I can confirm it still fails when building normally through the ports system. I am going to stick to using poudriere from now on so I have less issues going forward.
Comment 10 Walter Schwarzenfeld 2018-01-13 09:12:47 UTC
I see this:
++ basename ./mk-tpl-config.sh .sh
+ prog=mk-tpl-config
+ init
+ PS4='>tpc-${FUNCNAME}> '

do you have a .bashrc
try to mv .bashrc to _bashrc
and start a new try to build.

I guess there is something weird in .bashrc (if exists).
Comment 11 Walter Schwarzenfeld 2018-01-13 09:16:18 UTC
Don't forget to logout and log new in after mv .bashrc.
Comment 12 Yuri Victorovich freebsd_committer freebsd_triage 2018-02-23 06:48:16 UTC
I can't reproduce the problem, but assigning it to the port maintainer.
Comment 13 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-02-23 14:23:55 UTC
It's an outdated build log for autogen 5.18.10. We have 5.18.12 in the ports tree. I'm going to close this PR. Feel free to open it if needed.

build started at Mon Mar 20 08:15:17 EDT 2017
port directory: /usr/ports/devel/autogen
building for: FreeBSD 11amd64-HEAD 11.0-STABLE FreeBSD 11.0-STABLE r315563 amd64
maintained by: ports@FreeBSD.org
Makefile ident:      $FreeBSD: head/devel/autogen/Makefile 418635 2016-07-16 14:54:55Z pawel $