Closed AngryPenguinPL closed 2 years ago
Hi!
Thanks for opening this issue @AngryPenguinPL !
Looking at the full build log, it looks like you're missing libbsd(-devel). Can you try compiling with the same installed?
Yes. With libbsd there is the same error https://file-store.openmandriva.org/api/v1/file_stores/2a4359b39d46db091a79a8cac5f45e1e75710108.log?show=true
Sorry for the late reply, but since I didn't have any OpenMandriva install at hand, I first had to get one running.
Can you try applying the following patch?
index d9cbc90..8201104 100644
--- a/python/dnet.pyx
+++ b/python/dnet.pyx
@@ -43,6 +43,9 @@ cdef extern from *:
cdef extern from "string.h":
int strlcpy(char *dst, char *src, int size)
+cdef extern from "bsd/string.h":
+ int strlcpy(char *dst, char *src, int size)
+
cdef __memcpy(char *dst, object src, int n):
if PyBytes_Size(src) != n:
raise ValueError, "not a %d-byte binary string: %r" % (n, src)
Yes, this patch works. Package now compiling fine. Thanks.
Thanks for the confirmation. I've fixed it in devel now. I guess you can live with having the patch in the RPM spec for the moment?
Yes, that's not a problem for me.
Perfect! Thank you!
Hi. When I try compile libdnet 1.16.1 I see this error:
Same error is on Clang 14.0.5 and GCC 12. Worth to add I use Python 3.11 and maybe this cause issue.
Full build log: https://file-store.openmandriva.org/api/v1/file_stores/4e3213be81af54d7d6e94fbedb4011a0d0782b29.log?show=true