cjemorton / skipfish

Automatically exported from code.google.com/p/skipfish
Apache License 2.0
0 stars 0 forks source link

Support OpenBSD #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I can't compile it on openbsd :

tmp//ccitPTK6.o(.text+0x1482): In function `serialize_path':
/home/dbd/Downloads/skipfish/http_client.c:441: warning: sprintf() is often
misused, please use snprintf()
/tmp//ccMD7G7q.o(.text+0xeb3): In function `__DFL_ck_alloc':
/home/dbd/Downloads/skipfish/alloc-inl.h:71: undefined reference to
`malloc_usable_size'
/tmp//ccMD7G7q.o(.text+0xf6a): In function `__DFL_ck_realloc':
/home/dbd/Downloads/skipfish/alloc-inl.h:88: undefined reference to
`malloc_usable_size'
/tmp//ccMD7G7q.o(.text+0xf95):Downloads/skipfish/alloc-inl.h:94: undefined
reference to `malloc_usable_size'
/tmp//ccMD7G7q.o(.text+0x1093): In function `__DFL_ck_strdup':
Downloads/skipfish/alloc-inl.h:116: undefined reference to `malloc_usable_size'
/tmp//ccitPTK6.o(.text+0x11a6): In function `serialize_path':
Downloads/skipfish/http_client.c:635: undefined reference to
`malloc_usable_size'
/tmp//ccitPTK6.o(.text+0x128e):Downloads/skipfish/http_client.c:668: more
undefined references to `malloc_usable_size' follow
collect2: ld returned 1 exit status
*** Error code 1

I also get a warning :

/usr/include/malloc.h:4:2: warning: #warning "<malloc.h> is obsolete, use
<stdlib.h>"

Original issue reported on code.google.com by Jonthan....@gmail.com on 22 Mar 2010 at 9:21

GoogleCodeExporter commented 8 years ago
malloc_size() is absent in OpenBSD up to CURRENT. Emulation would require a 
wrapper
around all malloc interface.

http://www.ivtools.org/ivtools/malloc.c

Alternatively these pieces of code may be just implemented using realloc, which 
would
be less optimal but should work.

Original comment by pawel.kr...@hush.com on 22 Mar 2010 at 12:36

GoogleCodeExporter commented 8 years ago
You might be able to build it in debug mode ('make debug'). Otherwise, OpenBSD 
is not 
officially supported at this time, so I'm updating the bug accordingly.

Original comment by lcam...@gmail.com on 22 Mar 2010 at 3:31

GoogleCodeExporter commented 8 years ago
Issue 37 has been merged into this issue.

Original comment by lcam...@gmail.com on 26 Mar 2010 at 6:33

GoogleCodeExporter commented 8 years ago
I ditched the offending malloc_usable_size code in the most recent build, so it 
should work on OpenBSD as-is, or with minor tweaks. New version upcoming.

Original comment by lcam...@gmail.com on 5 Jul 2010 at 10:00