Skip to content

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

See https://github.com/haskell-infra/hackage-trustees/issues/67

Clone this wiki locally