Cr41s3 2 Posted December 22, 2015 Share Posted December 22, 2015 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 More sharing options...
Cr41s3 2 Posted December 26, 2015 Author Share Posted December 26, 2015 Problem is still unsolved. Link to comment Share on other sites More sharing options...
JachuPL 308 Posted December 30, 2015 Share Posted December 30, 2015 I have the same error linking my own source, but also using FreeBSD 10.2 (i386). If somebody can share a solution, I'd be very grateful Link to comment Share on other sites More sharing options...
Juppsy 4 Posted February 11, 2016 Share Posted February 11, 2016 Same here Link to comment Share on other sites More sharing options...
ds_aim 241 Posted February 11, 2016 Share Posted February 11, 2016 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now