Bug 19562 - wine should be linked with -rpath
Summary: wine should be linked with -rpath
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Price
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-28 18:10 UTC by FUJISHIMA Satsuki
Modified: 2000-07-07 20:15 UTC (History)
0 users

See Also:


Attachments
file.diff (466 bytes, patch)
2000-06-28 18:10 UTC, FUJISHIMA Satsuki
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description FUJISHIMA Satsuki 2000-06-28 18:10:02 UTC
	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 >>
Comment 1 pfeifer 2000-07-04 00:44:10 UTC
  +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!
Comment 2 Steve Price freebsd_committer freebsd_triage 2000-07-07 03:01:50 UTC
Responsible Changed
From-To: freebsd-ports->steve

I have this one ready to commit.
Comment 3 Steve Price freebsd_committer freebsd_triage 2000-07-07 20:13:41 UTC
State Changed
From-To: open->closed

Committed, thanks!