Jump to content

Error compiling Vanilla 2.6 DB on FreeBSD 10.2 64bit


Recommended Posts

Hello everyone,

 

I've got a small problem when I am compiling the db binary.

I am using the vanilla 2.6 source and didn't modify anything yet.

Furthermore, I am using FreeBSD 10.2 64-Bit.

The error has something to do with the mysql libary.

Parts of my Makefile:

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib -L/usr/local/lib/mysql

LIBS = -lthecore -lmysqlclient -lsql -lpoly -lgame -lm -lz

When running gmake, it throws the following error:

 

Quote

linking ...

 

/tmp//ccEjRDxL.ltrans0.ltrans.o: In function `main':

 

 

<artificial>:(.text.startup+0x72): undefined reference to `_malloc_options'

 

 

collect2: error: ld returned 1 exit status

 

 

Makefile:39: recipe for target '../db_r54180' failed

 

 

gmake: *** [../db_r54180] Error 1

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
38 minutes ago, arves100 said:

Oh dear...

This is a really boring problem.

It's realy easy to fix if you have checked the game too.

Anyway you have to comment this line on main.cpp:

Line 49-51:

  Hide contents

/*#ifdef __FreeBSD__
extern const char * _malloc_options;
#endif*/

Line 70-72:

  Reveal hidden contents

/*#ifdef __FreeBSD__
    _malloc_options = "A";
#endif*/

 

This is a stupid and useless bug. If you find on game\main.cpp you will find the same comments here...

 

 

Please read malloc docmentation. How u can say to disable function if you dont know what really is?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

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.