then no changes in code?
Code with no changes will be compiled successfully but won't work. The problem in POSIX [not]compliance of Haiku dl-* functions. Work on this problem is being done but I decided that it is better to make a workaround for now (until next Haiku release).
This is my "patch" to avoid problems:
[code language="bash"]#removing dependence on libm
sed -i 's/ -lz -lm/ -lz/' modules/configure.in
#problems with dladdr on Haiku
sed -i 's/strcmp( ptr, handle->fname )/0/' core/include/loadlib.h[/code]
Literally changing 2 lines. This is kind of ugly but does trick for now.