#19344: Transmission causes an error when building the last trunk.
------------------------+------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  highest    |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+------------------------

Comment (by anonymous):

 I deleted patch "010_libtransmission_fallocate64_eglibc.patch" which
 content is:
 {{{
 --- a/libtransmission/fdlimit.c 2014-07-01 20:08:59.000000000 +0300
 +++ b/libtransmission/fdlimit.c 2014-07-13 13:30:17.000000000 +0300
 @@ -22,7 +22,8 @@
   #include <fcntl.h>
  #endif

 -#ifdef HAVE_FALLOCATE64
 +/* no need to define fallocate64 in glibc/eglibc case */
 +#if defined (__UCLIBC__) && (HAVE_FALLOCATE64)
    /* FIXME can't find the right #include voodoo to pick up the
 declaration.. */
    extern int fallocate64 (int fd, int mode, uint64_t offset, uint64_t
 len);
  #endif
 }}}
 and replace it with file "010-delete-extern-fallocate64.patch" which
 content is
 {{{
 --- ./libtransmission/fdlimit.c 2015-03-29 17:02:37.736463097 +0800
 +++ ./libtransmission.new/fdlimit.c     2015-03-29 17:01:38.156461786
 +0800
 @@ -22,11 +22,6 @@
   #include <fcntl.h>
  #endif

 -#ifdef HAVE_FALLOCATE64
 -  /* FIXME can't find the right #include voodoo to pick up the
 declaration.. */
 -  extern int fallocate64 (int fd, int mode, uint64_t offset, uint64_t
 len);
 -#endif
 -
  #ifdef HAVE_XFS_XFS_H
   #include <xfs/xfs.h>
  #endif
 }}}

 Because the function definition exported by the libtransmission/fdlimit.c
 is lightly different than the function definition in fcntl.h that is
 installed by uclibc from r45100. The previous patch [0] tends to export
 function to work both with uclibc and eglibc, but it is useless now cause
 uclibc and eglibc don't need export.

 compile successfully after changes above.
 [0] https://lists.openwrt.org/pipermail/openwrt-
 devel/2012-July/016199.html

--
Ticket URL: <https://dev.openwrt.org/ticket/19344#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to