misc/124428: jpilot configure error when checking for pilot-link

regisr regisr at pobox.com
Mon Jun 9 20:00:09 UTC 2008


>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 at 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 at 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:


More information about the freebsd-bugs mailing list