This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Recompiling OpenLDAP fails with cygwin-1.5.18-1


>>>>> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]