undefined reference to ambient_handle_fading()

Bug reports and discussion about bugs.
Post Reply
culot
Posts: 1
Joined: Thu Nov 28, 2013 4:35 pm

undefined reference to ambient_handle_fading()

Post by culot »

Hi there,

as the maintainer of TomeNET on FreeBSD I encountered a link error when trying to build tomenet 4.5.5 with the following flags:

Code: Select all

CFLAGS += -g -pipe -Wall -DUSE_GCU -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937
LIBS += -lncurses -lcrypt -lm
The error is an undefined reference to ambient_handle_fading() and I had to apply the following patch to allow the build to complete:

Code: Select all

--- client/nclient.c.orig       2013-11-10 05:48:24.000000000 -0500
+++ client/nclient.c    2013-11-28 09:08:59.000000000 -0500
@@ -4358,7 +4358,11 @@
 #endif
     }

+ #ifdef USE_SOUND_2010
+  #ifdef SOUND_SDL
        if (ambient_fading) ambient_handle_fading();
+  #endif
+ #endif

        /* Handle chat time-stamping too - C. Blue */
        if (c_cfg.time_stamp_chat) {
Hope this helps
Frederic
Post Reply