Date: Mon, 12 Feb 2007 02:07:20 +0900 From: Norikatsu Shigemura <nork@FreeBSD.org> To: girgen@FreeBSD.org Cc: ports@FreeBSD.org, Norikatsu Shigemura <nork@FreeBSD.org> Subject: [ports/databases/postgresql82-server] not respect PTHREAD_LIBS issue Message-ID: <20070212020720.a5318464.nork@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi girgen! This port has a 'not respect PTHREAD_LIBS' issue. Can you please investigate and/or validate following patch? By the way, I'm validating ports which have this issue on no libpthread.* environment. So you won't get this error, and notice it. Index: Makefile =================================================================== RCS file: /home/pcvs/ports/databases/postgresql82-server/Makefile,v retrieving revision 1.166 diff -u -r1.166 Makefile --- Makefile 7 Feb 2007 09:51:47 -0000 1.166 +++ Makefile 11 Feb 2007 16:15:06 -0000 @@ -41,7 +41,9 @@ CONFIGURE_ARGS+=--with-libraries=${LOCALBASE}/lib \ --with-includes=${LOCALBASE}/include \ --with-docdir=${DOCSDIR} -CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PLIST= ${PKGDIR}/pkg-plist${PKGNAMESUFFIX} =========== BACKUP YOUR DATA! ============= As always, backup your data before upgrading. If the upgrade leads to a higher minor revision (e.g. 7.3.x -> 7.4), a dump and restore of all databases is required. This is *NOT* done by the port! Press ctrl-C *now* if you need to pg_dump. =========================================== ===> Found saved configuration for postgresql-server-8.2.1 ===> Extracting for postgresql-server-8.2.3 => MD5 Checksum OK for postgresql/postgresql-base-8.2.3.tar.bz2. => SHA256 Checksum OK for postgresql/postgresql-base-8.2.3.tar.bz2. => MD5 Checksum OK for postgresql/postgresql-opt-8.2.3.tar.bz2. => SHA256 Checksum OK for postgresql/postgresql-opt-8.2.3.tar.bz2. => MD5 Checksum OK for postgresql/postgresql-test-8.2.3.tar.bz2. => SHA256 Checksum OK for postgresql/postgresql-test-8.2.3.tar.bz2. ===> Patching for postgresql-server-8.2.3 ===> Applying FreeBSD patches for postgresql-server-8.2.3 ===> postgresql-server-8.2.3 depends on executable in : gmake - found ===> postgresql-server-8.2.3 depends on shared library: intl - found ===> postgresql-server-8.2.3 depends on shared library: pq.5 - found ===> Configuring for postgresql-server-8.2.3 configure: WARNING: you should use --build, --host, --target checking build system type... i386-portbld-freebsd7.0 checking host system type... i386-portbld-freebsd7.0 checking which template to use... freebsd checking whether to build with 64-bit integer date/time support... yes checking whether NLS is wanted... yes checking for default port number... 5432 checking for i386-portbld-freebsd7.0-gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking if cc supports -Wdeclaration-after-statement... yes checking if cc supports -Wendif-labels... yes checking if cc supports -fno-strict-aliasing... yes configure: using CFLAGS=-O2 -fno-strict-aliasing -pipe -march=pentium3 -O3 -funroll-loops -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing checking whether the C compiler still works... yes checking how to run the C preprocessor... cc -E checking allow thread-safe client libraries... yes checking whether to build with Tcl... no checking whether to build Perl modules... no checking whether to build Python modules... no checking whether to build with Kerberos 5 support... no checking whether to build with PAM support... yes checking whether to build with LDAP support... no checking whether to build with Bonjour support... no checking whether to build with OpenSSL support... yes checking for egrep... grep -E configure: using CPPFLAGS=-I/usr/local/include -I/usr/local/include configure: using LDFLAGS= -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -L/usr/local/lib checking for gawk... no checking for mawk... no checking for nawk... nawk checking for flex... /usr/bin/flex checking whether ln -s works... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for i386-portbld-freebsd7.0-ranlib... no checking for ranlib... ranlib checking for tar... /usr/bin/tar checking for i386-portbld-freebsd7.0-strip... no checking for strip... strip checking whether it is possible to strip libraries... yes checking for bison... bison -y checking for perl... /usr/local/bin/perl checking for main in -lm... yes checking for library containing setproctitle... none required checking for library containing dlopen... none required checking for library containing socket... none required checking for library containing shl_load... no checking for library containing getopt_long... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... no checking for library containing shmget... none required checking for -lreadline... yes (-lreadline) checking for inflate in -lz... yes checking for CRYPTO_new_ex_data in -lcrypto... yes checking for SSL_library_init in -lssl... yes checking for pam_start in -lpam... yes checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking crypt.h usability... no checking crypt.h presence... no checking for crypt.h... no checking dld.h usability... no checking dld.h presence... no checking for dld.h... no checking endian.h usability... no checking endian.h presence... no checking for endian.h... no checking fp_class.h usability... no checking fp_class.h presence... no checking for fp_class.h... no checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking ieeefp.h usability... yes checking ieeefp.h presence... yes checking for ieeefp.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/sem.h usability... yes checking sys/sem.h presence... yes checking for sys/sem.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking kernel/OS.h usability... no checking kernel/OS.h presence... no checking for kernel/OS.h... no checking kernel/image.h usability... no checking kernel/image.h presence... no checking for kernel/image.h... no checking SupportDefs.h usability... no checking SupportDefs.h presence... no checking for SupportDefs.h... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for netinet/tcp.h... yes checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking readline/history.h usability... yes checking readline/history.h presence... yes checking for readline/history.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking security/pam_appl.h usability... yes checking security/pam_appl.h presence... yes checking for security/pam_appl.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for preprocessor stringizing operator... yes checking for signed types... yes checking for working volatile... yes checking for __func__... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for tzname... yes checking for union semun... yes checking for struct sockaddr_un... yes checking for struct sockaddr_storage... yes checking for struct sockaddr_storage.ss_family... yes checking for struct sockaddr_storage.__ss_family... no checking for struct sockaddr_storage.ss_len... yes checking for struct sockaddr_storage.__ss_len... no checking for struct sockaddr.sa_len... yes checking for struct addrinfo... yes checking for struct cmsgcred... yes checking for struct fcred... no checking for struct sockcred... yes checking for struct option... yes checking for z_streamp... yes checking for int timezone... no checking types of arguments for accept()... int, int, struct sockaddr *, size_t * checking whether gettimeofday takes only one argument... no checking for cbrt... yes checking for dlopen... yes checking for fcvt... no checking for fdatasync... no checking for getpeereid... yes checking for getrlimit... yes checking for memmove... yes checking for poll... yes checking for pstat... no checking for readlink... yes checking for setproctitle... yes checking for setsid... yes checking for sigprocmask... yes checking for symlink... yes checking for sysconf... yes checking for towlower... yes checking for utime... yes checking for utimes... yes checking for waitpid... yes checking for wcstombs... yes checking whether fdatasync is declared... no checking whether posix_fadvise is declared... no checking whether strlcpy is declared... yes checking whether F_FULLFSYNC is declared... no checking for struct sockaddr_in6... yes checking for PS_STRINGS... no checking for snprintf... yes checking for vsnprintf... yes checking whether snprintf is declared... yes checking whether vsnprintf is declared... yes checking for isinf... yes checking for crypt... yes checking for fseeko... yes checking for getopt... yes checking for getrusage... yes checking for inet_aton... yes checking for random... yes checking for rint... yes checking for srandom... yes checking for strdup... yes checking for strerror... yes checking for strlcpy... yes checking for strtol... yes checking for strtoul... yes checking for unsetenv... yes checking for getaddrinfo... yes checking for getopt_long... yes checking for rl_completion_append_character... yes checking for rl_completion_matches... yes checking for rl_filename_completion_function... yes checking for replace_history_entry... yes checking for finite... yes checking for sigsetjmp... yes checking for syslog... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for optreset... yes checking for strtoll... yes checking for strtoull... yes checking for atexit... yes checking for _LARGEFILE_SOURCE value needed for large files... no checking for fseeko... (cached) yes checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... no checking whether pthreads work with -pthreads... no checking whether pthreads work with -mthreads... no checking for the pthreads library -lpthread... no checking whether pthreads work with --thread-safe... no checking whether pthreads work with -mt... no checking for pthread-config... yes yes checking for the pthreads library -lpthreadGC2... no checking pthread.h usability... no checking pthread.h presence... yes configure: WARNING: pthread.h: present but cannot be compiled configure: WARNING: pthread.h: check for missing prerequisite headers? configure: WARNING: pthread.h: see the Autoconf documentation configure: WARNING: pthread.h: section "Present But Cannot Be Compiled" configure: WARNING: pthread.h: proceeding with the preprocessor's result configure: WARNING: pthread.h: in the future, the compiler will take precedence configure: WARNING: ## ---------------------------------------- ## configure: WARNING: ## Report this to pgsql-bugs@postgresql.org ## configure: WARNING: ## ---------------------------------------- ## checking for pthread.h... yes checking for strerror_r... yes checking for getpwuid_r... yes checking for gethostbyname_r... yes checking whether getpwuid_r takes a fifth argument... yes checking whether strerror_r returns int... yes checking test program... ok checking whether printf supports argument control... yes checking whether long int is 64 bits... no checking whether long long int is 64 bits... yes checking snprintf format for long long int... %lld checking for unsigned long... yes checking size of unsigned long... 4 checking for size_t... yes checking size of size_t... 4 checking for short... yes checking alignment of short... 2 checking for int... yes checking alignment of int... 4 checking for long... yes checking alignment of long... 4 checking for long long int... yes checking alignment of long long int... 4 checking for double... yes checking alignment of double... 4 checking for int8... no checking for uint8... no checking for int64... no checking for uint64... no checking for sig_atomic_t... yes checking for POSIX signal interface... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no checking for working memcmp... yes checking for library containing gettext... -lintl checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for msgfmt... msgfmt checking for msgmerge... msgmerge checking for xgettext... xgettext checking for onsgmls... no checking for nsgmls... no checking for openjade... no checking for jade... no checking for DocBook V4.2... no checking for DocBook stylesheets... no checking for collateindex.pl... no checking for sgmlspl... no checking thread safety of required library functions... no configure: error: thread test program failed This platform is not thread-safe. Check the file 'config.log'for the exact reason. You can use the configure option --enable-thread-safety-force to force threads to be enabled. But you must then run the program in src/test/thread and add locking function calls to your applications to guarantee thread safety. ===> Script "configure" failed unexpectedly. Please report the problem to girgen@FreeBSD.org [maintainer] and attach the "/usr/ports/databases/postgresql82-server/work/postgresql-8.2.3/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 Stop in /usr/ports/databases/postgresql82-server.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070212020720.a5318464.nork>