diff options
author | sevan <sevan> | 2015-01-26 15:52:18 +0000 |
---|---|---|
committer | sevan <sevan> | 2015-01-26 15:52:18 +0000 |
commit | 849799a7f471f2b74678c64cc9d8ee4b35893e26 (patch) | |
tree | 73730a1e0c2a017640f21b6c2001fb14354268b3 | |
parent | 73b596aaaf2a485aabb6b4f5c9223e9bd2934b70 (diff) | |
download | pkgsrc-849799a7f471f2b74678c64cc9d8ee4b35893e26.tar.gz |
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
-rw-r--r-- | net/libnids/distinfo | 3 | ||||
-rw-r--r-- | net/libnids/patches/patch-src_checksum.c | 42 |
2 files changed, 44 insertions, 1 deletions
diff --git a/net/libnids/distinfo b/net/libnids/distinfo index 06531d9da1f..ff6cf51ff1e 100644 --- a/net/libnids/distinfo +++ b/net/libnids/distinfo @@ -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 --git a/net/libnids/patches/patch-src_checksum.c b/net/libnids/patches/patch-src_checksum.c new file mode 100644 index 00000000000..10d557de99e --- /dev/null +++ b/net/libnids/patches/patch-src_checksum.c @@ -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>, 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)) |