Summary: | ASTERISK-08343: Reg asterisk-1.4 installation problem-undefined rerference to'ast_copy+_string' | ||
Reporter: | mottano (mottano) | Labels: | |
Date Opened: | 2006-12-13 06:40:43.000-0600 | Date Closed: | 2007-01-02 16:45:46.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) config.log | |
Description: | Hi. After successfully running ./configure I run make. When running make I get the following error.. [CC] ast_expr2f.c -> ast_expr2f.o [CC] ast_expr2.c -> ast_expr2.o [CC] strcompat.c -> strcompat.o [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o -> aelparse aelparse.o(.text+0x3029): In function `ael_yylex': /usr/src/asterisk1/asterisk-1.4.0-beta3/utils/ael.flex:417: undefined reference to `ast_copy_string' ast_expr2f.o(.text+0x1198): In function `ast_expr': /usr/src/asterisk1/asterisk-1.4.0-beta3/utils/ast_expr2.fl:248: undefined reference to `ast_copy_string' collect2: ld returned 1 exit status make[1]: *** [aelparse] Error... plz could answer this issue. -nsthi | ||
Comments: | By: Joshua C. Colp (jcolp) 2006-12-18 11:52:24.000-0600 I wiped out my Asterisk install and was unable to reproduce this issue on either beta3 or 1.4 SVN. What platform/OS/distro are you using and can you try either beta4 or latest 1.4 SVN? Thank you. By: bjweeks (bjweeks) 2006-12-24 04:02:44.000-0600 I am also getting this error but I'm trying to cross compile for ARM, if there is any info you could use to fix this please let me know. By: jeremy (jeremy) 2006-12-26 00:21:25.000-0600 I'm having the same error on FreeBSD and MacOSX with 1.4.0 tarball. On FreeBSD the details are: [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o -> aelparse aelparse.o: In function `ael_yylex': /build/asterisk-1.4.0/utils/ael.flex:419: undefined reference to `ast_copy_string' ast_expr2f.o: In function `ast_expr': /build/asterisk-1.4.0/utils/ast_expr2.fl:250: undefined reference to `ast_copy_string' gmake[1]: *** [aelparse] Error 1 gmake: *** [utils] Error 2 GCC version 2.95.4 FreeBSD 4.11-RELEASE-p17 On OSX: [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o -> aelparse /usr/bin/ld: Undefined symbols: _ast_copy_string collect2: ld returned 1 exit status make[1]: *** [aelparse] Error 1 make: *** [utils] Error 2 GCC: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363) Darwin Kernel Version 8.8.1 Asterisk 1.4 beta 2 however was working fine. By: jeremy (jeremy) 2006-12-26 02:18:58.000-0600 Looks like it's a GCC issue. I've updated my BSD box to GCC 4.0.4 and the problem has gone away. By: jeremy (jeremy) 2006-12-26 04:26:22.000-0600 Just to update. It seems to compile fine if I don't go and customise the build with a "gmake menuselect", as soon as I do this I get the failure. I'm about to test the SVN trunk of 1.4. By: jeremy (jeremy) 2006-12-26 04:54:52.000-0600 I've successfully built the SVN trunk of 1.4 on OSX, but on FreeBSD it's failing further down the track on a fresh checkout: [CC] ast_expr2f.c -> ast_expr2f.o [CC] asterisk.c -> asterisk.o In file included from asterisk.c:406: /usr/include/machine/cpufunc.h:126: error: static declaration of 'ffs' follows non-static declaration gmake[1]: *** [asterisk.o] Error 1 gmake: *** [main] Error 2 This is with GCC 4.0.4 - gcc (GCC) 4.0.4 20061130 (prerelease) [FreeBSD] By: Paul Belanger (pabelanger) 2006-12-26 12:52:20.000-0600 Just compile the latest trunk (48968) on FreeBSD 6.1 (, was not able to reproduce the error. I'd be curious to see what your config.log looks like. By: jeremy (jeremy) 2006-12-26 15:14:33.000-0600 I've attached my config.log. By: jeremy (jeremy) 2006-12-26 18:33:31.000-0600 I've made a slight change to my /usr/include/machine/cpufunc.h and have been able to successfully compile 1.4.0 on FreeBSD 4.11. By: jeremy (jeremy) 2006-12-27 16:06:55.000-0600 I've just done another test with 1.4.0 on FreeBSD 6.1 (FreeBSD 6.1-STABLE). It seems when you gmake menuselect the build fails. However a standard build works ok. I tried the menuselect with only choosing a compiler option "low memory" and again it failed. [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o -> aelparse aelparse.o(.text+0x31f6): In function `ael_yylex': /root/asterisk-1.4.0/utils/ael.flex:417: undefined reference to `ast_copy_string' ast_expr2f.o(.text+0x200f): In function `ast_expr': /root/asterisk-1.4.0/utils/ast_expr2.fl:248: undefined reference to `ast_copy_string' gmake[1]: *** [aelparse] Error 1 gmake: *** [utils] Error 2 This is with gcc (GCC) 3.4.4 [FreeBSD] 20050518. By: Joshua C. Colp (jcolp) 2006-12-27 16:30:37.000-0600 Fixed in 1.4 as of revision 49009 and trunk as of revision 49010. Thanks! By: Steve Murphy (murf) 2007-01-02 16:45:46.000-0600 Watch out! the ast_expr2f.c and ael_lex.c files are generated by flex; those changes needed to be made to ast_expr2.fl and ael.flex instead. I did this, and the changes are in 1.4 r.49273 and trunk r.49238. |