From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 13:30:21 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5475B1065672 for ; Sat, 28 Aug 2010 13:30:21 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D6A908FC1E for ; Sat, 28 Aug 2010 13:30:20 +0000 (UTC) Received: by wyb33 with SMTP id 33so5532431wyb.13 for ; Sat, 28 Aug 2010 06:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=LoyVC3aX0sUD1TV38+NeaQe6YbJHuOUHHYWs38TB0F8=; b=cvj+4ER49054//I045SFJLI/Odcg0Hqvlr9ajRqb19SH59tsUpak2kIlDVG4bHrchK AhvDs6d2NPKSmAbY61EAperfcDaY5x6YdAWNhixf/k9mDilFNKW5ov9g88O2pmfG1iJv YB3y0RNRKCtExirC83h8ZbL3M8IhjrqHngEw4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gARM1BoYa/Ea/g5YDtD0PI/TWDS1HcUQ1hBWhUIbmVJeqzZR7AyF9ais3ixPcGYXgb yIXRIkp06rtMvhpL9NDHIAf8gscsX2rjOL9i7AnYePiZGHdxFem26HjszgWMCmPaeOp4 j0Pq8Mhf1sDow5OqCB9W6blygymYKpQEXQDnI= MIME-Version: 1.0 Received: by 10.227.130.203 with SMTP id u11mr2004236wbs.220.1283002219615; Sat, 28 Aug 2010 06:30:19 -0700 (PDT) Received: by 10.216.179.201 with HTTP; Sat, 28 Aug 2010 06:30:19 -0700 (PDT) Date: Sat, 28 Aug 2010 15:30:19 +0200 Message-ID: From: claudiu vasadi To: FreeBSD Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: cups - error while loading shared libraries: /usr/lib/libcups.so.2: ELF file OS ABI invalid X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 13:30:21 -0000 Hello fellas, I have a 8.0-RELEASE (i386) with the following make.conf: PERL_VERSION=5.8.9 WRKDIRPREFIX=/wrkdir NO_BIND = YES WITH_CUPS=YES CUPS_OVERWRITE_BASE=YES WITHOUT_LPR=YES and a custom kernel that has all the features of GENERIC + all required stuff for pf. Nothig special up to this point. I needed to install cups on this particular machine because the network it resides on has several printers. There is 1 network printer which I added without any problems but I also need to add a Samsung CLP-310_Series USB printer. cups-base-1.4.4 cups-client-1.4.4 cups-image-1.4.4 cups-pstoraster-8.15.4_6 gutenprint-cups-5.2.4_2 gutenprint-base-5.2.4_2 gutenprint-cups-5.2.4_2 and devfs.rules: [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups add path 'usb/4.2.0' mode 0660 group cups <- this was added because cups did not see/detect my usb printer and after a restart of devfs and cups, I was able to add the Samsung printer (ppd was on the CD). All fine and dandy up to this point but when I tried to print a test page I got: [...] D [28/Aug/2010:11:44:14 +0300] [Job 29] Samsung_CLP-310_Series: error while loading shared libraries: /usr/lib/libcups.so.2: ELF file OS ABI invalid [...] D [28/Aug/2010:11:44:14 +0300] [Job 29] printer-state-message="/usr/local/libexec/cups/filter/rastertosamsungsplc failed" [...] So I have 2 problems. 1) /usr/lib/libcups.so.2 # ldd /usr/lib/libcups.so.2 /usr/lib/libcups.so.2: libm.so.5 => /lib/libm.so.5 (0x28300000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x2831a000) libz.so.5 => /lib/libz.so.5 (0x281ee000) libthr.so.3 => /lib/libthr.so.3 (0x28333000) libc.so.7 => /lib/libc.so.7 (0x28091000) 2) rastertosamsungsplc As far as problem 2 goes, I am guessing the file has some problems (although it worked on a centos with the same printer - wtf ? - or maybe it is some linux version of the file) I have the linux kernel module loaded and "linux_base-f10-10_2" installed My guess is that cups needs a linux version of "libcups.so.2" and not a native BSD one. This would explain the fact that it cannot find the file in the first place. I searched for "libcups.so.2" and the only place I could find it was in "/usr/lib" which means that this file is a BSD file. If anyone can pass my their "libcups.so.2" to try I would appreciate it (linux and/or BSD version - if one) . Any ideas and/or thought are highly welcomed -- Best regards, Claudiu Vasadi