NetBSD Problem Report #52917

From www@NetBSD.org  Wed Jan 10 20:49:06 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BC1E67A18C
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 10 Jan 2018 20:49:06 +0000 (UTC)
Message-Id: <20180110204904.A19367A220@mollari.NetBSD.org>
Date: Wed, 10 Jan 2018 20:49:04 +0000 (UTC)
From: sebastian@endfertig.de
Reply-To: sebastian@endfertig.de
To: gnats-bugs@NetBSD.org
Subject: Error installing guacamole-server from current pkgsrc
X-Send-Pr-Version: www-1.0

>Number:         52917
>Category:       lib
>Synopsis:       Missing pshared mutexes (needed for pkgsrc guacamole-server)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 10 20:50:00 +0000 2018
>Last-Modified:  Thu Jan 11 12:22:48 +0000 2018
>Originator:     Sebas
>Release:        pkgsrc current
>Organization:
>Environment:
NetBSD while 8.0_BETA NetBSD 8.0_BETA (XEN3_DOMU) #0: Tue Dec 26 10:10:38 CET 2017  sebas@:/usr/objdir/sys/arch/amd64/compile/XEN3_DOMU amd64
>Description:
Hello,

I tried to install net/guacamole-server. The "make" process end with the following error:

socket.c:168:5: error: implicit declaration of function 'pthread_mutexattr_setpshared' [-


root@while:/usr/pkgsrc/net/guacamole-server# make
=> Bootstrap dependency digest>=20010302: found digest-20160304
=> Checksum SHA1 OK for guacamole-server-0.9.9.tar.gz
=> Checksum RMD160 OK for guacamole-server-0.9.9.tar.gz
=> Checksum SHA512 OK for guacamole-server-0.9.9.tar.gz
work.x86_64 -> /m/pkgobj/net/guacamole-server/work.x86_64
===> Installing dependencies for guacamole-server-0.9.9nb8
==========================================================================
The following variables will affect the build process of this package,
guacamole-server-0.9.9nb8.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

Based on these variables, the following variables have been set:

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.54.2
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.3.5
=> Build dependency kbproto>=1.0.2: found kbproto-1.0.7
=> Build dependency xproto>=7.0.13: found xproto-7.0.31
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.12
=> Build dependency recordproto>=1.13.1: found recordproto-1.14.2
=> Build dependency xextproto>=7.0.99.1: found xextproto-7.3.0
=> Build dependency inputproto>=2.3: found inputproto-2.3.2
=> Build dependency fixesproto>=4.0.0: found fixesproto-5.0
=> Build dependency renderproto>=0.9.3nb1: found renderproto-0.11.1
=> Build dependency dri2proto>=2.1: found dri2proto-2.8
=> Build dependency dri3proto>=1.0: found dri3proto-1.0
=> Build dependency presentproto>=1.0: found presentproto-1.1
=> Build dependency glproto>=1.4.11: found glproto-1.4.17
=> Build dependency damageproto>=1.1.0: found damageproto-1.2.1
=> Build dependency xf86vidmodeproto>=2.3: found xf86vidmodeproto-2.3.1
=> Build dependency xf86driproto>=2.0.3: found xf86driproto-2.1.1nb1
=> Build dependency cwrappers>=20150314: found cwrappers-20171108
=> Full dependency libvorbis>=1.1.0nb1: found libvorbis-1.3.5
=> Full dependency pulseaudio>=11.0: found pulseaudio-11.1nb1
=> Full dependency ossp-uuid>=1.6.2: found ossp-uuid-1.6.2nb6
=> Full dependency pango>=1.40.3nb2: found pango-1.40.14
=> Full dependency png>=1.6.0nb1: found png-1.6.34
=> Full dependency cairo>=1.14.2nb1: found cairo-1.14.10nb1
=> Full dependency libwebp>=0.6.0: found libwebp-0.6.0nb2
=> Full dependency jpeg>=9: found jpeg-9b
=> Full dependency freerdp>=1.0.2: found freerdp-1.0.2nb25
=> Full dependency libtelnet>=0.21: found libtelnet-0.21
=> Full dependency libVNCServer>=0.9.11: found libVNCServer-0.9.11
=> Full dependency libssh2>=1.7.0nb1: found libssh2-1.8.0
===> Overriding tools for guacamole-server-0.9.9nb8
===> Extracting for guacamole-server-0.9.9nb8
===> Patching for guacamole-server-0.9.9nb8
=> Applying pkgsrc patches for guacamole-server-0.9.9nb8
===> Creating toolchain wrappers for guacamole-server-0.9.9nb8
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/m/pkgobj/net/guacamole-server/work.x86_64/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /m/pkgobj/net/guacamole-server/work.x86_64/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for guacamole-server-0.9.9nb8
=> Substituting "manpath" in src/guacd/man/guacd.conf.5
INFO: [subst.mk:manpath] Nothing changed in ./src/guacd/man/guacd.conf.5.
=> Generating pkg-config file for builtin expat package.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
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... ./install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking how to print strings... printf
checking for style of include used by make... GNU
checking for x86_64--netbsd-gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /m/pkgobj/net/guacamole-server/work.x86_64/.cwrapper/bin/ld
checking if the linker (/m/pkgobj/net/guacamole-server/work.x86_64/.cwrapper/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... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop
checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop
checking for /m/pkgobj/net/guacamole-server/work.x86_64/.cwrapper/bin/ld option to reload object files... -r
checking for x86_64--netbsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
checking for x86_64--netbsd-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64--netbsd-strip... no
checking for strip... strip
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for x86_64--netbsd-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/m/pkgobj/net/guacamole-server/work.x86_64/.cwrapper/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... NetBSD ld.elf_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 for x86_64--netbsd-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... none needed
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking cairo/cairo.h usability... yes
checking cairo/cairo.h presence... yes
checking for cairo/cairo.h... yes
checking pngstruct.h usability... no
checking pngstruct.h presence... no
checking for pngstruct.h... no
checking for cos in -lm... yes
checking for png_write_png in -lpng... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for cairo_create in -lcairo... yes
checking for pthread_create in -lpthread... yes
checking for uuid_make in -lossp-uuid... yes
checking ossp/uuid.h usability... no
checking ossp/uuid.h presence... no
checking for ossp/uuid.h... no
checking whether uuid_make is declared... yes
checking for CU_run_test in -lcunit... no
checking for main in -lwsock32... no
checking for clock_gettime... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for strdup... yes
checking for nanosleep... yes
checking whether png_get_io_ptr is declared... yes
checking whether cairo_format_stride_for_width is declared... yes
checking for size_t... yes
checking for ssize_t... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_CTX_new in -lssl... yes
checking vorbis/vorbisenc.h usability... yes
checking vorbis/vorbisenc.h presence... yes
checking for vorbis/vorbisenc.h... yes
checking for ogg_stream_init in -logg... yes
checking for vorbis_block_init in -lvorbis... yes
checking for vorbis_encode_init in -lvorbisenc... yes
checking for pa_context_new in -lpulse... yes
checking pkg-config is at least version 0.9.0... yes
checking for PANGO... yes
checking for PANGOCAIRO... yes
checking for rfbInitClient in -lvncclient... yes
checking for rfbClient.destHost... yes
checking for rfbClient.destPort... yes
checking whether listenForIncomingConnectionsNoFork is declared... yes
checking for freerdp_new in -lfreerdp-core... yes
checking for glyph_cache_register_callbacks in -lfreerdp-cache... yes
checking for freerdp_channels_new in -lfreerdp-client... no
checking for freerdp_channels_new in -lfreerdp-channels... yes
checking for svc_plugin_init in -lfreerdp-utils... yes
checking for freerdp_image_convert in -lfreerdp-codec... yes
checking whether freerdp_convert_gdi_order_color is declared... no
checking whether freerdp_color_convert_drawing_order_color_to_gdi_color is declared... no
checking for rdpSvcPlugin.interval_ms... no
checking freerdp/locale/keyboard.h usability... no
checking freerdp/locale/keyboard.h presence... no
checking for freerdp/locale/keyboard.h... no
checking freerdp/kbd/layouts.h usability... yes
checking freerdp/kbd/layouts.h presence... yes
checking for freerdp/kbd/layouts.h... yes
checking freerdp/addin.h usability... no
checking freerdp/addin.h presence... no
checking for freerdp/addin.h... no
checking freerdp/client/channels.h usability... no
checking freerdp/client/channels.h presence... no
checking for freerdp/client/channels.h... no
checking for freerdp/client/cliprdr.h... no
checking for freerdp/plugins/cliprdr.h... yes
checking for freerdp/client/disp.h... no
checking whether PubSub_SubscribeChannelConnected is declared... no
checking whether freerdp_register_addin_provider is declared... no
checking whether freerdp_channels_global_init is declared... yes
checking winpr/stream.h usability... no
checking winpr/stream.h presence... no
checking for winpr/stream.h... no
checking whether stream_write_uint8 is declared... yes
checking winpr/wtypes.h usability... no
checking winpr/wtypes.h presence... no
checking for winpr/wtypes.h... no
checking freerdp/types.h usability... yes
checking freerdp/types.h presence... yes
checking for freerdp/types.h... yes
checking for freerdp.ContextSize... no
checking for freerdp.context_size... yes
checking for rdpSettings.Width... no
checking for rdpSettings.Height... no
checking for rdpSettings.FastPathInput... no
checking for rdpSettings.FastPathOutput... no
checking for rdpSettings.SendPreconnectionPdu... no
checking for rdpSettings.OrderSupport... no
checking for rdpSettings.width... yes
checking for rdpSettings.height... yes
checking for rdpSettings.order_support... yes
checking for rdpSettings.audio_playback... yes
checking for rdpSettings.device_redirection... no
checking for CHANNEL_ENTRY_POINTS_FREERDP... no
checking freerdp/version.h usability... no
checking freerdp/version.h presence... no
checking for freerdp/version.h... no
checking whether rdpBitmap.Decompress() requires the codec_id... no
checking whether interleaved_decompress() accepts an additional palette parameter... no
checking whether planar_decompress() can flip... no
checking for rdpContext.codecs... no
checking whether rdpPalette.entries is static... no
checking for rdpPointer.SetDefault... no
checking for rdpPointer.SetNull... no
checking for wMessage.id... no
checking for RDP_EVENT.event_class... yes
checking for libssh2_session_init_ex in -lssh2... yes
checking for gcry_control in -lssh2... no
checking for telnet_init in -ltelnet... yes
checking webp/encode.h usability... yes
checking webp/encode.h presence... yes
checking for webp/encode.h... yes
checking for WebPEncode in -lwebp... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating src/common/Makefile
config.status: creating src/common-ssh/Makefile
config.status: creating src/terminal/Makefile
config.status: creating src/libguac/Makefile
config.status: creating src/guacd/Makefile
config.status: creating src/protocols/rdp/Makefile
config.status: creating src/protocols/ssh/Makefile
config.status: creating src/protocols/telnet/Makefile
config.status: creating src/protocols/vnc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory

------------------------------------------------
guacamole-server version 0.9.9
------------------------------------------------

   Library status:

     freerdp ............. yes
     pango ............... yes
     libssh2 ............. yes
     libssl .............. yes
     libtelnet ........... yes
     libVNCServer ........ yes
     libvorbis ........... yes
     libpulse ............ yes
     libwebp ............. yes

   Protocol support:

      RDP ....... yes
      SSH ....... yes
      Telnet .... yes
      VNC ....... yes

   Init scripts: no

Type "make" to compile guacamole-server.

===> Building for guacamole-server-0.9.9nb8
/usr/bin/make  all-recursive
Making all in src/libguac
  CC       libguac_la-audio.lo
  CC       libguac_la-client.lo
  CC       libguac_la-client-handlers.lo
  CC       libguac_la-encode-jpeg.lo
  CC       libguac_la-encode-png.lo
  CC       libguac_la-error.lo
  CC       libguac_la-hash.lo
  CC       libguac_la-instruction.lo
  CC       libguac_la-palette.lo
  CC       libguac_la-plugin.lo
  CC       libguac_la-pool.lo
  CC       libguac_la-protocol.lo
  CC       libguac_la-raw_encoder.lo
  CC       libguac_la-socket.lo
socket.c: In function 'guac_socket_alloc':
socket.c:168:5: error: implicit declaration of function 'pthread_mutexattr_setpshared' [-Werror=implicit-function-declaration]
     pthread_mutexattr_setpshared(&lock_attributes, PTHREAD_PROCESS_SHARED);
     ^
cc1: all warnings being treated as errors
*** Error code 1

Stop.
make[2]: stopped in /m/pkgobj/net/guacamole-server/work.x86_64/guacamole-server-0.9.9/src/libguac
*** Error code 1

Stop.
make[1]: stopped in /m/pkgobj/net/guacamole-server/work.x86_64/guacamole-server-0.9.9
*** Error code 1

Stop.
make: stopped in /m/pkgobj/net/guacamole-server/work.x86_64/guacamole-server-0.9.9
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/net/guacamole-server
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/guacamole-server

Best regards,
Sebastian


>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->lib-bug-people
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Thu, 11 Jan 2018 12:21:50 +0000
Responsible-Changed-Why:
This is a problem with netbsd's libraries.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.