Re: [Dillo-dev] Automake and dynamic linking
Jorgen, Andreas, Riccardo, Matti, Bob (portability issues here): Hi, here is a brief covering the latest portability patches now in CVS. These are not final an certainly need testing, so lets try to get it straight. Issues: libpng, pthreads, proper linking, AF_LOCAL, libc5, PS2 libpng: ------ On Wed, 14 Jan 2004, Jorgen Viksell wrote:
Hi!
tis 2004-01-06 klockan 16.01 skrev Jorge Arellano Cid:
[...] We can't rely on libpng-config because it would break support for older distros (for instance slackware 3.9), and there're plenty of dillo users with old distros on laptops.
Fair enough. Using Debian unstable I tend to forget about those people stuck with non-evolving distros.
The current png detection routine has come a long way to be able to detect the library on a wide range of SW/HW combinations. Maybe the best approach is to try libpng-config first, and when not present, try the older libs.
I made it do so. Could you please try out the fallback code, using: PNG_CONFIG=foobar ./configure And if it still fails could you send me the config.log file.
Sorry for taking a long time to answer, I got a lot of troubles installing an old libc5 distro (Slackware 3.6) for testing. These were unrelated to the distro and not worth to detail here! ;) The simple fallback-test passed on my slk current, but the old installation payed off quickly, because it failed on it. For instance: <q> checking for libpng-config... missing checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking libpng/png.h usability... yes checking libpng/png.h presence... yes checking for libpng/png.h... yes checking for png_check_sig in -lpng... no configure: WARNING: *** No libpng found. Disabling PNG images *** </q> Fixed, added "-lm" and a "&& break" to avoid the second header test when the first is present. The version in CVS works both with the current and libc5 distros. As for the image disabling, although I don't see much use for it, I left to avoid some work at this stage. The one thing I don't like is the #ifdef stuff. Well, if it's not worth it can be removed. pthreads: -------- I added the "pthreads" (with an 's') to the search list as Andreas suggested. Riccardo: please test if this works for you. I made a tarball so you don't need to play with autoconf/automake/autogen. URL: http://www.dillo.org/test/dillo-0.8.0-pre.Jan30.tar.gz Note: there's still some work to do with this one, read below. proper linking: -------------- Now the linked libraries are ok (the problem was that dpis and dpid got all of the libraries used by dillo linked in). ...except for pthread that is till present on dpi, dpis. AF_LOCAL: -------- After studying the history of the socket library development and socket.h for linux, BSD, HURD, etc, it seems that all these are (should be) the same: PF_UNIX : old BSD name for PF_LOCAL PF_LOCAL : POSIX for AF_LOCAL PF_FILE : seldom used POSIX for AF_UNIX AF_LOCAL : somewhat old but the most compatible. AF_UNIX : oldest. Fixed this for the whole tarball. It works on both of my testing environments. Should work for everyone. libc5: ----- Now it compiles cleanly with libc5. Except for a warning on a repeated symbol between libjpeg and autoconf. --innocuous though PS2: ---
[Bob wrote] - my experience of recent cvs, compiled on the playstion2, (blackrhino 2.2.21 kernel), apparently shows a disconcerting feature. After a few minutes of scrolling up and down standard web-sites the whole system will hang (eg it's unpingable, and doesn't respond to any keyboard input), and needs a hard reset :-(
Anyone else currently testing on the ps2 please (and hopefully had better experiences, or a fix)??
I don't have a PS2, but when testing on libc5, there was a similar problem (crash after scrolling, or crash instants after starting) when _some_ of the libraries used by the X server where compiled reentrant and some others not. In fact I was upgrading slk3.6's with the ones at: http://www.linuxsavvy.com/resources/ and some links pointed to the old ones. Most probably these problems stem from an static errno. Another source can be a non reentrant gethostbyname. If dillo-0.7.3 work right on it, I'm puzzled. That's it. This CVS should work on the same platforms than before and with a few more. Please test and report. Best Jorge.- PS: Those that have had problems with 0.7.3, please test this CVS version, or tarball: URL: http://www.dillo.org/test/dillo-0.8.0-pre.Jan30.tar.gz PS2: Ah there's also a fix to include "dpidc". It fixes "make dist".
Jorge Arellano Cid wrote:
Jorgen, Andreas, Riccardo, Matti, Bob (portability issues here):
Hi, here is a brief covering the latest portability patches now in CVS. These are not final an certainly need testing, so lets try to get it straight.
Issues: libpng, pthreads, proper linking, AF_LOCAL, libc5, PS2
I untarred and run configure, it configured to the end so it didn't stop on pthread or linpng. I didn't attempt to build since there is this GTK header problem. I try tp apply old Andreas' patch manually and check the effect. Bye
In message <Pine.LNX.4.58.0401301144290.732@infinity.cl>, Jorge Arellano Cid <jcid@dillo.org> writes
Jorgen, Andreas, Riccardo, Matti, Bob (portability issues here):
snip
PS2: ---
[Bob wrote] - my experience of recent cvs, compiled on the playstion2, (blackrhino 2.2.21 kernel), apparently shows a disconcerting feature. After a few minutes of scrolling up and down standard web-sites the whole system will hang (eg it's unpingable, and doesn't respond to any keyboard input), and needs a hard reset :-(
Anyone else currently testing on the ps2 please (and hopefully had better experiences, or a fix)??
I don't have a PS2, but when testing on libc5, there was a similar problem (crash after scrolling, or crash instants after starting) when _some_ of the libraries used by the X server where compiled reentrant and some others not. In fact I was upgrading slk3.6's with the ones at: http://www.linuxsavvy.com/resources/ and some links pointed to the old ones.
Most probably these problems stem from an static errno.
Another source can be a non reentrant gethostbyname.
If dillo-0.7.3 work right on it, I'm puzzled.
Today's cvs, run _locally_ on the ps2, looks fine so far (I _can_ induce a crash, by running remotely from _two_ machines at once; I recollect that when I got crashes a week or two ago I was running remotely from only one machine - (an old 486 running slack 4, which is libc5-based...) - but I can't reproduce that result ) Let's assume all is fixed unless I shout. Bob -- robert of northworthige
participants (3)
-
Jorge Arellano Cid
-
Riccardo
-
robert of northworthige