On Thursday, June 6, 2013 7:47:56 PM UTC+2, Ben Fritz wrote: > On Wednesday, June 5, 2013 5:43:40 PM UTC-5, Andrei Olsen wrote: > > On Thursday, June 6, 2013 12:32:41 AM UTC+2, Ben Fritz wrote: > > > On Wednesday, June 5, 2013 5:27:27 PM UTC-5, Andrei Olsen wrote: > > > > On Wednesday, June 5, 2013 11:47:43 PM UTC+2, Ben Fritz wrote: > > > > > gcc: unrecognized option `-pthread' > > > > > > > > > > It looks like configure checks that -pthread is supported, gets > > > > > pretty convincing evidence that it is NOT supported (unrecognized > > > > > option!) and then tries to use it anyway! > > > > > > > > > > > > Which GCC version are you using? > > > > > > Hard to say, really. "gcc --version" just says "2.95.2". Is that enough? > > > I can compile Vim fine WITHOUT python support, and python itself seemed > > > to compile fine. > > > > Right... you need to use -pthreads (note the s) and not -pthread > > Thanks for that, it allowed me to get that check working for my system > specifically. > > But the actual fix would check both -pthread AND -pthreads and would NOT > decide to use it anyway if it failed. > > And, it still gets a compile error when checking for "sane" libraries unless > I remove that check. > > I attached the diff I used to get it working, but this isn't a good fix > because it removes some checks that are probably needed.
Ben, could you check this patch on your system? I threw in Solaris into VirtualBox, but check if flags are "sane" doesn't fail here. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
--- ../vim-orig/src/auto/configure Fri Jun 7 16:52:58 2013 +++ src/auto/configure Fri Jun 7 20:16:39 2013 @@ -5421,16 +5421,19 @@ fi PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 -$as_echo_n "checking if -pthread should be used... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX threads should be used" >&5 +$as_echo_n "checking if POSIX threads should be used... " >&6; } threadsafe_flag= thread_lib= - if test "`(uname) 2>/dev/null`" != Darwin; then + if test "`(uname) 2>/dev/null`" != Darwin; then test "$GCC" = yes && threadsafe_flag="-pthread" if test "`(uname) 2>/dev/null`" = FreeBSD; then threadsafe_flag="-D_THREAD_SAFE" thread_lib="-pthread" fi + if test "`(uname) 2>/dev/null`" = SunOS; then + threadsafe_flag="-pthreads" + fi fi libs_save_old=$LIBS if test -n "$threadsafe_flag"; then @@ -5726,16 +5729,19 @@ PYTHON3_SRC="if_python3.c" PYTHON3_OBJ="objects/if_python3.o" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 -$as_echo_n "checking if -pthread should be used... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX threads should be used" >&5 +$as_echo_n "checking if POSIX threads should be used... " >&6; } threadsafe_flag= thread_lib= - if test "`(uname) 2>/dev/null`" != Darwin; then + if test "`(uname) 2>/dev/null`" != Darwin; then test "$GCC" = yes && threadsafe_flag="-pthread" if test "`(uname) 2>/dev/null`" = FreeBSD; then threadsafe_flag="-D_THREAD_SAFE" thread_lib="-pthread" fi + if test "`(uname) 2>/dev/null`" = SunOS; then + threadsafe_flag="-pthreads" + fi fi libs_save_old=$LIBS if test -n "$threadsafe_flag"; then