[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

More APR fun (was Re: undefined reference to `pthread_mutexattr_init' in apr?)

From: Matthew Braithwaite <matt_at_braithwaite.net>
Date: 2000-10-30 09:10:45 CET

On Fri, 27 Oct 2000 00:26:13 -0500, "B. W. Fitzpatrick" <fitz@red-bean.com> said:
>
> Just to make sure, here's what I did:
>
> $ cvs -d :pserver:fitz@cvs.tigris.org:/cvs co subversion
> $ cd subversion/
> $ cvs -d :pserver:anoncvs@www.apache.org:/home/cvspublic checkout -d apr apache-2.0/src/lib/apr
> $ tar xfvz ~/tarballs/neon.tgz
> $ mv neon-0.7.5 neon
> $ ./autogen.sh
> $ ./configure --with-maintainer-mode --disable-shared
> $ make

I've noticed something interesting w.r.t. these errors while refining
my autobuild script: I get the sort of errors Fitz describes when I
follow his steps, *but*, if I run `configure' twice in a row, I don't!
So this may explain this problem's odd persistence -- unless you start
absolutely clean, you might think you've gotten rid of the root cause
of the problem, when in fact you haven't.

Here is a diff of the output from subsequent runs of `configure',
after elimination of the string `(cached) ' from both. In the second
run, note that the compiler is `cc -pthread'. This would have the
same effect as what Branko suggested, no?

I bet there is somebody listening who could debug this about five
times faster than me. :-) My system is FreeBSD 4.1.something -- Fitz,
you maybe want to check if you see the same thing under Linux?

*** configure-output Mon Oct 30 00:04:02 2000
--- configure-again-output Mon Oct 30 00:03:51 2000
***************
*** 1,4 ****
! creating cache ./config.cache
  creating config.nice
  checking for a BSD compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
--- 1,4 ----
! loading cache ./config.cache
  creating config.nice
  checking for a BSD compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
***************
*** 150,155 ****
--- 150,156 ----
  creating Makefile
  creating mm-config
  creating mm_conf.h
+ mm_conf.h is unchanged
  
  Now please type `make' to compile. Good luck.
  
***************
*** 271,278 ****
  checking for dlopen... yes
  
  Checking for Threads...
! checking for threads... checking for pthread.h... yes
! pthread
  checking for pthreads_cflags... -pthread
  checking for pthreads_lib...
  checking for pthread.h... yes
--- 272,278 ----
  checking for dlopen... yes
  
  Checking for Threads...
! checking for threads... pthread
  checking for pthreads_cflags... -pthread
  checking for pthreads_lib...
  checking for pthread.h... yes
***************
*** 325,330 ****
--- 325,332 ----
  creating include/apr.h
  creating APRVARS
  creating include/apr_private.h
+ include/apr.h is unchanged
+ include/apr_private.h is unchanged
  apr configured properly
  loading cache ./config.cache
  updating cache ./config.cache
***************
*** 386,396 ****
  checking for library containing gethostbyname... none required
  checking for library containing socket... none required
  checking for OpenSSL... not found
- updating cache .././config.cache
  creating ./config.status
  creating Makefile
  creating neon-config
  creating config.h
  
  Using configuration for building neon 0.7.5:
  
--- 388,398 ----
  checking for library containing gethostbyname... none required
  checking for library containing socket... none required
  checking for OpenSSL... not found
  creating ./config.status
  creating Makefile
  creating neon-config
  creating config.h
+ config.h is unchanged
  
  Using configuration for building neon 0.7.5:
  
***************
*** 408,415 ****
  neon configured properly
  loading cache ./config.cache
  checking for gcc... gcc
! checking whether the C compiler (gcc ) works... yes
! checking whether the C compiler (gcc ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking whether ln -s works... yes
--- 410,417 ----
  neon configured properly
  loading cache ./config.cache
  checking for gcc... gcc
! checking whether the C compiler (gcc -pthread ) works... yes
! checking whether the C compiler (gcc -pthread ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking whether ln -s works... yes
***************
*** 482,484 ****
--- 484,487 ----
  creating subversion/mod_dav_svn/Makefile
  creating subversion/mod_dav_svn/tests/Makefile
  creating config.h
+ config.h is unchanged
Received on Sat Oct 21 14:36:13 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.