FS#14214 - [syslog-ng] 3.0.1-6 PKGBUILD from ABS fails
Attached to Project:
Arch Linux
Opened by Lee Jackson (ProfessorTomoe) - Monday, 13 April 2009, 13:47 GMT
Last edited by Allan McRae (Allan) - Saturday, 11 July 2009, 10:27 GMT
Opened by Lee Jackson (ProfessorTomoe) - Monday, 13 April 2009, 13:47 GMT
Last edited by Allan McRae (Allan) - Saturday, 11 July 2009, 10:27 GMT
|
Details
The PKGBUILD of syslog-ng 3.0.1-6 from ABS fails with the
following message:
/usr/bin/ld: cannot find -lcap collect2: ld returned 1 exit status I have verified that libcap 2.16-3 is installed on my system: $ locate libcap /lib/libcap.so /lib/libcap.so.2 /lib/libcap.so.2.16 |
This task depends upon
Closed by Allan McRae (Allan)
Saturday, 11 July 2009, 10:27 GMT
Reason for closing: Fixed
Additional comments about closing: syslog-ng-3.0.3-1
Saturday, 11 July 2009, 10:27 GMT
Reason for closing: Fixed
Additional comments about closing: syslog-ng-3.0.3-1
In official arch build don't fails, because developers build under chroot env.
Also syslog-ng, compiles other libs as static (because is configured in "mixed mode"), this is a bad idea, but decreses the dependencies.
gcc -march=i686 -mtune=generic -O2 -pipe -Wall -o syslog-ng main.o libsyslog-ng.a -lrt -lnsl -Wl,-Bstatic -lfl -lglib-2.0 -levtlog -lssl -lcrypto -lz -lz -lwrap -lcap -lpcre -Wl,-Bdynamic -ldl
diff --git configure.in configure.in
index 16332a3..2cab15a 100644
--- configure.in
+++ configure.in
@@ -632,7 +632,7 @@ else
if test "$ostype" = "AIX"; then
DEPS_LIBS="$LIBS $BASE_LIBS $RESOLV_LIBS $LD_START_STATIC $OPENSSL_LIBS $LEXLIB $GLIB_LIBS $EVTLOG_LIBS $ZLIB_LIBS $
LIBNET_LIBS $LIBWRAP_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $LD_END_STATIC $LIBDBI_LIBS $DL_LIBS "
else
- DEPS_LIBS="$LIBS $BASE_LIBS $RESOLV_LIBS $LD_START_STATIC $LEXLIB $GLIB_LIBS $EVTLOG_LIBS $OPENSSL_LIBS $ZLIB_LIBS $
LIBNET_LIBS $LIBWRAP_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $LD_END_STATIC $LIBDBI_LIBS $DL_LIBS "
+ DEPS_LIBS="$LIBS $BASE_LIBS $RESOLV_LIBS $LD_START_STATIC $LEXLIB $GLIB_LIBS $EVTLOG_LIBS $OPENSSL_LIBS $ZLIB_LIBS $
LIBNET_LIBS $LIBWRAP_LIBS $PCRE_LIBS $REGEX_LIBS $LD_END_STATIC $LIBCAP_LIBS $LIBDBI_LIBS $DL_LIBS "
fi
fi
Thanks to Joe Shaw for the fix!
* Update the latest syslog-ng 3.0.2
* Fixed the license
* Removed uid.patch, not ncessary anymore, already fixed in 3.0.2
* Fixed missing \ in configure options so the rest option was discarded.
* Added two linked flags to reduce the numbers of unused direct depends.
* Shared mode is now default in 3.0.2
Resulting binary is 238K vs 2M
$ readelf -d /usr/sbin/syslog-ng | awk '/NEEDED/{print $5}'
[libglib-2.0.so.0]
[libevtlog.so.0]
[libssl.so.0.9.8]
[libcrypto.so.0.9.8]
[libwrap.so.0]
[libcap.so.2]
[libpcre.so.0]
[libc.so.6]
[#1] http://www.archlinux.org/pipermail/arch-general/2009-May/005354.html
Just remember to move libcap to [core]