compliation of software fails >>> "need to install netpbm"

Trying to compile mx5000lib. I get this error:
“checking for pbm_readpbm in -lnetpbm …no
configure: error: You need netpbm installed”.

Here is output of “config.log” opensuse private pastebin - collaborative debugging tool Run a search for ‘pbm’

felipe@suse-amd:~> ls -l /usr/lib/*pbm*
lrwxrwxrwx 1 root root     18 2008-09-06 11:31 /usr/lib/libnetpbm.so -> libnetpbm.so.10.26
lrwxrwxrwx 1 root root     18 2008-09-06 11:36 /usr/lib/libnetpbm.so.10 -> libnetpbm.so.10.26
-rwxr-xr-x 1 root root 138872 2008-08-30 03:05 /usr/lib/libnetpbm.so.10.26
lrwxrwxrwx 1 root root     12 2008-09-06 11:31 /usr/lib/libpbm.so -> libnetpbm.so
felipe@suse-amd:~> zypper se -st package pbm
Reading installed packages...

S | Name            | Type    | Version       | Arch | Repository
--+-----------------+---------+---------------+------+------------------
i | libnetpbm-devel | package | 10.26.44-90   | i586 | openSUSE:Factory
v | libnetpbm-devel | package | 10.26.44-62.1 | i586 | openSUSE-11.0-Oss
i | libnetpbm10     | package | 10.26.44-90   | i586 | openSUSE:Factory
v | libnetpbm10     | package | 10.26.44-62.1 | i586 | openSUSE-11.0-Oss
i | netpbm          | package | 10.26.44-90   | i586 | openSUSE:Factory
v | netpbm          | package | 10.26.44-62.1 | i586 | openSUSE-11.0-Oss
  | pbm2l7k         | package | 990321-924    | i586 | openSUSE:Factory
  | pbm2l7k         | package | 990321-904.1  | i586 | openSUSE-11.0-Oss
felipe@suse-amd:~>

I tried to install all netpbm-related packages from opensuseOSS repo and opensuseFACTORY as well. Any ideas on what to do?

Any ideas? Anything I should be looking out for?

The log has these error lines:

#
/usr/lib/gcc/i586-suse-linux/4.3/../../../libnetpbm.so: undefined reference to `log'
#
/usr/lib/gcc/i586-suse-linux/4.3/../../../libnetpbm.so: undefined reference to `pow'

So the configure script in your software package is faulty, it should include -lm to work. Complain to the authors.

Is it easy to correct myself?

You’ll have to add -lm (the math library) to the libraries passed to ld in configure’s tests. It’s up to you to figure out how to do that in the configure script.

i don’t know what the heck that means :\

Complain to the author then. They didn’t take into account that recent netpbm libraries require linking with the math library.

I made a bug report, but it seems like other bug reports are going unanswered. Maybe I’ll wait and see. It isn’t urgent.

I appreciate your help.

felipe

It is too easy. open the ‘configure’ file in a editor. search for the netpbm checking part. you will find a line starting with gcc in which -lnetpbm or -lpbm is written. Add -lm to this line. save the file and rerun it. lol!