Wine binaries(wine and winedbg actually) doesn't run after system reboot because they don't know where shared libraries installed. ELF binaries should be linked with -rpath to tell them the place of sharelibs that were installed to non-standard place. (A kind of PURE ELF system doesn't have ldconfig) How-To-Repeat: (i) install wine # cd /usr/ports/emulators/wine && make install $ wine << It works here >> (ii) then reboot or ldconfig to default paths # shutdown -r now or # ldconfig /usr/lib/compat /usr/X11R6/lib /usr/local/lib # ldconfig -r|grep wine << nothing found >> # ldd /usr/local/bin/wine /usr/local/bin/wine: libwine.so => not found (0x0) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x28065000) libxpg4.so.3 => /usr/lib/libxpg4.so.3 (0x280a5000) libm.so.2 => /usr/lib/libm.so.2 (0x280a7000) libutil.so.3 => /usr/lib/libutil.so.3 (0x280c3000) libc.so.4 => /usr/lib/libc.so.4 (0x280cd000) << It no longer works >> (iii) with patch below # cd /usr/ports/emulators/wine && patch < THISMAIL && make install # ldconfig /usr/lib/compat /usr/X11R6/lib /usr/local/lib # ldconfig -r|grep wine << nothing found of cource >> # ldd /usr/local/bin/wine /usr/local/bin/wine: libwine.so => /usr/local/lib/wine/libwine.so (0x28065000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x282ad000) libxpg4.so.3 => /usr/lib/libxpg4.so.3 (0x282ed000) libm.so.2 => /usr/lib/libm.so.2 (0x282ef000) libutil.so.3 => /usr/lib/libutil.so.3 (0x2830b000) libc.so.4 => /usr/lib/libc.so.4 (0x28315000) << /usr/local/lib/wine is hardcoded to ELF binary >>
+CONFIGURE_ENV= LIBS=-Wl,-rpath,${PREFIX}/lib/wine You're right, this patch seems to be necessary. Thanks for pointing this out; apparently most of us have uptimes that long that we failed to notice it! ;-) Can someone please install that patch for me? I do not have cvs write access. Gerald (Wine ports maintainer) -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ Have a look at http://petition.eurolinux.org -- it's not about Linux, btw!
Responsible Changed From-To: freebsd-ports->steve I have this one ready to commit.
State Changed From-To: open->closed Committed, thanks!