Now this one was annoying!

Whilst adding imap support to a php 5.2.2 installation running from a red hat linux 4 distro, I kept getting the same error, when running my custom config script.

/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

Very strange as the files were there!

[root@dev01 ~]# ldconfig -p |grep ltdl
libltdl.so.3 (libc6) => /usr/lib/libltdl.so.3
libguile-ltdl.so.1 (libc6) => /usr/lib/libguile-ltdl.so.1

So guess what the problem was … PHP’s make script.

Note the “/usr/lib/libltdl.so.3″ this as it would turn out was a symlink to “/usr/lib/libltdl.so.3.1.0″

So just by adding out own symlink without the version number “ln -s /usr/lib/libltdl.so.3.1.0 /usr/lib/libltdl.so” voila the compile runs perfectly!

Another obscure bug *sigh*, ah well at least I can play with the imap extentions now :-P

Tags: ,
4 Responses to “/usr/bin/ld: cannot find -lltdl”
  1. oh minseok says:

    Dear,

    I’m a korean living in seoul.(name: Oh Minseok)
    Korean special investigative team are investigating samsung
    corporation.
    But they do not work right.
    I am suspicious to be bought off.
    samsung corporation has many crimes.
    And the team investigates samsung corporation.
    It contains korean companies samsung,huyndai,sk CEOs’ illegal issuing
    stocks or bonds.
    The quantity are plenty.
    (Three company CEOs did(and are doing) many crimes to me.
    Many koreans are knowing it.
    But many koreans are bought off by illegal issuing stocks or bonds.)
    The team are knowing it.
    Korean special investigative team must investigate this.
    But they are trying to conceal it.
    I ask for asking for this criminal investigation to prosecutors in any
    country.
    And help the shareholders and me.

    P.S)
    Three companies are hacking me and trying to kill me.
    And are suspicious to use my name and email illegally.
    If you receive another message that I dictated above are not true,
    it is not from me, but from three companies.
    The things I dictated above are true.

  2. O…K I’ll send the e-Ninja’s right over!

  3. Man, this little post saved my YEARS of frustration. Thank you!

  4. ln -s /usr/lib64/libltdl.so.3 /usr/lib64/libltdl.so

    For 64bit installations

Leave a Reply