Found the solution - whatever you are building wants to link to zlib. If zlib is built with this patch set, the issue will go away. J On Mon, Sep 22, 2014 at 12:11 AM, Ralf Schülke <ralf.schuelke@xxxxxxxxx> wrote: > Hi again, > after suseccfull ./configure and make , make install i have other problems. > > A) > i will compile a cxxtools demo app, but the g++ says me he cant found the > lib. > --- > ~/Desktop/test> g++ -o httpserver httpserver.cpp -lroot -lcxxtools > > /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/4.8.3/../../../../x86_64-unknown-haiku/bin/ld: > cannot find -lcxxtools > collect2: error: ld returned 1 exit status > --- > > B) > when i make me a tntnet project becaume a lot of errors, i show into > this problem and see, the apps (eccpc and tntnet) don't work i became > a "bind runtime error" > > --- > ecppc --help > runtime_loader: /boot/system/non-packaged/lib/libcxxtools.so.9.0.0: > Could not resolve symbol 'bind' > resolve symbol "bind" returned: -2147478780 > runtime_loader: /boot/system/non-packaged/lib/libcxxtools.so.9.0.0: > Troubles relocating: Symbol not found > --- > > So waht is the problem here? > > I using a nightly build, here my two line from sysinfo: > ~/Desktop> sysinfo > Kernel name: kernel_x86_64 built on: Sep 21 2014 00:29:36 version 0x1 > 2 AMD Athlon II, revision 100f63 running at 3600MHz > > Thanks Ralf > >
$Mama$ --- zconf.h.orig 2014-10-04 05:29:41.408944640 +0000 +++ zconf.h @@ -350,6 +350,18 @@ # endif #endif +#if defined (__HAIKU__) +# ifdef ZLIB_DLL +# ifdef ZLIB_INTERNAL +# define ZEXPORT __declspec(dllexport) +# define ZEXPORTVA __declspec(dllexport) +# else +# define ZEXPORT __declspec(dllimport) +# define ZEXPORTVA __declspec(dllimport) +# endif +# endif +#endif + #ifndef ZEXTERN # define ZEXTERN extern #endif --- zutil.h.orig 2014-10-04 05:29:41.548667392 +0000 +++ zutil.h @@ -145,7 +145,7 @@ extern z_const char * const z_errmsg[10] # define OS_CODE 0x0f #endif -#if defined(_BEOS_) || defined(RISCOS) +#if defined(_BEOS_) || defined(RISCOS) || defined(_HAIKU_) # define fdopen(fd,mode) NULL /* No fdopen() */ #endif