Date: Mon, 9 Jun 2008 19:52:40 GMT From: regisr <regisr@pobox.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/124428: jpilot configure error when checking for pilot-link Message-ID: <200806091952.m59JqeDA091513@www.freebsd.org> Resent-Message-ID: <200806092000.m59K09Te027573@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 124428
>Category: misc
>Synopsis: jpilot configure error when checking for pilot-link
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jun 09 20:00:08 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: regisr
>Release: FreeBSD 6.3-STABLE
>Organization:
>Environment:
FreeBSD crocoite.regix.info 6.3-STABLE FreeBSD 6.3-STABLE #1: Sat May 31 20:25:48 CEST 2008 regisr@crocoite.regix.info:/usr/obj/usr/src/sys/CROCOITE i386
>Description:
Configure fails when testing pilot-link: lack of pthreads library.
config.log:
-----------
configure:22579: checking to see if I can compile a pilot link program
configure:22603: cc -o conftest -O2 -fno-strict-aliasing -pipe -I/usr/local/inc
lude -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I/usr/local/include -
I/usr/local/include -L/usr/local/lib conftest.c -L/usr/local/lib -lpisock >&5
/usr/local/lib/libpisock.so: undefined reference to `pthread_create'
/usr/local/lib/libpisock.so: undefined reference to `pthread_cancel'
/usr/local/lib/libpisock.so: undefined reference to `pthread_setcanceltype'
/usr/local/lib/libpisock.so: undefined reference to `pthread_cond_timedwait'
Output:
-------
checking for pilot-link header files... found at /usr/local/include
checking for pilot library files... found at /usr/local/lib
checking for gethostent... yes
checking for setsockopt... yes
checking to see if I can compile a pilot link program... no
configure: error: Could not compile a test pilot-link program
===> Script "configure" failed unexpectedly.
Please report the problem to samm@os2.kiev.ua [maintainer] and attach the
"/usr/obj/home/ports/palm/jpilot/work/jpilot-0.99.9/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
>How-To-Repeat:
Build ....
>Fix:
A very bad workaround:
--- /usr/obj/home/ports/palm/jpilot/work/jpilot-0.99.9/configure 2006-08-27 18:39:52.000000000 +0200
+++ /tmp/configure 2008-06-09 21:42:32.000000000 +0200
@@ -22581,7 +22581,7 @@
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PILOT_FLAGS"
save_LIBS="$LIBS"
- LIBS="$LIBS $PILOT_LIBS"
+ LIBS="$LIBS $PILOT_LIBS -lpthread"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
Yes, I should add the library to $PILOT_LIBS
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806091952.m59JqeDA091513>
