logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Urgent: log4cxx 0.10.0 build on HP Unix build problem
Date Wed, 07 May 2008 05:12:20 GMT

On May 3, 2008, at 6:04 AM, Chakravarthula, Krishnamurthy wrote:

> Hi Arnold,

Please ask questions of the list instead of an individual developer.   
If you ask questions of a specific developer, that might discourage  
someone else from answering.

>
>
> I am getting following error when I do make of log4cxx. The earlier
> problems got resolved. They were because of my library path settings.
> Please advice.
>
> libtool: link: warning: this platform does not like uninstalled shared
> libraries
> libtool: link: `trivial' will be relinked during installation
> g++ -g -O2 -o .libs/trivial trivial.o  -L/u/chakrava/apr
> -L/u/chakrava/apr-util
> -lm ../../../src/main/cpp/.libs/liblog4cxx.sl
> /u/chakrava/apr-util/.libs/libapru
> til-1.sl /u/chakrava/apr-util/xml/expat/lib/.libs/libexpat.sl
> /u/chakrava/apr/.l
> ibs/libapr-1.sl -lrt -lpthread /opt/hp-gcc64-4.2.1/lib/libstdc++.sl
> -L/tmp/gcc-4
> .2.1.tar.gz/obj/hppa64-hp-hpux11.11/libstdc++-v3/src
> -L/tmp/gcc-4.2.1.tar.gz/obj
> /hppa64-hp-hpux11.11/libstdc++-v3/src/.libs
> -L/tmp/gcc-4.2.1.tar.gz/obj/./gcc -L
> /opt/hp-gcc64-4.2.1/hppa64-hp-hpux11.11/bin -L/opt/hp-gcc64-4.2.1/lib
> -Wl,+b -Wl
> ,/u/chakrava/log4cxx/src/main/cpp/.libs:/u/chakrava/apr-util/.libs:/ 
> u/ch
> akrava/a
> pr-util/xml/expat/lib/.libs:/u/chakrava/apr/.libs:/opt/hp- 
> gcc64-4.2.1/li
> b:/usr/l
> ocal/lib:/usr/local/apr/lib
> ld: Can't find dependent library "libaprutil-1.sl.2"
> Fatal error.
> collect2: ld returned 1 exit status
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
> Regards,
> Krishna
>

I created a bug report for this at http://issues.apache.org/jira/browse/LOGCXX-280 
.  The fix is in the SVN HEAD, but I've provided the diffs below in  
case you want to fix up your existing build.

HP-UX apparently has issues with linking to an uninstalled shared  
library which prevents the sample and unit test programs from  
linking.  libtool indicates in your log file.

I've modified src/test/cpp/Makefile.am and src/examples/cpp/ 
Makefile.am so that the example and unit test files are not compiled  
and linked during the default build target, but only when you do a  
"make check".  To run "make check" on HP-UX, you will need to first do  
a "make install".

= 
= 
= 
= 
= 
= 
========================================================================
--- logging/log4cxx/trunk/src/examples/cpp/Makefile.am (original)
+++ logging/log4cxx/trunk/src/examples/cpp/Makefile.am Tue May  6  
22:03:40 2008
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-noinst_PROGRAMS = trivial delayedloop stream console
+check_PROGRAMS = trivial delayedloop stream console

INCLUDES = -I$(top_srcdir)/src/main/include -I$(top_builddir)/src/main/ 
include


Modified: logging/log4cxx/trunk/src/test/cpp/Makefile.am
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/test/cpp/Makefile.am?rev=653989&r1=653988&r2=653989&view=diff
= 
= 
= 
= 
= 
= 
========================================================================
--- logging/log4cxx/trunk/src/test/cpp/Makefile.am (original)
+++ logging/log4cxx/trunk/src/test/cpp/Makefile.am Tue May  6 22:03:40  
2008
@@ -24,7 +24,7 @@

INCLUDES = -I$(top_srcdir)/src/main/include -I$(top_builddir)/src/main/ 
include

-noinst_PROGRAMS = testsuite
+check_PROGRAMS = testsuite

customlogger_tests = \
	customlogger/xlogger.cpp\


Mime
View raw message