-
Notifications
You must be signed in to change notification settings - Fork 7
multiple definitions: case network static inline
Oleg Grenrus edited this page May 14, 2019
·
2 revisions
Weird linker errors like
dist/build/cbits/ancilData.dyn_o: In function `my_inet_ntoa':
ancilData.c:(.text+0x0): multiple definition of `my_inet_ntoa'
The fix is something like:
-# elif defined(__GNUC__)
+# elif defined(__GNUC_GNU_INLINE__)
# define INLINE extern inline
# else
# define INLINE inline
- network-2.3.2.1 fixes http://hdiff.luite.com/cgit/network/diff?id=2.3.2.1&id2=2.3.2.0
- following 2.4.0.0 regresses http://hdiff.luite.com/cgit/network/diff?id=2.4.0.0&id2=2.3.2.1
- and fixed in 2.4.2.1 http://hdiff.luite.com/cgit/network/diff?id=2.4.2.1&id2=2.4.2.0
See https://github.com/haskell-infra/hackage-trustees/issues/67