Summary:ASTERISK-16070: asttest fails to compile in centos 5.3
Reporter:Mindaugas Mardosas (kabala)Labels:
Date Opened:2010-05-07 09:41:35Date Closed:2010-05-19 15:34:11
Versions:Frequency of
Description:The lines in Makefile:
asttest: asttest.c $(OBJS) $(T_OBJS) $(L_OBJS) include/asttest/asttest.h
       $(CC) -o $@ $(OBJS) $(L_OBJS) $(T_LIBS) $(L_MODULES) $(L_LIBS)

are missing these options:
-lm -ldl

Finally, the lines should look like this to successfully compile in CentOS 5.3:
asttest: asttest.c $(OBJS) $(T_OBJS) $(L_OBJS) include/asttest/asttest.h
       $(CC) -o $@ $(OBJS) $(L_OBJS) $(T_LIBS) $(L_MODULES) $(L_LIBS) -lm -ldl
Comments:By: Leif Madsen (lmadsen) 2010-05-07 11:43:44


By: Mindaugas Mardosas (kabala) 2010-05-07 13:16:13

one more thing to add - I also changed the variable T_LIBS to look like:


By: Paul Belanger (pabelanger) 2010-05-07 13:39:52

Had some troubles building it yesterday too.  I think the ultimate solutions is to create a ./configure script for it.

By: Mindaugas Mardosas (kabala) 2010-05-07 14:04:32

good decision

By: Leif Madsen (lmadsen) 2010-05-10 11:26:21

Ya I have run into that issue on CentOS as well, and the conclusion Russell and I came to was that a ./configure script was really the way to solve that.

By: Leif Madsen (lmadsen) 2010-05-10 11:27:08

Setting this back to Acknowledge since the resolution is really for a ./configure script for asttest. If someone can submit a patch that provides that, we can move this back up to Ready for Testing. Thanks!

By: Digium Subversion (svnbot) 2010-05-19 15:34:10

Repository: testsuite
Revision: 301

U   asterisk/trunk/asttest/Makefile

r301 | mnicholson | 2010-05-19 15:34:09 -0500 (Wed, 19 May 2010) | 5 lines

Link asttest with -lm and -ldl (for centos compatibility)

(closes issue ASTERISK-16070)
Reported by: kabala