Fix problems with missing libtiff versions
#1
Fix problems with missing libtiff versions
So on my machine I seem to only have access to libtiff.so.6. Problematically, some things require different versions. For example, neko_wesnoth-0.9.5 requires libtiff.so.3, but you only get libtiff.so.6. Thankfully, there's a simple fix. You need a hex editor for this, I will use hexedit.
Many times, you can just get away with creating a symbolic link from libtiff.so.6 to libtiff.so.3, however, that will not work in many cases as the programs will actually look for a specific version within the library. For example, wesnoth looks for version 'sgi3.7'.
Run
Code:
cp /usr/nekoware/lib/libtiff.so.6 /usr/nekoware/lib/libtiff.so.3
to create a copy that we will modify with hexedit.
Then, use hexedit to replace every occurrence of libtiff.so.6
Code:
6c6962746966662e736f2e36
to libtiff.so.3
Code:
6c6962746966662e736f2e33
by searching with Ctrl + S. (You should also just be able to switch to searching ASCII by pressing tab but on the nekoware version of hexedit that seems to do nothing.)
Do this same thing to change every occurrence of sgi6.0
Code:
736769362e30
to sgi3.7
Code:
736769332e37
.
Obviously in some cases you may need to change the strings mentioned here to whatever you need to fit your issue.
This procedure might also work for issues like this with some other libraries. Hope this helped. <E>Smile</E>
LarBob
Octane

Trade Count: (0)
Posts: 58
Threads: 15
Joined: Dec 2017
Find Reply
05-28-2018, 03:09 AM
#2
Re: Fix problems with missing libtiff versions
I have found many libs that were needed to make several nekoware apps work.. especially when working with beta packages that replace things such as libtiff. I always toyed with the idea of creating a nekoware package 'neko_legacysupport' (or something like that) that contained obsolete and older libs that may be needed.

Here is the approach I went with, basically stuffing older libs extracted from obsolete tardists into /opt/lib32/
libtiff.so.3 does exist in nekoware's obsolete packages.
Then set LD_LIBRARYN32_PATH to include /opt/lib32 when necessary (even in a wrapper script):
Code:
<i>
</i>[octane]:/opt/lib32 $ ls
libFLAC++.so.7.0    libdb-4.4.la      libdb_cxx.a           libldap-2.3.so.1.14  libpixops.so.1.0
libFLAC.so.5        libdb-4.4.so      libdb_cxx.so          libldap-2.4.so.3     libssl.so.0.9.8
libHalf.so.3        libdb-4.so        libgcc_s.so.1         liblualib.so.5.0     libstdc++.so.7
libIex.so.3         libdb.a           libgdk_pixbuf.so.3    liblzo2.a            libtheoradec.so.2
libIlmImf.so.3      libdb.so          libgdk_pixbuf.so.3.0  liblzo2.la           libtheoradec.so.2.4
libImath.so.3       libdb_cxx-4.4.a   libguile-ltdl.so.2.0  libpcre.so.1.1       libtiff.so.3
libcrypto.so.0.9.8  libdb_cxx-4.4.la  libguile.so.13.0      libpixops.la         libtiff.so.3.8
libcurl.so.4        libdb_cxx-4.4.so  liblber-2.3.so.1.14   libpixops.so         ligcc-and-libstdc++-are-for-sdlmame
libdb-4.4.a         libdb_cxx-4.so    liblber-2.4.so.3      libpixops.so.1

I am not saying this is the best way to do it.. just presenting another idea.
necron2600
Octane

Trade Count: (0)
Posts: 127
Threads: 50
Joined: May 2018
Find Reply
05-29-2018, 06:29 PM
#3
Re: Fix problems with missing libtiff versions
<QUOTE author="necron2600" post_id="584" time="1527618596" user_id="122">
necron2600 post_id=584 time=1527618596 user_id=122 Wrote:I have found many libs that were needed to make several nekoware apps work.. especially when working with beta packages that replace things such as libtiff. I always toyed with the idea of creating a nekoware package 'neko_legacysupport' (or something like that) that contained obsolete and older libs that may be needed.

Here is the approach I went with, basically stuffing older libs extracted from obsolete tardists into /opt/lib32/
libtiff.so.3 does exist in nekoware's obsolete packages.
Then set LD_LIBRARYN32_PATH to include /opt/lib32 when necessary (even in a wrapper script):
Code:
<i>
</i>[octane]:/opt/lib32 $ ls
libFLAC++.so.7.0    libdb-4.4.la      libdb_cxx.a           libldap-2.3.so.1.14  libpixops.so.1.0
libFLAC.so.5        libdb-4.4.so      libdb_cxx.so          libldap-2.4.so.3     libssl.so.0.9.8
libHalf.so.3        libdb-4.so        libgcc_s.so.1         liblualib.so.5.0     libstdc++.so.7
libIex.so.3         libdb.a           libgdk_pixbuf.so.3    liblzo2.a            libtheoradec.so.2
libIlmImf.so.3      libdb.so          libgdk_pixbuf.so.3.0  liblzo2.la           libtheoradec.so.2.4
libImath.so.3       libdb_cxx-4.4.a   libguile-ltdl.so.2.0  libpcre.so.1.1       libtiff.so.3
libcrypto.so.0.9.8  libdb_cxx-4.4.la  libguile.so.13.0      libpixops.la         libtiff.so.3.8
libcurl.so.4        libdb_cxx-4.4.so  liblber-2.3.so.1.14   libpixops.so         ligcc-and-libstdc++-are-for-sdlmame
libdb-4.4.a         libdb_cxx-4.so    liblber-2.4.so.3      libpixops.so.1

I am not saying this is the best way to do it.. just presenting another idea.

This is probably the better way. (any chance you'd upload a .tar.gz with all of those? <E>Wink</E> )
LarBob
Octane

Trade Count: (0)
Posts: 58
Threads: 15
Joined: Dec 2017
Find Reply
05-29-2018, 09:38 PM
#4
Re: Fix problems with missing libtiff versions
I tried to upload a tarball (gzipped and zipped).. but had no luck attaching larger files here (even 4MB size seemed to have trouble)

In the meantime anyone can d/l the tarball from the following link until I can stash it somewhere here:

<URL url="http://www.darklab.net/irix/opt-lib32.tgz">http://www.darklab.net/irix/opt-lib32.tgz
necron2600
Octane

Trade Count: (0)
Posts: 127
Threads: 50
Joined: May 2018
Find Reply
05-30-2018, 02:46 AM
#5
Re: Fix problems with missing libtiff versions
<QUOTE author="necron2600" post_id="593" time="1527648379" user_id="122">
necron2600 post_id=593 time=1527648379 user_id=122 Wrote:I tried to upload a tarball (gzipped and zipped).. but had no luck attaching larger files here (even 4MB size seemed to have trouble)

In the meantime anyone can d/l the tarball from the following link until I can stash it somewhere here:

<URL url="http://www.darklab.net/irix/opt-lib32.tgz">http://www.darklab.net/irix/opt-lib32.tgz

Thanks! Also, just letting you know in case you didn't realize, your site doesn't work properly if you neglect to include the www. when going to it. Maybe that's on purpose, but in the case it isn't, I wanted to let you know. <E>Wink</E>
LarBob
Octane

Trade Count: (0)
Posts: 58
Threads: 15
Joined: Dec 2017
Find Reply
05-30-2018, 04:54 AM
#6
RE: Fix problems with missing libtiff versions
(05-30-2018, 02:46 AM)necron2600 Wrote:  I tried to upload a tarball (gzipped and zipped).. but had no luck attaching larger files here (even 4MB size seemed to have trouble)

In the meantime anyone can d/l the tarball from the following link until I can stash it somewhere here:

<URL url="http://www.darklab.net/irix/opt-lib32.tgz">http://www.darklab.net/irix/opt-lib32.tgz

I wonder if you could update the link for this archive, or send it in PM?

Thank you.

Indigo2  Indigo2 R10000/IMPACT  Indigo2 R10000/IMPACT  Indigo2 R10000/IMPACT   O2  1600SW-on  Octane2  Octane2   Fuel  Tezro Indy    Origin 350
blacksmith
Tezro

Trade Count: (1)
Posts: 57
Threads: 17
Joined: Jun 2018
Find Reply
12-30-2023, 09:44 PM
#7
RE: Fix problems with missing libtiff versions
I also would like a copy of this file... Smile
stormy
Atari expert!

Trade Count: (1)
Posts: 180
Threads: 34
Joined: May 2019
Location: UK
Find Reply
03-16-2024, 04:54 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)