Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-10-16 Thread Christian Ebert
* Bram Moolenaar on Friday, September 22, 2006 at 14:24:09 +0200:
 The configure script has a specific check for not adding -pthread on Mac
 OS/X.  It looks like you used the --disable-darwin argument or somehow
 disabled Darwin in another way.  Please check src/auto/config.log.

I just found out that the warning when compiling w/o GUI must
have gone with one of the recent patches.

Thank you.

c
-- 
_B A U S T E L L E N_ lesen! --- http://www.blacktrash.org/baustellen.html


Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Benji Fisher
On Fri, Sep 22, 2006 at 09:53:06AM +0200, Christian Ebert wrote:
 Hello,
 
 I wanted to ask this for quite a long time (Vim 6.4 actually):
 
 When I compile with --enable-pythoninterp I get the following
 warnings:
 
 $ head -n5 vim-make.log
 Starting make in the src directory.
 If there are problems, cd to the src directory and run make there
 cd src  gnumake first
 CC=gcc -Iproto -DHAVE_CONFIG_H   -I/sw/include-I/sw/include  
 -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include  
 -I/sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/CORE  
 -I/sw/include/python2.4 -pthreadsrcdir=. sh ./osdef.sh
 gcc: unrecognized option `-pthread'
 [...]
 
 etc.
 
 $ grep pthread vim-configure.log
 checking if -pthread should be used... yes
 checking for pthread_np.h... no
 $ ls -1 /usr/include/pthread*
 /usr/include/pthread.h
 /usr/include/pthread_impl.h
 
 $ vim --version
 VIM - Vi IMproved 7.0 (2006 May 7, compiled Sep 16 2006 00:05:46)
 Included patches: 1-109
 Compiled by [EMAIL PROTECTED]
 Huge version without GUI.  Features included (+) or not (-):
[snip]
 +python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent 
[snip]
system vimrc file: $VIM/vimrc
  user vimrc file: $HOME/.vimrc
   user exrc file: $HOME/.exrc
   fall-back for $VIM: /usr/local/share/vim
 Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -I/sw/include  
 -I/sw/include-I/sw/include  -DPERL_DARWIN -no-cpp-precomp 
 -fno-strict-aliasing -I/usr/local/include  
 -I/sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/CORE  
 -I/sw/include/python2.4 -pthread   
 Linking: gcc   -L/sw/lib -L/usr/local/lib -o vim   -lncurses   -liconv   
 -L/sw/lib -L/usr/local/lib 
 /sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
  -L/sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/CORE -lperl -lm -lc 
 -L/sw/lib/python2.4/config -lpython2.4 -u _PyMac_Error
 
 This is on MacOS 10.3.9:
 $ uname -a
 Darwin krille.blacktrash.org 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 
 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh 
 powerpc
 
 However it seems to work. But I can't be sure because I don't use
 'pythoninterp' very often.
 
 Ideas anyone?

 I also have OS X 10.3.9, but I usually compile with the Carbon/Aqua
GUI.  I do not see pthread anywhere in the output of make.

 Where do your log files come from?  Are you using a script to
compile vim?  If you tell me what you do to configure and build, I can
try to reproduce the problem.

HTH --Benji Fisher


Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Bram Moolenaar

Christian Ebert wrote:

 I wanted to ask this for quite a long time (Vim 6.4 actually):
 
 When I compile with --enable-pythoninterp I get the following
 warnings:
 
 $ head -n5 vim-make.log
 Starting make in the src directory.
 If there are problems, cd to the src directory and run make there
 cd src  gnumake first
 CC=gcc -Iproto -DHAVE_CONFIG_H   -I/sw/include-I/sw/include  
 -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include  
 -I/sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/CORE  
 -I/sw/include/python2.4 -pthreadsrcdir=. sh ./osdef.sh
 gcc: unrecognized option `-pthread'
 [...]

The configure script has a specific check for not adding -pthread on Mac
OS/X.  It looks like you used the --disable-darwin argument or somehow
disabled Darwin in another way.  Please check src/auto/config.log.

-- 
Yesterday, all my deadlines seemed so far away
now it looks as though it's freeze in four days
oh I believe in cvs..
[ CVS log Beatles style for FreeBSD ports/INDEX, Satoshi Asami ]

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Christian Ebert
* Benji Fisher on Friday, September 22, 2006 at 08:19:12 -0400:
 On Fri, Sep 22, 2006 at 09:53:06AM +0200, Christian Ebert wrote:
 Linking: gcc   -L/sw/lib -L/usr/local/lib -o vim   -lncurses   -liconv   
 -L/sw/lib -L/usr/local/lib 
 /sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
  -L/sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/CORE -lperl -lm -lc 
 -L/sw/lib/python2.4/config -lpython2.4 -u _PyMac_Error

As I mentioned in my reply to Bram I compile with
--disable-darwin, otherwise the respective perl and python libs
in /sw are not linked. Plus I like that Vim stays case sensitive
regarding paths.
 
  I also have OS X 10.3.9, but I usually compile with the Carbon/Aqua
 GUI.  I do not see pthread anywhere in the output of make.

My bad. I don't want the GUI, and disabled Darwin.

  Where do your log files come from?

./configure 21 | tee vim-config.log

Oops, just detected the nice log in src/auto; sorry.

  Are you using a script to compile vim?

No.

 If you tell me what you do to configure and build, I can
 try to reproduce the problem.

CFLAGS=-I/sw/include LDFLAGS=-L/sw/lib \
./configure --prefix=/usr/local --with-features=huge \
--enable-multibyte --enable-pythoninterp --enable-perlinterp \
--without-x --disable-gui \
--disable-gtk-check --disable-gtk2-check \
--disable-motif-check --disable-athena-check \
--disable-nextaw-check --disable-carbon-check \
--disable-darwin --disable-nls \
--with-compiledby=[EMAIL PROTECTED]

As in my other mail: If the warning is just a warning and nothing
else, I can live with it.

Thank you.

c
-- 
_B A U S T E L L E N_ lesen! --- http://www.blacktrash.org/baustellen.html


Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Christian Ebert
* Bram Moolenaar on Friday, September 22, 2006 at 14:24:09 +0200:
 The configure script has a specific check for not adding -pthread on Mac
 OS/X.  It looks like you used the --disable-darwin argument

Yes:

./configure --prefix=/usr/local --with-features=huge \
--enable-multibyte --enable-pythoninterp --enable-perlinterp \
--without-x --disable-gui \
--disable-gtk-check --disable-gtk2-check \
--disable-motif-check --disable-athena-check \
--disable-nextaw-check --disable-carbon-check \
--disable-darwin --disable-nls \
--with-compiledby=[EMAIL PROTECTED]

This is
a) because I like eg. tab path-completion stay case-sensitive
even with the HFS+.
b) I want Vim to use python 2.4 which is installed under /sw --
this works when I pass LDFLAGS=-L/sw/lib and CFLAGS=-I/sw/include
to configure /only/ when I --disable-darwin; otherwise configure
insists on eg. /Library/Python/2.3

If the warning is only a warning w/o further consequences I can
live with it. But I wanted to ask to make sure.

c
-- 
_B A U S T E L L E N_ lesen! --- http://www.blacktrash.org/baustellen.html