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?

Mark


_______________________________________________
cfarm-users mailing list
cfarm-users@lists.tetaneutral.net
https://lists.tetaneutral.net/listinfo/cfarm-users

Reply via email to