ports/180736: net/torsocks: aclocal-1.14: error: couldn't open directory 'm4

Marcin Cieslak saper at SAPER.INFO
Mon Jul 22 10:20:01 UTC 2013


>Number:         180736
>Category:       ports
>Synopsis:       net/torsocks: aclocal-1.14: error: couldn't open directory 'm4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 10:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Marcin Cieslak
>Release:        FreeBSD 8.3-STABLE amd64
>Organization:
>Environment:
System: FreeBSD l.saper.info 8.3-STABLE FreeBSD 8.3-STABLE #0: Fri Mar 1 13:10:32 UTC 2013 root at l.saper.info:/usr/obj/usr/src/sys/IPSEC amd64

Installed:

# ls -d /var/db/pkg/libtool* /var/db/pkg/autoconf* /var/db/pkg/automake*
/var/db/pkg/autoconf-2.69
/var/db/pkg/autoconf-wrapper-20130530
/var/db/pkg/automake-1.14
/var/db/pkg/automake-1.4.6_6
/var/db/pkg/automake-wrapper-20130530
/var/db/pkg/libtool-2.2.10
/var/db/pkg/libtool-2.4.2


>Description:

Configure bails out with the message:

Script started on Mon Jul 22 10:01:11 2013
make clean all
===>  Cleaning for torsocks-1.2_1
===>  License GPLv2 accepted by the user
===>  Found saved configuration for torsocks-1.2_1
===> Fetching all distfiles required by torsocks-1.2_1 for building
===>  Extracting for torsocks-1.2_1
=> SHA256 Checksum OK for torsocks-1.2.tar.gz.
===>  Patching for torsocks-1.2_1
===>  Applying FreeBSD patches for torsocks-1.2_1
===>   torsocks-1.2_1 depends on executable: gmake - found
===>   torsocks-1.2_1 depends on file: /usr/local/bin/automake-1.14 - found
===>   torsocks-1.2_1 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   torsocks-1.2_1 depends on package: libtool>=2.4 - found
===>  Configuring for torsocks-1.2_1
aclocal-1.14: error: couldn't open directory 'm4': No such file or directory
*** Error code 1

Stop in /usr/ports/net/torsocks.
*** Error code 1

Stop in /usr/ports/net/torsocks.

Script done on Mon Jul 22 10:01:22 2013

>How-To-Repeat:

Try to compile cleanly.

>Fix:

I have removed changes suggested by libtoolize:

libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

by applying this patch to the port:

diff -ruN -x work torsocks/files/patch-Makefile.am torsocks.mod/files/patch-Makefile.am
--- torsocks/files/patch-Makefile.am	2013-05-26 20:12:35.000000000 +0000
+++ torsocks.mod/files/patch-Makefile.am	1970-01-01 00:00:00.000000000 +0000
@@ -1,9 +0,0 @@
---- Makefile.am.orig	2011-03-05 18:38:11.000000000 +0200
-+++ Makefile.am	2013-03-20 10:13:28.517831100 +0200
-@@ -2,4 +2,6 @@
- # have all needed files, that a GNU package needs
- AUTOMAKE_OPTIONS = foreign 1.4
- 
-+ACLOCAL_AMFLAGS= -I m4
-+
- SUBDIRS = src doc test
diff -ruN -x work torsocks/files/patch-configure.in torsocks.mod/files/patch-configure.in
--- torsocks/files/patch-configure.in	2013-05-26 20:12:35.000000000 +0000
+++ torsocks.mod/files/patch-configure.in	2013-07-22 09:54:51.000000000 +0000
@@ -1,12 +1,11 @@
 --- configure.in.orig	2011-10-24 22:30:58.000000000 +0300
 +++ configure.in	2013-03-20 10:10:59.362840661 +0200
-@@ -3,13 +3,14 @@
+@@ -3,13 +3,13 @@
  ##############################################################################
  
  # Process this file with autoconf to produce a configure script.
 -AC_INIT()
 +AC_INIT([torsocks], [1.2])
-+AC_CONFIG_MACRO_DIR([m4])
  
  # Create a config.g file to store defines generated by configure
 -AC_CONFIG_HEADER(config.h)

After this I only this error:

configure.ac:17: error: required file './compile' not found
configure.ac:17:   'automake --add-missing' can install 'compile'

Full log:

Script started on Mon Jul 22 10:08:11 2013
make clean all
===>  Cleaning for torsocks-1.2_1
===>  License GPLv2 accepted by the user
===>  Found saved configuration for torsocks-1.2_1
===> Fetching all distfiles required by torsocks-1.2_1 for building
===>  Extracting for torsocks-1.2_1
=> SHA256 Checksum OK for torsocks-1.2.tar.gz.
===>  Patching for torsocks-1.2_1
===>  Applying FreeBSD patches for torsocks-1.2_1
===>   torsocks-1.2_1 depends on executable: gmake - found
===>   torsocks-1.2_1 depends on file: /usr/local/bin/automake-1.14 - found
===>   torsocks-1.2_1 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   torsocks-1.2_1 depends on package: libtool>=2.4 - found
===>  Configuring for torsocks-1.2_1
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
/usr/ports/net/torsocks.mod/work/torsocks-1.2/missing: Unknown `--is-lightweight' option
Try `/usr/ports/net/torsocks.mod/work/torsocks-1.2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
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 build system type... amd64-portbld-freebsd8.3
checking host system type... amd64-portbld-freebsd8.3
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 for style of include used by gmake... GNU
checking dependency style of cc... gcc3
checking whether ln -s works... yes
checking if the C compiler accepts -Wall... yes
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 dlfcn.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for sys/mman.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strcspn... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strspn... yes
checking for strtol... (cached) yes
checking for mmap... (cached) yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... yes
checking for strtol... (cached) yes
checking for connect in -l"c"... yes
checking for socket... yes
checking for inet_aton... yes
checking for gethostbyname... (cached) yes
checking for library containing dlopen... none required
checking for library containing res_query... none required
checking for RTLD_NEXT from dlfcn.h... yes
checking for correct select prototype... select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
checking for correct connect prototype... connect(int __fd, const struct sockaddr * __addr, socklen_t __len)
checking for correct close prototype... close(int fd)
checking for correct res_querydomain prototype... res_querydomain(const char *name, const char *domain, int class, int type, unsigned char *answer, int anslen)
checking for correct res_send prototype... res_send(const unsigned char *msg, int msglen, unsigned char *answer, int anslen)
checking for correct res_search prototype... res_search(const char *dname, int class, int type, unsigned char *answer, int anslen)
checking for correct res_query prototype... res_query(const char *dname, int class, int type, unsigned char *answer, int anslen)
checking for correct getpeername prototype... getpeername(int __fd, struct sockaddr * __name, socklen_t *__namelen)
checking for correct poll prototype... poll(struct pollfd *ufds, nfds_t nfds, int timeout)
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
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/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
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-freebsd8.3 file names to amd64-portbld-freebsd8.3 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd8.3 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... no
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/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... no
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... freebsd8.3 ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
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 that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/usewithtor
config.status: creating src/torsocks
config.status: creating doc/torsocks.conf.5
config.status: creating doc/torsocks.8
config.status: creating doc/usewithtor.1
config.status: creating doc/torsocks.1
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
===>  Building for torsocks-1.2_1
CDPATH="${ZSH_VERSION+.}:" && cd . && /usr/local/bin/aclocal-1.14 
 cd . && /usr/local/bin/automake-1.14 --foreign
configure.ac:17: error: required file './compile' not found
configure.ac:17:   'automake --add-missing' can install 'compile'
gmake: *** [Makefile.in] Error 1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop in /usr/ports/net/torsocks.mod.
*** Error code 1

Stop in /usr/ports/net/torsocks.mod.

And I can build torsocks after runing

Script started on Mon Jul 22 10:10:31 2013
# ( cd work/torsocks-1.2/ && automake --add-missing )
configure.ac:17: installing './compile'
Script done on Mon Jul 22 10:10:57 2013

And then torsocks can be compiled successully.

Not an autotools expert to fix this properly, though :(
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list