From: Václav Z. <wi...@us...> - 2011-11-04 15:05:48
|
On Fri, 4 Nov 2011 03:21:49 +0000, Boom LBoom wrote: > Dear Sir/Madam, > > Please suggest solution to solve my problem when I make log4cplus. > > I got error message while "make" command. The error shows as below. > > ld: warning: relocation error: R_386_32: file > .libs/consoleappender.o: > symbol std::cout: external symbolic relocation against > non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file > .libs/consoleappender.o: > symbol std::cerr: external symbolic relocation against > non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file > .libs/consoleappender.o: > symbol std::cout: external symbolic relocation against > non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file > .libs/consoleappender.o: > symbol std::cerr: external symbolic relocation against > non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file .libs/loglog.o: symbol > std::cout: external symbolic relocation against non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file .libs/loglog.o: symbol > std::cerr: external symbolic relocation against non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file .libs/loglog.o: symbol > std::cout: external symbolic relocation against non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > ld: warning: relocation error: R_386_32: file .libs/loglog.o: symbol > std::cerr: external symbolic relocation against non-allocatable > section .debug_info; cannot be processed at runtime: relocation > ignored > > Environment as my project > Server = HP Prolant G5 (CPU Intel) > OS = Solaris 10 (i386) > Compiler = GCC version 4.4.2 I have never seen this problem before. It is only a warning, does the resulting liblog4cplus work for you? Is the 'ld' your GCC is using the GNU ld? What version of log4cplus are you compiling? (...after some searching...) Please try to add -gstabs+ to the CXXFLAGS, e.g., ./configure CXXFLAGS=-gstabs+ etc. -- VZ |