Why do I see two libasan packages on Red Hat Enterprise Linux 7?

Solution Verified - Updated -

Issue

  • gcc build fails if -fsanitize=address option is enabled.
gcc -Wall -pedantic -ansi testme.c -o testme -fsanitize=address
/usr/bin/ld: cannot find /usr/lib64/libasan.so.0.0.0
collect2: error: ld returned 1 exit status

But installing libasan # yum install libasan provides /usr/lib64/libasan.so.1

Environment

  • Red Hat enterprise Linux 7
  • gcc-4.8.x-xx.el7
  • libasan-4.8.x-xx.el7
  • libasan-4.9.2-6.2.el7.x86_64 [Developer Toolset 3, Software Collections 1.2]

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