pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libnids Symbols for inline functions are not expor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b6fb3c71f44
branches:  trunk
changeset: 645309:0b6fb3c71f44
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Mon Jan 26 15:52:18 2015 +0000

description:
Symbols for inline functions are not exported when built with clang.
Patch obtained from FreeBSD ports
https://svnweb.freebsd.org/ports/head/net/libnids/files/patch-src__checksum.c?revision=342448&view=co&pathrev=373063

diffstat:

 net/libnids/distinfo                     |   3 +-
 net/libnids/patches/patch-src_checksum.c |  42 ++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletions(-)

diffs (61 lines):

diff -r 0f426d602968 -r 0b6fb3c71f44 net/libnids/distinfo
--- a/net/libnids/distinfo      Mon Jan 26 14:46:51 2015 +0000
+++ b/net/libnids/distinfo      Mon Jan 26 15:52:18 2015 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.12 2013/10/06 08:25:37 obache Exp $
+$NetBSD: distinfo,v 1.13 2015/01/26 15:52:18 sevan Exp $
 
 SHA1 (libnids-1.24.tar.gz) = 9a421df05cefdc4f5f7db95efc001b3c2b5249ce
 RMD160 (libnids-1.24.tar.gz) = 66a1a332a70b316fd83905887dc731b5bf28d715
 Size (libnids-1.24.tar.gz) = 151021 bytes
 SHA1 (patch-configure) = 7ed332940901e91ddb2f48ebe6adc8fad2cdaf7c
 SHA1 (patch-configure.in) = e3a86bc1cf2fe4905f952a635b2b08a234e99c50
+SHA1 (patch-src_checksum.c) = ca988f23ef3d5a344c839a594c26ef64fabe3efb
 SHA1 (patch-src_config.h.in) = 6662fa8279e5d4b5e2be3dc17dc28e489e05538d
 SHA1 (patch-src_libnids.c) = 121f1d119707e113e2e1ec80d798dd09bc335025
diff -r 0f426d602968 -r 0b6fb3c71f44 net/libnids/patches/patch-src_checksum.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libnids/patches/patch-src_checksum.c  Mon Jan 26 15:52:18 2015 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-src_checksum.c,v 1.1 2015/01/26 15:52:18 sevan Exp $
+
+Symbols for inline functions are not exported when built with clang
+Bug #2 file in tracker
+https://sourceforge.net/p/libnids/bugs/2/
+
+--- src/checksum.c.orig        2015-01-25 04:30:20.000000000 +0000
++++ src/checksum.c
+@@ -120,7 +120,7 @@ csum_partial(const u_char * buff, int le
+   By Jorge Cwik <jorge%laser.satlink.net@localhost>, adapted for linux by Arnt
+   Gulbrandsen.
+ */
+-inline u_short ip_fast_csum(u_char * iph, u_int ihl)
++u_short ip_fast_csum(u_char * iph, u_int ihl)
+ {
+   u_int sum;
+   if (dontchksum(((struct ip*)iph)->ip_src.s_addr))
+@@ -191,13 +191,13 @@ csum_tcpudp_magic(u_int saddr, u_int dad
+   this routine is used for miscellaneous IP-like checksums, mainly in
+   icmp.c
+ */
+-inline u_short
++u_short
+ ip_compute_csum(u_char * buff, int len)
+ {
+   return (csum_fold(csum_partial(buff, len, 0)));
+ }
+ 
+-inline u_short
++u_short
+ my_tcp_check(struct tcphdr *th, int len, u_int saddr, u_int daddr)
+ {
+   if (dontchksum(saddr))
+@@ -205,7 +205,7 @@ my_tcp_check(struct tcphdr *th, int len,
+   return csum_tcpudp_magic(saddr, daddr, len, IPPROTO_TCP,
+                          csum_partial((u_char *)th, len, 0));
+ }
+-inline u_short
++u_short
+ my_udp_check(void *u, int len, u_int saddr, u_int daddr)
+ {
+   if (dontchksum(saddr))



Home | Main Index | Thread Index | Old Index