Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 13:00:22 +0200 (EET)
From:      Sayetsky Anton <vsjcfm@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/176846: [patch] security/p11-kit: mark MAKE_JOBS_UNSAFE
Message-ID:  <201303111100.r2BB0Mk1024432@jw.lds.net.ua>
Resent-Message-ID: <201303111120.r2BBK0wZ094769@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176846
>Category:       ports
>Synopsis:       [patch] security/p11-kit: mark MAKE_JOBS_UNSAFE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 11:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Sayetsky Anton
>Release:        FreeBSD 9.1-RELEASE-p1 amd64
>Organization:
>Environment:
System: FreeBSD jw.local 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #0 r247145: Fri Feb 22 11:53:22 EET 2013 root@jw.local:/usr/obj/media/dvlfiles/build/src/sys/JASONW amd64

>Description:
security/p11-kit fails to build when parallel jobs enabled

--->  Upgrade of security/p11-kit started at: Mon, 11 Mar 2013 12:47:25 +0200
--->  Upgrading 'p11-kit-0.14' to 'p11-kit-0.16.3' (security/p11-kit)
--->  Build of security/p11-kit started at: Mon, 11 Mar 2013 12:47:25 +0200
--->  Building '/usr/ports/security/p11-kit'
===>  Cleaning for p11-kit-0.16.3
===>  Extracting for p11-kit-0.16.3
=> SHA256 Checksum OK for p11-kit-0.16.3.tar.gz.
===>  Patching for p11-kit-0.16.3
===>   p11-kit-0.16.3 depends on package: libtool>=2.4 - found
===>   p11-kit-0.16.3 depends on file: /usr/local/share/certs/ca-root-nss.crt - found
===>   p11-kit-0.16.3 depends on package: libtool>=2.4 - found
===>   p11-kit-0.16.3 depends on shared library: tasn1 - found
===>  Configuring for p11-kit-0.16.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 how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... yes
checking build system type... amd64-portbld-freebsd9.1
checking host system type... amd64-portbld-freebsd9.1
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
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 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-freebsd9.1 file names to amd64-portbld-freebsd9.1 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd9.1 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... 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... freebsd9.1 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... no
checking whether NLS is requested... no
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether to use NLS... no
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 how to run the C preprocessor... cpp
checking whether cc understands -c and -o together... yes
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking whether to use NLS... no
checking for win32... no
checking whether byte ordering is bigendian... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for pthread_mutex_lock in -pthread... yes
checking for library containing dlopen... none required
checking for library containing nanosleep... none required
checking for struct dirent.d_type... yes
checking for getprogname... yes
checking for getexecname... no
checking for basename... yes
checking for mkstemp... yes
checking for mkdtemp... yes
checking for strnstr... yes
checking for memdup... no
checking for strndup... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for vsnprintf... yes
checking for timegm... yes
checking for gmtime_r... yes
checking whether program_invocation_short_name is declared... no
checking whether program_invocation_short_name is available... no
checking whether __progname is declared... no
checking for dgettext in -lintl... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBTASN1... yes
checking if trust module is enabled... yes
checking location of system CA anchors... /usr/local/share/certs/ca-root-nss.crt
checking location of additional system certificates... disabled
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking for gtkdoc-scan... no
checking for xsltproc... /usr/local/bin/xsltproc
checking whether to build documentation... no
checking for debug mode... no (no debug output, NDEBUG)
checking for more warnings... checking whether gcc understands -Wmissing-include-dirs... yes
checking whether gcc understands -Wundef... yes
checking build strict... no
checking whether to build with gcov testing... no
checking that generated files are newer than configure... done
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating build/certs/Makefile
config.status: creating common/Makefile
config.status: creating common/tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/version.xml
config.status: creating po/Makefile.in
config.status: creating p11-kit/Makefile
config.status: creating p11-kit/tests/Makefile
config.status: creating p11-kit/p11-kit-1.pc
config.status: creating p11-kit/pkcs11.conf.example
config.status: creating tools/Makefile
config.status: creating tools/p11-kit-extract-trust
config.status: creating tools/tests/Makefile
config.status: creating trust/Makefile
config.status: creating trust/tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure: build options:

    Host:                            amd64-portbld-freebsd9.1
    Debug build:                     no (no debug output, NDEBUG)
    Strict build:                    no
    Build documentation:             no (no manual, reference)
    System global config:            ${prefix}/etc/pkcs11/pkcs11.conf
    System module config directory:  ${prefix}/etc/pkcs11/modules
    Package module config directory: ${pkgdatadir}/modules
    User global config:              ~/.pkcs11/pkcs11.conf
    User module config directory:    ~/.pkcs11/modules
    Load relative module paths from: ${exec_prefix}/lib/pkcs11

    With libtasn1 dependency:        yes

    Build trust module:              yes
    System certificate anchor paths: /usr/local/share/certs/ca-root-nss.crt
    Other system certificate paths:  

===>  Building for p11-kit-0.16.3
make  all-recursive
Making all in build
Making all in certs
  CC       CuTest.lo
  CCLD     libcutest.la
Making all in common
Making all in .
CC       compat.lo
CC       attrs.lo
CC       array.lo
  CC       buffer.lo
  CC       debug.lo
CC       dict.lo
  CC       library.lo
  CC       mock.lo
  CC       libp11_data_la-asn1.lo
  CC       libp11_data_la-base64.lo
  CC       libp11_data_la-checksum.lo
  CC       libp11_data_la-oid.lo
  CC       libp11_data_la-pem.lo
  CC       libp11_data_la-utf8.lo
  CC       libp11_data_la-x509.lo
  CCLD     libp11-compat.la
  CCLD     libp11-library.la
  CCLD     libp11-data.la
  CCLD     libp11-mock.la
Making all in tests
CC       test-dict.o
CC       test-array.o
CC       test-attrs.o
  CC       test-buffer.o
  CC       test-asn1.o
  CC       test-checksum.o
  CC       test-pem.o
  CC       test-oid.o
  CC       test-utf8.o
  CC       test-x509.o
  CC       frob-cert.o
  CC       frob-ku.o
  CC       frob-eku.o
  CC       frob-oid.o
CCLD     test-asn1
  CCLD     test-buffer
  CCLD     test-array
  CCLD     test-checksum
  CCLD     test-dict
CCLD     test-pem
  CCLD     test-oid
  CCLD     test-utf8
  CCLD     test-attrs
  CCLD     frob-cert
  CCLD     frob-ku
  CCLD     frob-eku
  CCLD     test-x509
  CCLD     frob-oid
Making all in p11-kit
Making all in .
CC       libp11_kit_testable_la-util.lo
CC       libp11_kit_la-util.lo
CC       libp11_kit_testable_la-conf.lo
CC       libp11_kit_la-conf.lo
CC       libp11_kit_testable_la-iter.lo
  CC       libp11_kit_la-iter.lo
  CC       libp11_kit_testable_la-modules.lo
  CC       libp11_kit_la-modules.lo
  CC       libp11_kit_testable_la-pin.lo
  CC       libp11_kit_la-pin.lo
  CC       libp11_kit_testable_la-proxy.lo
  CC       libp11_kit_la-proxy.lo
  CC       libp11_kit_testable_la-messages.lo
  CC       libp11_kit_la-messages.lo
  CC       libp11_kit_testable_la-uri.lo
  CC       libp11_kit_la-uri.lo
  CCLD     libp11-kit-testable.la
  CCLD     libp11-kit.la
Making all in tests
  CC       mock_three_la-mock-module-ep.lo
  CC       mock_one_la-mock-module-ep.lo
  CC       mock_two_la-mock-module-ep.lo
CC       mock-module-ep.lo
  CC       print-messages.o
  CC       progname-test.o
  CC       conf-test.o
CC       uri-test.o
  CC       pin-test.o
  CC       test-init.o
pin-test.c: In function 'callback_one':
pin-test.c:53: warning: unused variable 'data'
CC       test-modules.o
  CC       test-iter.o
  CCLD     print-messages
  CCLD     mock-three.la
  CCLD     mock-four.la
  CCLD     mock-one.la
  CCLD     progname-test
  CCLD     mock-two.la
  CCLD     pin-test
  CCLD     conf-test
  CCLD     test-init
  CCLD     test-modules
  CCLD     uri-test
  CCLD     test-iter
Making all in trust
Making all in .
CC       p11_kit_trust_la-adapter.lo
CC       adapter.lo
CC       p11_kit_trust_la-parser.lo
  CC       parser.lo
  CC       p11_kit_trust_la-module.lo
parser.c: In function 'p11_parse_memory':
parser.c:1012: warning: implicit declaration of function 'basename'
parser.c:1012: warning: nested extern declaration of 'basename'
parser.c:1012: warning: assignment makes pointer from integer without a cast
parser.c: In function 'p11_parse_memory':
parser.c:1012: warning: implicit declaration of function 'basename'
parser.c:1012: warning: nested extern declaration of 'basename'
parser.c:1012: warning: assignment makes pointer from integer without a cast
  CC       module.lo
  CC       p11_kit_trust_la-session.lo
  CC       session.lo
  CC       p11_kit_trust_la-token.lo
  CC       token.lo
  CCLD     p11-kit-trust.la
  CCLD     libtrust-testable.la
Making all in tests
make: don't know how to make ./libtestdata.la. Stop
*** [all-recursive] Error code 1
1 error
*** [all-recursive] Error code 1
1 error
*** [all] Error code 2
1 error
===> Compilation failed unexpectedly.
You have chosen to use multiple make jobs (parallelization) for all ports.
This port was not tested for this setting.  Please remove FORCE_MAKE_JOBS and
retry the build before reporting the failure to the maintainer.
*** [do-build] Error code 1

Stop in /media/dvlfiles/build/ports/security/p11-kit.

>How-To-Repeat:
Set FORCE_MAKE_JOBS and try to build port

>Fix:
Patch attached with submission follows:

--- patch.txt begins here ---
Index: /usr/ports/security/p11-kit/Makefile
===================================================================
--- /usr/ports/security/p11-kit/Makefile	(revision 313861)
+++ /usr/ports/security/p11-kit/Makefile	(working copy)
@@ -26,6 +26,8 @@
 USE_GNOME=	ltverhack gnomehack
 USE_LDCONFIG=	yes
 
+MAKE_JOBS_UNSAFE=	yes
+
 pre-configure:
 	@${REINPLACE_CMD} -e \
 	's|exampledir = $$(p11_system_config)|exampledir = ${EXAMPLESDIR}|' \
--- patch.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303111100.r2BB0Mk1024432>