Summary:ASTERISK-06815: test_this_branch fails to compile
Reporter:Bill Neely (billn)Labels:
Date Opened:2006-04-19 12:52:06Date Closed:2006-04-23 01:44:08
Versions:Frequency of
Description:svn test-this-branch from 4/18/2006 fails to compile on Free BSD 5.4
Following is the error returned:

gmake[1]: Entering directory `/usr/home/ian/test-branch/apps'
gcc  -D_FILE_OFFSET_BITS=64 -pipe  -Wall -Wstrict-prototypes -Wmissing-prototype
s -Wmissing-declarations -g3  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE
-O6  -I/usr/local/include -L/usr/local/lib -march=i386            -fomit-frame-
pointer  -DWITH_SMDI -fPIC   -c -o app_senddtmf.o app_senddtmf.c
app_senddtmf.c:97: error: syntax error before '<<' token
app_senddtmf.c:48: warning: 'tdesc' defined but not used
app_senddtmf.c:50: warning: 'app' defined but not used
app_senddtmf.c:52: warning: 'synopsis' defined but not used
app_senddtmf.c:54: warning: 'descrip' defined but not used
app_senddtmf.c:63: warning: 'senddtmf_exec' defined but not used
gmake[1]: *** [app_senddtmf.o] Error 1
Comments:By: Tilghman Lesher (tilghman) 2006-04-19 14:42:45

Please do a clean checkout and try again.  What you have is a conflict on update.

By: Bill Neely (billn) 2006-04-20 12:03:44

did a clean download of test-this-branch v21738
but am getting the same error

commented out <<<<<<< .working on line 97 of app_senddtmf.c

That gets me past the app_senddtmf error, but now get new error

gcc  -D_FILE_OFFSET_BITS=64 -pipe  -Wall -Wstrict-prototypes -Wmissing-prototype
s -Wmissing-declarations -g3  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE
-O6  -I/usr/local/include -L/usr/local/lib -march=i386            -fomit-frame-
pointer  -fPIC   -c -o format_pcm.o format_pcm.c
format_pcm.c:458: error: unknown field `lockp' specified in initializer
format_pcm.c:458: error: `me' undeclared here (not in a function)
format_pcm.c:458: error: initializer element is not constant
format_pcm.c:458: error: (near initialization for `g722_f.desc_size')
gmake[1]: *** [format_pcm.o] Error 1
gmake[1]: Leaving directory `/usr/home/ian/test-branch/formats'

commented out line 458
//      .lockp = &me,

and got past this one (not sure what the effect of this might be????

got successful compile with these two changes.

By: Tilghman Lesher (tilghman) 2006-04-20 12:16:54

Oh, goodie.  Looks like a conflict was not properly resolved before the file was committed.  Leaving for oej to sort out.

By: Bill Neely (billn) 2006-04-20 12:22:45

after compile, failed to initialize with following error

[app_followme.so]Apr 20 17:20:44 WARNING[27626]: loader.c:726 __load_resource:
new style app_followme.so (0x0) loaded RTLD_LOCAL
Apr 20 17:20:44 WARNING[27626]: loader.c:744 __load_resource: Key routine return
ed NULL in module /usr/local/lib/asterisk/modules/app_followme.so
Apr 20 17:20:44 WARNING[27626]: loader.c:753 __load_resource: 5 errors loading m
odule /usr/local/lib/asterisk/modules/app_followme.so, aborted
Apr 20 17:20:44 WARNING[27626]: loader.c:850 print_and_load: Loading module app_
followme.so failed!

By: Olle Johansson (oej) 2006-04-23 01:43:33

errors in test-this-branch are not handled in the bug tracker, really. I need to update the README with that information.

This issue is resolved many days ago.

By: Olle Johansson (oej) 2006-04-23 01:44:07

Already fixed in svn.