delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/21/09:09:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Recompiling OpenLDAP fails with cygwin-1.5.18-1
References: <87ll40r6rm DOT fsf AT vzell-de DOT de DOT oracle DOT com> <42DF8D66 DOT 30602 AT byu DOT net>
From: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
Date: Thu, 21 Jul 2005 15:13:26 +0200
In-Reply-To: <42DF8D66.30602@byu.net> (Eric Blake's message of "Thu, 21 Jul 2005 05:56:22 -0600")
Message-ID: <87irz4wbd5.fsf@vzell-de.de.oracle.com>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, cygwin32)
MIME-Version: 1.0
X-IsSubscribed: yes

>>>>> Eric Blake writes:

    > Do you have some third-party background process (antivirus scanner or
    > desktop search engine) that is keeping newly-created files open just a bit
    > too long?  This error message is typical on such short-lived files, and
    > the solution is to disable the background scanner (or at least limit it to
    > non-cygwin directories).

No such programs are running.

But I see in the config.log file the following:

configure:11292: checking for pthread_create in default libraries
configure:11450: gcc -o conftest.exe -O2   conftest.c -lresolv  1>&5
/usr/src/openldap-2.2.26/configure: line 14963:  2272 Aborted                 (core dumped) ./conftest


The following program from configure core dumps on my machine with the
latest cygwin dll installed, whereas in the previous version the test
was successfull.

conftest.c:
----------

#include "confdefs.h"
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

==============
confdefs.h
----------

#define OPENLDAP_PACKAGE "OpenLDAP"
#define OPENLDAP_VERSION "2.2.26"
#define LDAP_VENDOR_VERSION 20226
#define LDAP_VENDOR_VERSION_MAJOR 2
#define LDAP_VENDOR_VERSION_MINOR 2
#define LDAP_VENDOR_VERSION_PATCH 26
#define HAVE_MKVERSION 1
#define HAVE_DLFCN_H 1
#define EXEEXT ".exe"
#define STDC_HEADERS 1
#define HAVE_DIRENT_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_POSIX_TERMIOS 1
#define HAVE_ARPA_INET_H 1
#define HAVE_ARPA_NAMESER_H 1
#define HAVE_ASSERT_H 1
#define HAVE_CRYPT_H 1
#define HAVE_ERRNO_H 1
#define HAVE_FCNTL_H 1
#define HAVE_GETOPT_H 1
#define HAVE_GRP_H 1
#define HAVE_IO_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_NETINET_TCP_H 1
#define HAVE_MALLOC_H 1
#define HAVE_MEMORY_H 1
#define HAVE_PWD_H 1
#define HAVE_PROCESS_H 1
#define HAVE_RESOLV_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYSEXITS_H 1
#define HAVE_SYS_FILE_H 1
#define HAVE_SYS_ERRNO_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_SYSLOG_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_UIO_H 1
#define HAVE_SYSLOG_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_UNISTD_H 1
#define HAVE_WINSOCK_H 1
#define HAVE_WINSOCK2_H 1
#define HAVE_SIGACTION 1
#define HAVE_REGEX_H 1
#define HAVE_LIBRESOLV 1
#define HAVE_RES_QUERY 1
#define HAVE_INET_NTOP 1
#define HAVE_SYS_UN_H 1
#define HAVE_OPENSSL_SSL_H 1
#define HAVE_SSLEAY 1
#define HAVE_TLS 1
#define SLAPD_LMHASH 1
#define HAVE_PTHREAD_H 1
#define HAVE_PTHREADS 10
#define HAVE_SCHED_H 1

Ciao
  Volker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019