Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2014 14:41:01 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        ports@freebsd.org
Subject:   Re: Building subversion-1.8.10 under poudriere
Message-ID:  <7C47458A-8B41-47FB-8091-00CA301DDA5B@FreeBSD.org>
In-Reply-To: <53FDCBD8.4060306@digiware.nl>
References:  <53FDCBD8.4060306@digiware.nl>

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

--Apple-Mail=_358FB0D2-5D9F-4B42-A2D3-4B9257D56C24
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_B8A70F0A-1738-4D31-A869-BA3EDCAC279B"


--Apple-Mail=_B8A70F0A-1738-4D31-A869-BA3EDCAC279B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 27 Aug 2014, at 14:15, Willem Jan Withagen <wjw@digiware.nl> wrote:
> Starting to use poudriere, and I'm pleasantly surprised. And even more =
after the first install steps. Don't have to go to all the different =
servers copy my ports-configs, and build...
>=20
> So I'm trying to get subversion build in poudriere for 9.3 amd and I =
keep running into:
>=20
> ----
> cd subversion/svn && /bin/sh =
/wrkdirs/usr/ports/devel/subversion/work/subversion-1.8.10/libtool =
--tag=3DCC --silent --mode=3Dlink clang -all-static =
-Werror=3Dunknown-warning-option -O2 -pipe -fpic -DPIC =
-fno-strict-aliasing    -L/usr/local/lib -L/usr/local/lib/db5 =
-L/usr/local/lib  -rpath /usr/local/lib  -o svn  add-cmd.lo blame-cmd.lo =
cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cl-conflicts.lo =
cleanup-cmd.lo commit-cmd.lo conflict-callbacks.lo copy-cmd.lo =
delete-cmd.lo deprecated.lo diff-cmd.lo export-cmd.lo file-merge.lo =
help-cmd.lo import-cmd.lo info-cmd.lo list-cmd.lo lock-cmd.lo log-cmd.lo =
merge-cmd.lo mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo notify.lo =
patch-cmd.lo propdel-cmd.lo propedit-cmd.lo propget-cmd.lo =
proplist-cmd.lo props.lo propset-cmd.lo relocate-cmd.lo resolve-cmd.lo =
resolved-cmd.lo revert-cmd.lo status-cmd.lo status.lo svn.lo =
switch-cmd.lo unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo =
../../subversion/libsvn_client/libsvn_client-1.la =
../../subversion/libsvn_wc/libsvn_wc-1.la =
../../subversion/libsvn_ra/libsvn_ra-1.la =
../../subversion/libsvn_delta/libsvn_delta-1.la =
../../subversion/libsvn_diff/libsvn_diff-1.la =
../../subversion/libsvn_subr/libsvn_subr-1.la -L/usr/local/lib =
-laprutil-1 -ldb-5.3 -lgdbm -lexpat -liconv -L/usr/local/lib -lapr-1 =
-lcrypt -pthread -lintl
> /usr/local/lib/libapr-1.a(apr_snprintf.o): In function =
`apr_vformatter':
> strings/apr_snprintf.c:(.text+0x61c): undefined reference to `isnan'
> clang: error: linker command failed with exit code 1 (use -v to see =
invocation)

This is a problem in the devel/apr1 port.  It checks for modf(), finds
it in libc, then assumes isnan() also comes from libc.  However, that
does not work for static linking.

Please apply the attached patch for apr1, which I have been using for
some time now.

-Dimitry

--Apple-Mail=_B8A70F0A-1738-4D31-A869-BA3EDCAC279B
Content-Disposition: attachment;
	filename=devel__apr1-3.diff
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="devel__apr1-3.diff"
Content-Transfer-Encoding: 7bit

Index: devel/apr1/files/patch-apr__configure
===================================================================
--- devel/apr1/files/patch-apr__configure	(revision 365273)
+++ devel/apr1/files/patch-apr__configure	(working copy)
@@ -13,6 +13,15 @@
          # 502102 is when libc_r switched to libpthread (aka libkse).
          if test $os_version -ge "502102"; then
            apr_cv_pthreads_cflags="none"
+@@ -18718,7 +18714,7 @@
+ #include <stdio.h>
+ #include <unistd.h>
+ 
+-void main(void)
++int main(void)
+ {
+     int fd, ret = 0;
+     struct stat64 st;
 @@ -18812,11 +18808,7 @@
  # comparisons.
  case $host in
@@ -26,3 +35,17 @@
          ;;
      *linux*)
          os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
+@@ -19147,11 +19139,11 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char modf ();
++char modff ();
+ int
+ main ()
+ {
+-return modf ();
++return modff ();
+   ;
+   return 0;
+ }

--Apple-Mail=_B8A70F0A-1738-4D31-A869-BA3EDCAC279B
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii



--Apple-Mail=_B8A70F0A-1738-4D31-A869-BA3EDCAC279B--

--Apple-Mail=_358FB0D2-5D9F-4B42-A2D3-4B9257D56C24
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

iEYEARECAAYFAlP90eEACgkQsF6jCi4glqPnKQCfT6b8oEBMxhHdgTyLt3MvFRm1
pFoAoKrzbAkPfWx73tUD/wMXuDhcy5oZ
=Yv1O
-----END PGP SIGNATURE-----

--Apple-Mail=_358FB0D2-5D9F-4B42-A2D3-4B9257D56C24--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7C47458A-8B41-47FB-8091-00CA301DDA5B>