bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stray stderr output for cat: /etc/ld.so.conf.d/*.conf:


From: Brian Gough
Subject: stray stderr output for cat: /etc/ld.so.conf.d/*.conf:
Date: Tue, 28 Mar 2006 19:09:39 +0100

Hello,

On SUSE 9.3 and SUSE 10 I'm noticing stray error messages in configure
output coming from AC_LIBTOOL_SYS_DYNAMIC_LINKER in libtool-1.5.22 and
earlier.  Probably this has been reported before....

Example:

   checking whether -lc should be explicitly linked in... no
   checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No 
such file or directory
   GNU/Linux ld.so
   checking how to hardcode library paths into programs... immediate

On these systems /etc/ld.so.conf contains the line

  include /etc/ld.so.conf.d/*.conf

but /etc/ld.so.conf.d/ is typically empty so the expansion fails.
Maybe it is worth redirecting stderr for the 'cat %s' below to
/dev/null to hide the error?

-- 
best regards,

Brian Gough

--- libtool.m4.~1.314.2.151.~   2006-03-17 04:20:54.000000000 +0000
+++ libtool.m4  2006-03-28 18:07:54.000000000 +0100
@@ -1581,7 +1581,7 @@
 
   # Append ld.so.conf contents to the search path
   if test -f /etc/ld.so.conf; then
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); 
skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 
's/#.*//;s/[:,   ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 
2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < 
/etc/ld.so.conf | $SED -e 's/#.*//;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / 
/g;/^$/d' | tr '\n' ' '`
     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   fi
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]