tags 669501 + patch
thanks

On 19/04/12 21:22, Lucas Nussbaum wrote:
> Relevant part:
>> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../coreapi -I../oRTP/include -I../exosip 
>> -I../mediastreamer2/include   -Wall  -DIN_LINPHONE -DENABLE_TRACE 
>> -D_ORTP_SOURCE   -DOSIP_MT -DHAVE_PTHREAD    -g -O2 -c -o 
>> linphonec-commands.o `test -f 'commands.c' || echo './'`commands.c
>>   CCLD   linphonec
>> linphonec-linphonec.o: In function `linephonec_readline_completion':
>> /«PKGBUILDDIR»/console/linphonec.c:1432: undefined reference to 
>> `rl_attempted_completion_over'
>> linphonec-linphonec.o: In function `linphonec_finish_readline':
>> /«PKGBUILDDIR»/console/linphonec.c:1092: undefined reference to 
>> `stifle_history'
>> /«PKGBUILDDIR»/console/linphonec.c:1093: undefined reference to 
>> `write_history'
>> linphonec-linphonec.o: In function `linphonec_prompt_for_auth_final':
>> /«PKGBUILDDIR»/console/linphonec.c:839: undefined reference to 
>> `rl_event_hook'
>> /«PKGBUILDDIR»/console/linphonec.c:840: undefined reference to 
>> `rl_event_hook'
>> /«PKGBUILDDIR»/console/linphonec.c:889: undefined reference to 
>> `rl_line_buffer'
>> /«PKGBUILDDIR»/console/linphonec.c:890: undefined reference to 
>> `rl_event_hook'
>> linphonec-linphonec.o: In function `linphonec_idle_call':
>> /«PKGBUILDDIR»/console/linphonec.c:1031: undefined reference to 
>> `rl_inhibit_completion'
>> /«PKGBUILDDIR»/console/linphonec.c:1035: undefined reference to 
>> `rl_inhibit_completion'
>> linphonec-linphonec.o: In function `linphonec_readline':
>> /«PKGBUILDDIR»/console/linphonec.c:557: undefined reference to `readline'
>> linphonec-linphonec.o: In function `linephonec_readline_completion':
>> /«PKGBUILDDIR»/console/linphonec.c:1439: undefined reference to 
>> `rl_completion_matches'
>> linphonec-linphonec.o: In function `linphonec_initialize_readline':
>> /«PKGBUILDDIR»/console/linphonec.c:1059: undefined reference to 
>> `rl_readline_name'
>> /«PKGBUILDDIR»/console/linphonec.c:1062: undefined reference to 
>> `rl_set_keyboard_input_timeout'
>> /«PKGBUILDDIR»/console/linphonec.c:1063: undefined reference to 
>> `rl_event_hook'
>> /«PKGBUILDDIR»/console/linphonec.c:1068: undefined reference to 
>> `read_history'
>> /«PKGBUILDDIR»/console/linphonec.c:1074: undefined reference to 
>> `rl_attempted_completion_function'
>> linphonec-linphonec.o: In function `linphonec_main_loop':
>> /«PKGBUILDDIR»/console/linphonec.c:1149: undefined reference to `add_history'
>> linphonec-commands.o: In function `lpc_cmd_codec':
>> /«PKGBUILDDIR»/console/commands.c:2138: undefined reference to 
>> `rl_inhibit_completion'
>> /«PKGBUILDDIR»/console/commands.c:2143: undefined reference to 
>> `rl_inhibit_completion'
>> /«PKGBUILDDIR»/console/commands.c:2143: undefined reference to 
>> `rl_inhibit_completion'
>> linphonec-commands.o: In function `lpc_cmd_proxy':
>> /«PKGBUILDDIR»/console/commands.c:1050: undefined reference to 
>> `rl_inhibit_completion'
>> /«PKGBUILDDIR»/console/commands.c:1054: undefined reference to 
>> `rl_inhibit_completion'
>> collect2: ld returned 1 exit status

Please see the attached patch to fix the detection of readline. Alternatively
one can simply add libncurses5-dev to Build-Depends. This fixes the FTBFS as 
well.

Regards
-- 
Sebastian Ramacher
--- linphone-3.5.2.orig/m4/readline.m4
+++ linphone-3.5.2/m4/readline.m4
@@ -21,8 +21,14 @@ if test "$readline_prefix" != "none"; th
 	LIBS="$LIBS $READLINE_LIBS"
 	AC_CHECK_HEADERS(readline.h readline/readline.h, readline_h_found=yes)
 	AC_CHECK_HEADERS(history.h readline/history.h)
-	
-	AC_CHECK_LIB(readline, readline, [readline_libs_found=yes],[],[-lncurses])
+
+  for termcap_lib in "" termcap curses ncurses; do
+    LIBS="$LIBS_save $READLINE_LIBS $termcap_lib"
+	   AC_CHECK_LIB(readline, readline, [readline_libs_found=yes])
+    if test "x$readline_libs_found" = "xyes" ; then
+      break
+    fi
+  done
 	
 	LIBS=$LIBS_save
 	CPPFLAGS=$CPPFLAGS_save

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to