Bug 202564 - emulators/wine-devel: undefined reference to `inotify_add_watch'
Summary: emulators/wine-devel: undefined reference to `inotify_add_watch'
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-22 05:04 UTC by basarevych
Modified: 2020-01-04 00:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description basarevych 2015-08-22 05:04:58 UTC
cc -o wineserver async.o atom.o change.o class.o clipboard.o completion.o console.o debugger.o device.o directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o unicode.o user.o window.o winstation.o -L../libs/wine -lwine ../libs/port/libwine_port.a -L/usr/local/lib -fstack-protector    -Wl,--rpath,\$ORIGIN/../libs/wine
change.o: In function `create_dir_obj':
change.c:(.text+0x456): undefined reference to `inotify_add_watch'
change.o: In function `req_read_directory_changes':
change.c:(.text+0x5d2): undefined reference to `inotify_init'
change.c:(.text+0x932): undefined reference to `inotify_add_watch'
change.o: In function `inotify_poll_event':
change.c:(.text+0xf81): undefined reference to `inotify_add_watch'
change.o: In function `free_inode':
change.c:(.text+0x146f): undefined reference to `inotify_rm_watch'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:202: recipe for target 'wineserver' failed
gmake[3]: *** [wineserver] Error 1
gmake[3]: Leaving directory '/usr/ports/emulators/wine-devel/work/wine-1.7.48/server'
Makefile:18380: recipe for target 'server' failed
gmake[2]: *** [server] Error 2
gmake[2]: *** Waiting for unfinished jobs....
cc -c -o actxprxy_urlhist_p.o actxprxy_urlhist_p.c -I. -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall \
  -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
  -Wstrict-prototypes -Wtype-limits -Wvla -Wwrite-strings -Wpointer-arith -I/usr/local/include \
  -D__builtin_ms_va_list=__builtin_va_list -D__builtin_ms_va_start=__builtin_va_start \
  -D__builtin_ms_va_end=__builtin_va_end -D__builtin_ms_va_copy=__builtin_va_copy -O2 -pipe  -fstack-protector -fno-strict-aliasing
../../tools/winegcc/winegcc -o actxprxy.dll.so -B../../tools/winebuild -m64 -fasynchronous-unwind-tables -shared actxprxy.spec \
  usrmarshal.o dlldata.o actxprxy_activscp_p.o actxprxy_comcat_p.o actxprxy_docobj_p.o \
  actxprxy_hlink_p.o actxprxy_htiface_p.o actxprxy_htiframe_p.o actxprxy_objsafe_p.o \
  actxprxy_ocmm_p.o actxprxy_servprov_p.o actxprxy_shldisp_p.o actxprxy_shobjidl_p.o \
  actxprxy_urlhist_p.o actxprxy_activscp_r.res actxprxy_comcat_r.res actxprxy_docobj_r.res \
  actxprxy_hlink_r.res actxprxy_htiface_r.res actxprxy_htiframe_r.res actxprxy_objsafe_r.res \
  actxprxy_ocmm_r.res actxprxy_servprov_r.res actxprxy_shldisp_r.res actxprxy_shobjidl_r.res \
  actxprxy_urlhist_r.res -luuid -loleaut32 -lole32 -lrpcrt4 -lwine ../../libs/port/libwine_port.a \
  -L/usr/local/lib -fstack-protector
../../tools/winegcc/winegcc -o actxprxy.dll.fake -B../../tools/winebuild -m64 -fasynchronous-unwind-tables -shared actxprxy.spec \
  usrmarshal.o dlldata.o actxprxy_activscp_p.o actxprxy_comcat_p.o actxprxy_docobj_p.o \
  actxprxy_hlink_p.o actxprxy_htiface_p.o actxprxy_htiframe_p.o actxprxy_objsafe_p.o \
  actxprxy_ocmm_p.o actxprxy_servprov_p.o actxprxy_shldisp_p.o actxprxy_shobjidl_p.o \
  actxprxy_urlhist_p.o actxprxy_activscp_r.res actxprxy_comcat_r.res actxprxy_docobj_r.res \
  actxprxy_hlink_r.res actxprxy_htiface_r.res actxprxy_htiframe_r.res actxprxy_objsafe_r.res \
  actxprxy_ocmm_r.res actxprxy_servprov_r.res actxprxy_shldisp_r.res actxprxy_shobjidl_r.res \
  actxprxy_urlhist_r.res -luuid -loleaut32 -lole32 -lrpcrt4 -lwine ../../libs/port/libwine_port.a \
  -L/usr/local/lib -fstack-protector
gmake[3]: Leaving directory '/usr/ports/emulators/wine-devel/work/wine-1.7.48/dlls/actxprxy'
gmake[2]: Leaving directory '/usr/ports/emulators/wine-devel/work/wine-1.7.48'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/wine-devel
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/wine-devel
Comment 1 basarevych 2015-08-22 05:43:06 UTC
I updated ports tree, wine-devel is 1.7.49,1 now and the error is the same.

My options: DOCS, GECKO, HAL, MONO, OPENAL, V4L, X11
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2015-08-24 08:09:37 UTC
Do you have devel/libinotify installed?

If so, does the problem go away if you remove that port?

(Adjusting summary to be more concrete.)
Comment 3 basarevych 2015-08-25 04:28:32 UTC
(In reply to Gerald Pfeifer from comment #2)

Yes, I had libinotify installed and after removing it wine-devel compiled without errors.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-10-12 05:55:20 UTC
A commit references this bug:

Author: gerald
Date: Mon Oct 12 05:54:57 UTC 2015
New revision: 399113
URL: https://svnweb.freebsd.org/changeset/ports/399113

Log:
  Unconditionally prevent the detection of libinotify which fails the
  build in the presence of devel/libinotify and is not really necessary.

  PR:		202564, 168617

Changes:
  head/emulators/wine-devel/files/patch-libinotify
Comment 5 Gerald Pfeifer freebsd_committer freebsd_triage 2015-10-12 05:57:11 UTC
Okay, now this should work for everyone (without having to
remove libinotify, for example).  Too bad there is not a
configure option on the Wine side.
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-04-28 22:45:09 UTC
A commit references this bug:

Author: gerald
Date: Sun Apr 28 22:44:17 UTC 2019
New revision: 500375
URL: https://svnweb.freebsd.org/changeset/ports/500375

Log:
  Update to Wine 4.7.  This includes the following changes:
   - Support for builtin libraries in PE format even on Unix.
   - More implementation of the Debug Engine DLL.
   - Support for the Command Link standard control.
   - Improved Edit control sizing in CJK locales.
   - Various bug fixes.

  Officially this also brought an updated version of the Mono engine,
  which we got two days ago via revision 500271 already, though.

  My local patch files/patch-libinotify is not required any longer [1]
  (and would not apply to begin with) after the following upstream commit:

    commit 07c2e8581a2745725cd7ce4282eedb9a8084a1e4
    Author: Damjan Jovanovic <damjan.jov@gmail.com>
    Date:   Sat Apr 20 15:14:53 2019 +0200

      configure: Link wineserver to libinotify if necessary.

      Outside Linux, wineserver fails to link when sys/inotify.h
      is present, as it tries to find inotify symbols in libc,
      which doesn't have them. The inotify symbols are in libinotify.so.
      Detect it properly, and link to it where available.

      Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
      Signed-off-by: Alexandre Julliard <julliard@winehq.org>

  PR:		202564 [1], 168617 [1]

Changes:
  head/emulators/wine-devel/distinfo
  head/emulators/wine-devel/files/patch-libinotify
Comment 7 robert.ayrapetyan 2020-01-01 20:06:02 UTC
It [wine-devel 5.0-rc1] fails again when "libinotify" is present in the system. Without "libinotify" it compiles fine.
Please reopen.
Comment 8 robert.ayrapetyan 2020-01-04 00:09:21 UTC
I was able to build latest wine with "--without-inotify" option.