libnetpbm library link seems missing

Solution Verified - Updated -

Issue

While compiling a program using gcc with 32 bits mode on a Red Hat Enterprise Linux 4.8, it throws an error. It seems that there is a missing link in /usr/lib/:

/usr/lib/libnetpbm.so; libnetpbm.so.10

E.g.

# gcc -m32 -lnetpbm -o test example.c/usr/bin/ld: skipping incompatible /usr/lib64/libnetpbm.so when searching for -lnetpbm  
/usr/bin/ld: skipping incompatible /usr/lib64/libnetpbm.a when searching for -lnetpbm  
/usr/bin/ld: cannot find -lnetpbm  
collect2: ld returned 1 exit statusAnd without 32 bits mode compilating process works fine.

# gcc -lnetpbm -o test example.c

Environment

  • Red Hat Enterprise Linux 4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content