[cfarm-users] cf210 zlib versions

Dagobert Michelsen dam at opencsw.org
Mon Aug 19 09:07:08 CEST 2024


Hi Mark,

> Am 18.08.2024 um 23:42 schrieb Mark Adler via cfarm-users <cfarm-users at lists.tetaneutral.net>:
> The zlib versions on cf210 are farblunget.
> 
> I find these in the gcc include and library search paths:
> 
> /opt/csw/include/zlib.h == 1.2.8
> /usr/include/zlib.h == 1.2.3
> 
> /opt/csw/lib/libz.so.1.2.13 == 1.2.13
> /usr/lib/libz.so.1 == 1.2.3
> 
> When I compile, I get the 1.2.8 include. Interestingly, if I add "-I /usr/include”, it still gets the 1.2.8 include.
> 
> When linking, it seems to be finding the 1.2.3 version, since ld tells me that a function (deflatePending) is not defined, which didn’t exist in 1.2.3, but did in 1.2.6 and later. Without trying to call that function in the code (so that I get an executable out of it), when I run the code, it connects up with the 1.2.13 shared library!
> 
> (Note: the code can look at ZLIB_VERSION to see the zlib.h used, and zlibVersion() to see the library being used.)
> 
> I am confused. How did this system end up in this state? Is this a stock install of Solaris 10?

Thanks for noticing! First of all it is expected that the versions between /usr and /opt/csw differ,
Solaris 10 is EOL and one of the reasons for OpenCSW is to provide newer packages than the ones
installed by the system.

The discrepancy between the library and header files in /opt/csw is of course not intended. The reason
why this can happen originates in the working of the pkgutil package installation tool from OpenCSW:
When a package is installed on the system all dependencies will get updated also, but there is no
concistency enforcement between packages not in the direct dependency line. That means if something
requires CSWlibz1 that one gets updated without touching the optionally installed CSWlibz-dev.
Please take this not as excuse but as explanation why it ended up this way.

I now updated all OpenCSW packages on the system to the most recent version and everything should
be fine now. If you encounter anything else please let me know!


Best regards

  — Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the cfarm-users mailing list