From owner-freebsd-questions@FreeBSD.ORG Thu Mar 7 19:53:07 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 19273506; Thu, 7 Mar 2013 19:53:07 +0000 (UTC) (envelope-from kris.universe@gmail.com) Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) by mx1.freebsd.org (Postfix) with ESMTP id B83B8F3C; Thu, 7 Mar 2013 19:53:06 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id wd20so670928obb.23 for ; Thu, 07 Mar 2013 11:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=LJ67bUQ05iaUtqgPRD9ZV7jXpxvNAzMNY0bJAWumHrI=; b=lfHx6KSHvOgPNuwybOLGw/wZsY6+aF72mQe70XeNaRHVQ3MglwXnxgUSC/CLNlmJM0 77YIaL5DagKDZ0x9BFxs2lYfjuyFdDfprY1VkH7sDgaxgOxnFGZEydPbQn+zEQcZy+/V YOdhwjEVKqTJomjjFUBOQeRZauU3JcSNVWUQJJbt0pPzlXksxbUnajM577AMMXj+I24f BxFcakkbYQ4rLzRxSp/hF1mhvDnXqjheDxzjXN0pXmPqKRZlPG5g2IgSOgTHAvfca8Fg HPYScvhJNZbd5bB3V5M3el99xDKK5hqfJTdsqCmpCiQJVOCUiXO3TN9ZTcBmq+UGfYXO veBg== X-Received: by 10.182.221.105 with SMTP id qd9mr26504564obc.97.1362685986370; Thu, 07 Mar 2013 11:53:06 -0800 (PST) Received: from dcmac.dev.art ([70.116.76.91]) by mx.google.com with ESMTPS id ri1sm2518864obc.12.2013.03.07.11.53.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Mar 2013 11:53:05 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Zlib version in FreeBSD - 3 releases behind? From: Kris Sridhar In-Reply-To: <20130306232750.GA25598@saturn> Date: Thu, 7 Mar 2013 13:53:03 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <6D7C4F7F-B392-49E8-83A6-ACC61803E378@gmail.com> References: <20130305161158.GB9376@saturn> <5136F918.70105@qeng-ho.org> <20130306232750.GA25598@saturn> To: Giorgos Keramidas X-Mailer: Apple Mail (2.1499) Cc: Arthur Chance , freebsd-questions@FreeBSD.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2013 19:53:07 -0000 Gentlemen, The library (/lib/libz.so.6) in FreeBSD 9.1R does seem to have Zlib = 1.2.4 based on the complaints from the following at least: libarchive.so.* libssh.so.* grep gzip I've provided objdump -p output from my machine: ---------------------------------------------------------------- fBSD9# objdump -p libz.so.6 libz.so.6: file format elf32-i386-freebsd Program Header: LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12 filesz 0x000124c4 memsz 0x000124c4 flags r-x LOAD off 0x000124c4 vaddr 0x000134c4 paddr 0x000134c4 align 2**12 filesz 0x000002e0 memsz 0x000002e4 flags rw- DYNAMIC off 0x00012588 vaddr 0x00013588 paddr 0x00013588 align 2**2 filesz 0x000000d8 memsz 0x000000d8 flags rw- STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2 filesz 0x00000000 memsz 0x00000000 flags rw- Dynamic Section: NEEDED libc.so.7 SONAME libz.so.6 INIT 0x13f0 FINI 0xe1b4 HASH 0xb4 STRTAB 0xaec SYMTAB 0x3fc STRSZ 0x49f SYMENT 0x10 PLTGOT 0x1367c PLTRELSZ 0x1b0 PLTREL 0x11 JMPREL 0x1240 REL 0x1130 RELSZ 0x110 RELENT 0x8 VERDEF 0x106c VERDEFNUM 0x5 VERNEED 0x1110 VERNEEDNUM 0x1 VERSYM 0xf8c RELCOUNT 0x1e Version definitions: 1 0x01 0x09d5f4e6 libz.so.6 2 0x00 0x07e5cf30 ZLIB_1.2.4.0 3 0x00 0x053ecdd0 ZLIBprivate_1.0 ZLIB_1.2.4.0=20 4 0x00 0x07e5c230 ZLIB_1.2.7.0 ZLIB_1.2.4.0=20 5 0x00 0x077a28b2 FBSD_1.2 ZLIB_1.2.4.0=20 Version References: required from libc.so.7: 0x077a28b0 0x00 06 FBSD_1.0 fBSD9# uname -r 9.1-RELEASE ---------------------------------------------------------------- If Zlib 1.2.7 were installed independently from tar.gz downloaded from = zlib.net site, it produces, /usr/local/lib/libz.so.1.2.7 which is different from /lib/libz.so.6 of = course. But this installs a /usr/local/include/zlib.h that is identical to = /usr/src/lib/libz/zlib.h as well as /usr/include/zlib.h The complaint mentioned before from dependent objects like libarchive = that the "/lib/libz.so.6 containing ZLIB_1_2_4 is missing" results if = one removes /lib/libz.so.6 and replaces with a symlink to the new = version like: /lib/libz.so.6 --> /usr/local/lib/libz.so.1.2.7 Given the version definitions from the objdump -p of the original = /lib/libz.so.6 that was installed as part of a fresh, clean install of = FreeBSD 9.1R, as provided above, any thoughts on the Zlib version = actually baked into the release please? Thanks. Kris On Mar 6, 2013, at 5:27 PM, Giorgos Keramidas = wrote: > On 2013-03-06 08:06, Arthur Chance wrote: >> On 03/05/13 16:12, Giorgos Keramidas wrote: >>> On 2013-03-04 07:28, KrisUniverse wrote: >>>> The Zlib baked into FreeBSD is Zlib 1.2.4 even on 9.1R. >>>>=20 >>>> However, Zlib has gone to 1.2.7 sometime ago after stepping through >>>> 1.2.5, 1.2.6 and 1.2.7 with bug fixes. >>>>=20 >>>> Is there any reason for not using Zlib 1.2.7? >>>=20 >>> I don't have a 9.1-RELEASE system nearby, but I think zlib 1.2.7 = _should_ >>> already be there... Are you sure it's still an old version? >>=20 >> On my machine: >>=20 >> # uname -r >> 9.1-RELEASE >>=20 >> [It's actually -p1 but I've not bothered replacing the kernel as the >> problems were in user space.] >>=20 >> # grep 'define ZLIB_VERSION' /usr/src/lib/libz/zlib.h >> #define ZLIB_VERSION "1.2.7" >=20 > That's what I'd expect. Thanks :) >=20