Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2012 14:22:35 GMT
From:      Kris Moore <kmoore@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166790: comms/usbmuxd fails to compile when inotify installed
Message-ID:  <201204091422.q39EMZPQ078909@red.freebsd.org>
Resent-Message-ID: <201204091430.q39EUDQb030392@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166790
>Category:       ports
>Synopsis:       comms/usbmuxd fails to compile when inotify installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 09 14:30:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kris Moore
>Release:        9.0-Release
>Organization:
PC-BSD / iXsystems
>Environment:
FreeBSD pcbsd-5395 9.0-RELEASE FreeBSD 9.0-RELEASE #3: Tue Dec 27 14:14:29 PST 2011     root@build9x64.pcbsd.org:/usr/obj/builds/amd64/pcbsd-build90/fbsd-source/9.0/sys/GENERIC  amd64

>Description:
[root@pcbsd-5395] /usr/ports/comms/usbmuxd# make clean
===>  Cleaning for usbmuxd-1.0.7_2
[root@pcbsd-5395] /usr/ports/comms/usbmuxd# make
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for usbmuxd-1.0.7_2
=> SHA256 Checksum OK for usbmuxd-1.0.7.tar.bz2.
===>  Patching for usbmuxd-1.0.7_2
===>   usbmuxd-1.0.7_2 depends on file: /usr/local/bin/cmake - found
===>   usbmuxd-1.0.7_2 depends on shared library: plist.1 - found
===>  Configuring for usbmuxd-1.0.7_2
/usr/bin/sed -i.bak -e 's|${LIB_SUFFIX}/pkgconfig|data/pkgconfig|'  /usr/ports/comms/usbmuxd/work/usbmuxd-1.0.7/CMakeLists.txt
/bin/mkdir -p /usr/ports/comms/usbmuxd/work/usbmuxd-1.0.7
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring usbmuxd v1.0.7
-- checking for module 'libplist'
--   found libplist, version 1.4
-- Found PLIST 
-- Will build usbmuxd: YES
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Found Threads: TRUE 
-- libusbmuxd will be built with inotify support
-- libusbmuxd will be built with protocol version 1 support
-- Found USB 
-- usbmuxd will be built with protocol version 1 support

* REMINDER
* Remember to add a user named 'usbmux' with USB access permissions
* for the udev hotplugging feature to work out of the box.

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_FLAGS_DEBUG
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_C_FLAGS_DEBUG
    CMAKE_MODULE_LINKER_FLAGS


-- Build files have been written to: /usr/ports/comms/usbmuxd/work/usbmuxd-1.0.7
===>  Building for usbmuxd-1.0.7_2
Scanning dependencies of target usbmuxd
[ 20%] Building C object daemon/CMakeFiles/usbmuxd.dir/main.c.o
[ 10%] Building C object daemon/CMakeFiles/usbmuxd.dir/usb-linux.c.o
[ 30%] Building C object daemon/CMakeFiles/usbmuxd.dir/log.c.o
Scanning dependencies of target libusbmuxd
[ 40%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/libusbmuxd.c.o
/usr/ports/comms/usbmuxd/work/usbmuxd-1.0.7/daemon/usb-linux.c: In function 'usb_get_fds':
/usr/ports/comms/usbmuxd/work/usbmuxd-1.0.7/daemon/usb-linux.c:453: warning: assignment from incompatible pointer type
[ 50%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/sock_stuff.c.o
[ 60%] Building C object daemon/CMakeFiles/usbmuxd.dir/__/common/utils.c.o
[ 70%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/__/common/utils.c.o
[ 80%] Building C object daemon/CMakeFiles/usbmuxd.dir/device.c.o
[ 90%] Building C object daemon/CMakeFiles/usbmuxd.dir/client.c.o
Linking C shared library libusbmuxd.so
[ 90%] Built target libusbmuxd
Scanning dependencies of target iproxy
[100%] Building C object tools/CMakeFiles/iproxy.dir/iproxy.c.o
Linking C executable iproxy
./libusbmuxd/libusbmuxd.so.1.0.7: undefined reference to `inotify_add_watch'
./libusbmuxd/libusbmuxd.so.1.0.7: undefined reference to `inotify_init'
*** Error code 1
1 error
*** Error code 2
Linking C executable usbmuxd
[100%] Built target usbmuxd
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /usr/ports/comms/usbmuxd.

[root@pcbsd-5395] /usr/ports/comms/usbmuxd# pkg_info | grep inotify
libinotify-20110829 Kevent based inotify compatible library

>How-To-Repeat:
Install devel/libinotify and try building comms/usbmuxd afterwards. 
>Fix:

Workaround:

add to pre-configure:

        ${REINPLACE_CMD} -e 's|INOTIFY_FOUND TRUE|INOTIFY_FOUND FALSE|' \
                ${WRKSRC}/Modules/FindInotify.cmake


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204091422.q39EMZPQ078909>