Jump to content
×
×
  • Create New...
  • 0

malloc-options error compiling database


.Avenue™

Question

  • Premium

.obj/Main.o: In function `main':
/root/workspace/mainline_released/mainline_sg/Srcs/Server/db/src/Main.cpp:69: undefined reference to `_malloc_options'
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:48: ../db_r40146] Error 1
 

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Just posted here in case someone need in one day like me...

Open from you db source Main.cpp

Search 

#ifdef __FreeBSD__
_malloc_options = "A";
#endif

Replace with 

#if defined  (__FreeBSD__) && !defined (__GNUC__)
_malloc_options = "A";
#endif

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / 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.