Re: Unable to find pnm library for libgocr
On Thursday 09 August 2007 03:07:37 Nicolas FRANCOIS ha scritto: Hi. I know this is not entirely part of BLFS, but I want to install a dependency of kdegraphics, namely Gocr, which requires netpbm. Well, in fact, it is more libpnm which is required. The problem is, netpbm claims to put everything in libnetpbm, but libgocr continues to search for libpnm : checking for pnm.h... yes checking for pnm_readpaminit in -lpnm... no checking for pnm_init in -lpnm... no configure: error: Cannot find PNM library Hi, notice that libgocr in _not_ needed to compile gocr, I don't know the full story but libgocr seems to be pretty old. However, in my system I have: [EMAIL PROTECTED] ~# nm /opt/netpbm/lib/libnetpbm.so.10.37 | grep pnm_readpaminit 0001bc90 T pnm_readpaminit 0001b2a0 T pnm_readpaminitrestaspnm but if I try to compile libgocr I obtain the same error (also if I pass explicitly in configure the location of netpbm libs and includes). But I see no problems configuring gocr: ./configure --prefix=/usr --with-netpbm=/opt/netpbm (...) option: with_netpbm /opt/netpbm checking for library containing pnm_readpnminit... -lnetpbm (...) HTH, Alessandro Alocci -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: Unable to find pnm library for libgocr
On 8/9/07, Alessandro Alocci [EMAIL PROTECTED] wrote: On Thursday 09 August 2007 03:07:37 Nicolas FRANCOIS ha scritto: Hi. I know this is not entirely part of BLFS, but I want to install a dependency of kdegraphics, namely Gocr, which requires netpbm. Well, in fact, it is more libpnm which is required. The problem is, netpbm claims to put everything in libnetpbm, but libgocr continues to search for libpnm : checking for pnm.h... yes checking for pnm_readpaminit in -lpnm... no checking for pnm_init in -lpnm... no configure: error: Cannot find PNM library Hi, notice that libgocr in _not_ needed to compile gocr, I don't know the full story but libgocr seems to be pretty old. However, in my system I have: [EMAIL PROTECTED] ~# nm /opt/netpbm/lib/libnetpbm.so.10.37 | grep pnm_readpaminit 0001bc90 T pnm_readpaminit 0001b2a0 T pnm_readpaminitrestaspnm but if I try to compile libgocr I obtain the same error (also if I pass explicitly in configure the location of netpbm libs and includes). That looks like the library is called libnetpbm, but libgocr is tryng to link to libpnm (-lpnm). I bet if you `ln -sv libnetpbm.so libpnm.so', it would work. The linker is failing to find the library in the config.log output Nicolas showed. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: Unable to find pnm library for libgocr
Dan Nicholson wrote these words on 08/09/07 10:01 CST: That looks like the library is called libnetpbm, but libgocr is tryng to link to libpnm (-lpnm). I bet if you `ln -sv libnetpbm.so libpnm.so', it would work. The linker is failing to find the library in the config.log output Nicolas showed. I think Dan has hit it on the nose. I see at: http://www.novell.com/products/linuxpackages/suselinux/libnetpbm.html they do what Dan suggests. In fact, they link many more names to libnetpbm lrwxrwxrwx1 rootroot 12 Apr 23 03:26 /usr/lib64/libpbm.so - libnetpbm.so lrwxrwxrwx1 rootroot 12 Apr 23 03:26 /usr/lib64/libpgm.so - libnetpbm.so lrwxrwxrwx1 rootroot 12 Apr 23 03:26 /usr/lib64/libpnm.so - libnetpbm.so lrwxrwxrwx1 rootroot 12 Apr 23 03:26 /usr/lib64/libppm.so - libnetpbm.so My apologies to Nicolas for my earlier hasty reply, where I didn't have a clue what I was talking about (didn't notice the lib name different than what gets installed). -- Randy rmlscsi: [bogomips 1003.26] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3] [GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686] 11:10:01 up 7 days, 11:01, 1 user, load average: 0.24, 0.15, 0.10 -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: Unable to find pnm library for libgocr
Le Thu, 09 Aug 2007 11:13:50 -0500 Randy McMurchy [EMAIL PROTECTED] a écrit : My apologies to Nicolas for my earlier hasty reply, where I didn't have a clue what I was talking about (didn't notice the lib name different than what gets installed). No harm done :-) Thanks everyone, I just compiled gocr without libgocr, it worked fine, but now I know how to compile libgocr :-) \bye -- Randy rmlscsi: [bogomips 1003.26] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3] [GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686] 11:10:01 up 7 days, 11:01, 1 user, load average: 0.24, 0.15, 0.10 18:56:00 up 3 days, 16:28, 1 user, load average: 5.20, 4.51, 4.09 My uptime is not as good as yours, but watch my load average ;-) -- Nicolas FRANCOIS http://nicolas.francois.free.fr A TRUE Klingon programmer does NOT comment his code -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: Unable to find pnm library for libgocr
Il Thursday 09 August 2007 17:01:45 Dan Nicholson ha scritto: That looks like the library is called libnetpbm, but libgocr is tryng to link to libpnm (-lpnm). I bet if you `ln -sv libnetpbm.so libpnm.so', it would work. The linker is failing to find the library in the config.log output Nicolas showed. Maybe -lpnm refers to older netpbm installations, notice that the last entry in libocr Changelog (find in gocr site) dates from 2001. Besides, I have a gentoo here, and libocr is not even in portage. And, for sure, is not nedeed to build gocr (last version, gocr-0.44 dates from Mar 2007) AA -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page