From owner-freebsd-ports@FreeBSD.ORG Fri Feb 12 08:52:10 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52FD7106566C for ; Fri, 12 Feb 2010 08:52:10 +0000 (UTC) (envelope-from m.seaman@black-earth.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id B91D38FC0C for ; Fri, 12 Feb 2010 08:52:09 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o1C8q3wq017549 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 12 Feb 2010 08:52:04 GMT (envelope-from m.seaman@black-earth.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o1C8q3wq017549 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=black-earth.co.uk; s=201001-black-earth; t=1265964724; bh=oxJNNMy4R3UNrAPyGvDw++ND4GIUcAgVnKD1oNQN4L8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B7516AA.3010600@black-earth.co.uk>|Date:=20Fri,=2 012=20Feb=202010=2008:51:54=20+0000|From:=20Matthew=20Seaman=20|User-Agent:=20Mozilla/5.0=20(Macintosh=3 B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-GB=3B=20rv:1.9.1.7) =20Gecko/20100111=20Thunderbird/3.0.1|MIME-Version:=201.0|To:=20M= 20M=20<77superchimp@gmail.com>|CC:=20freebsd-ports@freebsd.org|Sub ject:=20Re:=20FreeBSD=20Ports=20Problem=20-=20Please=20help|Refere nces:=20<6790187d1002112022q1a0dcd1dxbf9accdba50167c9@mail.gmail.c om>|In-Reply-To:=20<6790187d1002112022q1a0dcd1dxbf9accdba50167c9@m ail.gmail.com>|X-Enigmail-Version:=201.0|Content-Type:=20multipart /signed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/ pgp-signature"=3B=0D=0A=20boundary=3D"------------enig25A208E75B4E 56AB9F04D245"; b=Ufh7UvYiNMnmzdIVgyXwMpcBti4Rsf7k0CfbaYVJKZlxPJfpF65w9sRPNulvJZsJm gw2DRY+JT1tMRqBNZgw6sRoNT+2gixgFwBqrSL2kJI9Ho6RL0lPnOygAQUgwzZQEKa b6JNDvL2HzOHoo5pWzk5eDgbTxsOK7nvT/B/StBs= Message-ID: <4B7516AA.3010600@black-earth.co.uk> Date: Fri, 12 Feb 2010 08:51:54 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: M M <77superchimp@gmail.com> References: <6790187d1002112022q1a0dcd1dxbf9accdba50167c9@mail.gmail.com> In-Reply-To: <6790187d1002112022q1a0dcd1dxbf9accdba50167c9@mail.gmail.com> X-Enigmail-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig25A208E75B4E56AB9F04D245" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_FAIL, URIBL_RED autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD Ports Problem - Please help X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2010 08:52:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig25A208E75B4E56AB9F04D245 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/02/2010 04:22, M M wrote: > I followed the FreeBSD guidebook and tried to install the ports > 'graphics/sane-backends' and 'graphics/sane-frontends', but when I did = this, > FreeBSD told me I needed the latest installation of graphics/jpeg (whic= h > happened to be jpeg-8, and I only had jpeg-7 installed on my machine). >=20 > So If I remember correctly, I ended up using *Portupgrade* for this pro= cess. > I believe I ran 'Portupgrade -ai' which took quite a long time. Portupg= rade > worked great or whatever Port updating command I ran did a wonderful > job....it updated the graphics/jpeg port on my machine. The root of the problem you're seeing is due to the change in the libjpeg.so ABI version: libjpeg.so.10 is installed by jpeg-8, but most of your apps want to link against libjpeg.so.9 installed by jpeg-7. Rebuilding all out of date ports (via portupgrade -a) should have been the correct action to fix that. However, some problems with the update were discovered and subsequently fixed. Have you seen this entry from /usr/ports/UPDATING? 20100205: AFFECTS: users of qt 3 and kde 3 AUTHOR: itetcu@FreeBSD.org When building qt33 and kdelibs3 (at least), while they are installed, because of -L/usr/local/lib being passed too soon, the currently installed libs are used instead of the ones from the build. This makes the build fail if y= ou updated any of the libs this qt / kde libs are linked against (like libjpeg). For the moment the workaround, when you get to this, is to move the old lib out of the way, e.g.: mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old && \ cd /usr/ports/x11-toolkits/qt33/ && make && \ mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so && \ portmaster -C x11-toolkits/qt33 (or portupgrade -w qt-33\*), etc. I suggest the best thing to try first is: update your ports tree to the latest using csup(1) or portsnap(8) or however you'ld usually do it. Forcibly delete whatever libjpeg you have installed, and then reinstall jpeg-8: # pkg_delete -f jpeg-\* (This will give you alarming warning messages, which you can ignore) # cd /usr/ports/graphics/jpeg # make install # pkgdb -F Apply the advice above to move the incorrectly linked shlibs out of the way and rebuild them properly. This might make things work again. If it doesn't try and identify any binaries in /usr/local/bin that link against missing shlibs and re-install the ports that supply them. Do that by running ldd(1) against the apps. Eg. like this: % ldd /usr/local/bin/psi /usr/local/bin/psi: libz.so.5 =3D> /lib/libz.so.5 (0x285ff000) libXss.so.1 =3D> /usr/local/lib/libXss.so.1 (0x28611000) libaspell.so.16 =3D> /usr/local/lib/libaspell.so.16 (0x28614000) libQtDBus.so.4 =3D> /usr/local/lib/qt4/libQtDBus.so.4 (0x286cc000) [... etc ...] What you're looking for are lines that say 'libfoo =3D> not found (0x0)' For any such, work out what port supplies that application, and reinstall it: # pkg_which /usr/local/bin/psi # portupgrade -f `pkg_which /usr/local/bin/psi` That's going to be long-winded and tedious, but should still be a bit quicker than force-reinstalling everything that depends on jpeg, kde and qt. > Any advice would be greatly appreciated. At this point I am waiving the= > white flag and I would love to just get back to my original configurati= on > and forget about installing the image scanner. Above all else, I am jus= t > trying to avoid a total reinstall of FreeBSD 8.0. There's no need to go that far. If you want to take a nuke-and-repave approach, you can do it by deleting and reinstalling just the affected ports. In extremis, you could do something like this: * Make a note of all the ports you have installed already that depend on libjpeg: % pkg_info -Rx jpeg > ports-I-want-installed * Blow away libjpeg and everything that links against it: # pkg_deinstall -fr graphics/jpeg * Reinstall what you want from ports-I-want-installed. If you choose the important leaf ports first (the ones that provide the apps you actually use) then most of the ports on that list will get automatically reinstalled as dependencies. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard, Flat 3 Black Earth Consulting Ramsgate Kent, CT11 9PW Free and Open Source Solutions Tel: +44 (0)1843 580647 --------------enig25A208E75B4E56AB9F04D245 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkt1FrMACgkQ8Mjk52CukIx2dACeJMCQ7mwB2HrWyE4bEE7Nxi6F PvsAnjISV4KdLcQZ7svkSpWEd+Gig2Gi =JKYB -----END PGP SIGNATURE----- --------------enig25A208E75B4E56AB9F04D245--