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
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
Do you have devel/libinotify installed? If so, does the problem go away if you remove that port? (Adjusting summary to be more concrete.)
(In reply to Gerald Pfeifer from comment #2) Yes, I had libinotify installed and after removing it wine-devel compiled without errors.
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
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.
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
It [wine-devel 5.0-rc1] fails again when "libinotify" is present in the system. Without "libinotify" it compiles fine. Please reopen.
I was able to build latest wine with "--without-inotify" option.