[MacPorts] #51451: gnutls @3.4.12: build fails on 10.6, undefined symbol strndup.

MacPorts noreply at macports.org
Sun May 22 05:03:11 PDT 2016


#51451: gnutls @3.4.12: build fails on 10.6, undefined symbol strndup.
-----------------------+----------------------
  Reporter:  devans@…  |      Owner:  mps@…
      Type:  defect    |     Status:  reopened
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  gnutls    |
-----------------------+----------------------

Comment (by Peter_Dyballa@…):

 A similar error happens on PPC Tiger, Mac OS X 10.4.11:

 {{{
 :info:build mv -f $depbase.Tpo $depbase.Plo
 :info:build libtool: compile:  /opt/local/bin/gcc-apple-4.2
 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include/p11-kit-1 -I../lib/includes
 -I../lib/includes -I../libdane/includes -I../libdane/includes
 -I../extra/includes -I../extra/includes -I../lib -I../doc/examples
 -I/opt/local/include -W -Wabi -Waddress -Wall -Wattributes -Wbad-function-
 cast -Wcast-align -Wchar-subscripts -Wcomment -Wcomments -Wdeprecated
 -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-
 body -Wendif-labels -Wextra -Wformat-extra-args -Wformat-security
 -Wformat-zero-length -Wimplicit -Wimplicit-function-declaration
 -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain
 -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers
 -Wmissing-include-dirs -Wmissing-prototypes -Wmultichar -Wnested-externs
 -Wnonnull -Wold-style-definition -Woverflow -Woverride-init -Wpacked
 -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast
 -Wpragmas -Wreturn-type -Wsequence-point -Wshadow -Wstrict-aliasing
 -Wstrict-prototypes -Wswitch -Wtrigraphs -Wuninitialized -Wunknown-pragmas
 -Wunsafe-loop-optimizations -Wunused -Wunused-function -Wunused-label
 -Wunused-macros -Wunused-parameter -Wunused-value -Wunused-variable
 -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc
 -Wno-missing-field-initializers -Wno-missing-field-initializers -Wno-
 format-y2k -Wno-unused-value -Wno-unused-parameter -Wno-stack-protector
 -Wno-int-to-pointer-cast -fdiagnostics-show-option -pipe -Os -arch ppc -MT
 pkcs11/pkcs11-mock.lo -MD -MP -MF pkcs11/.deps/pkcs11-mock.Tpo -c
 pkcs11/pkcs11-mock.c  -fno-common -DPIC -o pkcs11/.libs/pkcs11-mock.o
 :info:build cc1: warning: command line option "-Wabi" is valid for
 C++/ObjC++ but not for C
 :info:build cc1: warning: command line option "-Wdeprecated" is valid for
 C++/ObjC++ but not for C
 :info:build pkcs11/pkcs11-mock.c:21:26: error: Availability.h: No such
 file or directory
 :info:build pkcs11/pkcs11-mock.c:23: warning: declaration of 'strndup'
 shadows a built-in function [-Wshadow]
 :info:build make[3]: *** [pkcs11/pkcs11-mock.lo] Error 1
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.4.12/tests'
 :info:build make[2]: *** [all-recursive] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.4.12/tests'
 :info:build make[1]: *** [all-recursive] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.4.12'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.4.12'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.4.12"
 && /usr/bin/make -w all
 }}}

 Another port is being built so I have to wait until I can check whether
 the patch would work.

-- 
Ticket URL: <https://trac.macports.org/ticket/51451#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list