From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 Description of problem: There is a missing symlink in /usr/lib which prevents linking against libesmtp. Fixed with the following in /usr/lib ln -s libesmtp.so.5.1.2 libesmtp.so Version-Release number of selected component (if applicable): libesmtp-1.0.1-1 (rpm) How reproducible: Always Steps to Reproduce: 1.gcc -lesmtp 2. 3. Actual Results: Linking fails (ld error) Expected Results: linking should work Additional info:
You sure you installed libesmtp-devel? libesmtp.so is provided by it. % rpm -qa libesmtp\* libesmtp-1.0.1-1 % gcc -lesmtp /usr/bin/ld: cannot find -lesmtp collect2: ld returned 1 exit status % sudo rpm -ivh libesmtp-devel-1.0.1-1.i386.rpm % rpm -qa libesmtp\* libesmtp-1.0.1-1 libesmtp-devel-1.0.1-1 % gcc -lesmtp /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status % rpm -qlpv libesmtp-devel-1.0.1-1.i386.rpm -rw-r--r-- 1 root root 3654 Oct 3 23:53 /usr/include/auth-client.h -rw-r--r-- 1 root root 2210 Oct 3 23:53 /usr/include/auth-plugin.h -rw-r--r-- 1 root root 10627 Oct 3 23:53 /usr/include/libesmtp.h -rw-r--r-- 1 root root 83622 Oct 3 23:53 /usr/lib/libesmtp.a lrwxrwxrwx 1 root root 17 Oct 3 23:53 /usr/lib/libesmtp.so -> libesmtp.so.5.1.2