Jump to content
  • Create New...
  • 0

Error compiling Vanilla 2.6 DB on FreeBSD 10.2 64bit



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:



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

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
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;

Line 70-72:

  Reveal hidden contents

/*#ifdef __FreeBSD__
    _malloc_options = "A";


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

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

  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • 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.