Date: Sat, 28 Aug 2010 15:30:19 +0200 From: claudiu vasadi <claudiu.vasadi@gmail.com> To: FreeBSD <freebsd-questions@freebsd.org> Subject: cups - error while loading shared libraries: /usr/lib/libcups.so.2: ELF file OS ABI invalid Message-ID: <AANLkTinKB-dfUt5%2BxgkCJDk%2BzNznPfKkO0dZfeLn50th@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinKB-dfUt5%2BxgkCJDk%2BzNznPfKkO0dZfeLn50th>