Jump to content

Recommended Posts

Posted
/surrender

Maybe antiroot will be able to help, he's real nice with the FreeBSD. I know a few other people have had this error while trying to compile on FreeBSD, did anyone actually ever find a way to solve this or get it fixed?

Posted
Not sure tbh. But just because of the ease of use i would use Debian. Because then you can put your effort into something more productive =) Like mangos! :o

I do admit Debian is a good operating system, but I am trying to learn the works of BSD. :P

Posted

in dep\\ACE_wrappers\\ace\\config-freebsd.h you will need to add lines

#define ACE_LACKS_GETHOSTBYADDR

#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS

at the top of the file

Posted
If what amaru says works, should that be added to the repo then?:)

I suggest that there be a patch so when you apply it, it adds those lines to that file and it should be called AceFreeBsdPatch or something.

Posted
in dep\\ACE_wrappers\\ace\\config-freebsd.h you will need to add lines

#define ACE_LACKS_GETHOSTBYADDR

#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS

at the top of the file

If this works then that's great, but if for whatever reason it doesn't I'll share what I did to fix my compile.

I copied dep/ACE_wrappers/ace/config-freebsd.h to dep/ACE_wrappers/ace/config.h and added

#define ACE_HAS_MEMCPY_LOOP_UNROLL

to it, and it worked when i rebuilt everything.

By the way there was also a problem with compiling VMaps on FreeBSD for me, it took me a very long time to fix this and I'm not exactly sure which trick I did that actually worked, but I think that it was by editing contrib/vmap_extractor_v3/vmapextract/CMakeLists.txt under "LINK_DIRECTORIES" to put the full directory to libmpq. This would be something like changing

LINK_DIRECTORIES( ${LINK_DIRECTORIES} ../../../dep/libmpq/libmpq/.libs/ )
to
LINK_DIRECTORIES( ${LINK_DIRECTORIES} /home/froid/Documents/mangos-one/dep/libmpq/libmpq/.libs/ )

If that fails I would try adding the path to your libmpq binaries in csh (ex: setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/path/to/libmpq}

Posted
in dep\\ACE_wrappers\\ace\\config-freebsd.h you will need to add lines

#define ACE_LACKS_GETHOSTBYADDR

#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS

at the top of the file

This didn't work, trying the other suggested fix.

Posted
in dep\\ACE_wrappers\\ace\\config-freebsd.h you will need to add lines

#define ACE_LACKS_GETHOSTBYADDR

#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS

at the top of the file

If this works then that's great, but if for whatever reason it doesn't I'll share what I did to fix my compile.

I copied dep/ACE_wrappers/ace/config-freebsd.h to dep/ACE_wrappers/ace/config.h and added

#define ACE_HAS_MEMCPY_LOOP_UNROLL

to it, and it worked when i rebuilt everything.

By the way there was also a problem with compiling VMaps on FreeBSD for me, it took me a very long time to fix this and I'm not exactly sure which trick I did that actually worked, but I think that it was by editing contrib/vmap_extractor_v3/vmapextract/CMakeLists.txt under "LINK_DIRECTORIES" to put the full directory to libmpq. This would be something like changing

LINK_DIRECTORIES( ${LINK_DIRECTORIES} ../../../dep/libmpq/libmpq/.libs/ )
to
LINK_DIRECTORIES( ${LINK_DIRECTORIES} /home/froid/Documents/mangos-one/dep/libmpq/libmpq/.libs/ )

If that fails I would try adding the path to your libmpq binaries in csh (ex: setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/path/to/libmpq}

Thanks! This worked!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use