Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenBSD #19

Closed
GoogleCodeExporter opened this issue Mar 17, 2015 · 4 comments
Closed

Support OpenBSD #19

GoogleCodeExporter opened this issue Mar 17, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed title: Support OpenBSD
  • Added labels: Type-Enhancement, Priority-Low
  • Removed labels: Type-Defect, Priority-Medium

@GoogleCodeExporter
Copy link
Author

Issue 37 has been merged into this issue.

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant