Overview
| Artifact ID: | 6111d5401b7a9a8ce2ca94e8954a4439f617443e |
|---|---|
| Ticket: | 3401063fffffffffffffffffffffffffffffffff
ldconfig was not ran, so libtcl8.5.so was not found later |
| User & Date: | mthuurne on 2011-09-01 05:16:39 |
Changes
- icomment:
Hi! I'm the person who maintains the build of openMSX. It might help to summarize the situation: - joxy installed Tcl from source because Ubuntu LTS had Tcl 8.4 while the most recent openMSX release needs Tcl 8.5 - Ubuntu did have /usr/local/lib in the ld.so configuration, but because the cache was not updated it could not be found - openMSX finds Tcl by looking for tclConfig.sh in typical locations that distros put it in; this has advantages and disadvantages, but it generally works well - in its default build mode, openMSX links dynamically to system-wide libraries using -L and -l, no rpath I think rpath is not really the issue here: openMSX does not support compilation against Tcl in non-standard locations anyway, since it will not look for tclConfig.sh there and therefore won't find Tcl at all. openMSX has a second build mode where we install all dependencies as non-root and link statically to them, so we do cover the non-root scenario but in a different way. The situation that joxy encountered is where Tcl is installed in a standard location (/usr/local) and linked dynamically. So the dynamic loader can find libtcl without extra help from rpath or LD_LIBRARY_PATH, provided that its cache is up-to-date. The question is whether the user should update the ld.so cache by running ldconfig or whether the "make install" target of Tcl should do that. I don't think there is a "correct" answer to that, however there seems to be a trend of libraries running ldconfig on installation. When I first started using Linux (10+ years ago) I always had to do it by hand, while nowadays it is rare that I have to do it by hand. Apparently joxy was not aware that the cache needed updating in the first place and this is probably true for more users. A possible solution would be for the Tcl "make install" target to check for a GNU system and uid 0 and if both are the case, run "ldconfig" as the last command of the installation. This does not conflict with rpath and it does not conflict with non-root installations, but it does solve the issue joxy ran into.
- login: "mthuurne"
- mimetype: "text/plain"
- username: "mthuurne"