Hello The build proceeded from socketservertestcase.cpp but then got stuck at:
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_ STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I../../../src /performance/include -DLOG4CXX -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEF ILE64_SOURCE -I/users/a24141/apr-1.2.9/include -I/users/a24141/apr-util-1.2.8 /include -g -O2 -c -o nullappender.o `test -f 'nullappender.cpp' || echo './'` nullappender.cpp /bin/sh ../../../libtool --mode=link g++ -g -O2 -L/users/a24141/apr-1.2.9 -lap r-1 -luuid -lrt -lcrypt -lpthread -ldl -L/users/a24141/apr-util-1.2.8 -lapruti l-1 -lexpat -o logging main.o nullappender.o ../../../src/main/cpp/liblog4cxx.l a mkdir .libs g++ -g -O2 -o .libs/logging main.o nullappender.o -L/users/a24141/apr-1.2.9 -L/ users/a24141/apr-util-1.2.8 ../../../src/main/cpp/.libs/liblog4cxx.so /users/a24 141/apr-util-1.2.8/.libs/libaprutil-1.so /usr/lib/libexpat.so /users/a24141/apr- 1.2.9/.libs/libapr-1.so -luuid -lrt -lcrypt -lpthread -ldl -Wl,--rpath -Wl,/usr/ local/lib -Wl,--rpath -Wl,/usr/local/apr/lib creating logging make[4]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/performance/cpp' make[3]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/performance/cpp' make[3]: Entering directory `/users/a24141/log4cxx-0.10.0/src/performance' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/performance' make[2]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/performance' Making all in site make[2]: Entering directory `/users/a24141/log4cxx-0.10.0/src/site' Making all in doxy make[3]: Entering directory `/users/a24141/log4cxx-0.10.0/src/site/doxy' "/usr/bin/doxygen" Error: tag INPUT: input source `/src/main/include' does not exist make[3]: *** [manual/index.html] Error 1 make[3]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/site/doxy' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/site' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/users/a24141/log4cxx-0.10.0/src' make: *** [all-recursive] Error 1 Can you please tell me how should I proceed further and what could have gone wrong. Thanks a lot! Manik Gupta. manik gupta wrote: > > Hello > Well the gcc version is 3.2.3. > Anyways I am able to build by adding the include file. > Thanks a lot.. > Regards > Manik Gupta > > > > afester wrote: >> >> Hi, >> >> which compiler version are you using (g++ -v)? I remember >> that I had the same issue some time ago, but for whatever reason >> decided not to track it further down ... >> >> Anyway, can you try to add the following include to >> socketservertestcase.cpp: >> >> #include <unistd.h> >> >> (e.g. on line 54) and report whether it fixes this issue? >> >> Thanks, >> >> Andreas >> >> >> manik gupta wrote: >>> Hello >>> I am trying to build log4cxx on Linux 2.4.21-32.ELsmp and have installed >>> apr-util-1.2.8 and apr-1.2.9. >>> When I give make, I get the following error: >>> >>> make[2]: Entering directory `/users/a24141/log4cxx-0.10.0/src/test' >>> Making all in cpp >>> make[3]: Entering directory `/users/a24141/log4cxx-0.10.0/src/test/cpp' >>> source='net/socketservertestcase.cpp' object='socketservertestcase.o' >>> libtool=no >>> \ >>> depfile='.deps/socketservertestcase.Po' >>> tmpdepfile='.deps/socketservertestcase.T >>> Po' \ >>> depmode=gcc3 /bin/sh ../../../depcomp \ >>> g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" >>> -DPACKAGE_ >>> STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" >>> -DVERSION=\"0.10.0\" >>> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 >>> -DHAVE_STDLIB_H=1 >>> -DHA >>> VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>> -DHAVE_ST >>> DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1 >>> -DHAVE_ALLOCA_H=1 >>> -I. -I. -I../../../src/main/include -I../../../src/main/include >>> -I/usr/local/in >>> clude -DLOG4CXX -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE >>> -D_LARGEFILE64_SOURCE >>> -I >>> /users/a24141/apr-1.2.9/include -I/users/a24141/apr-util-1.2.8/include >>> -g -O >>> 2 -c -o socketservertestcase.o `test -f 'net/socketservertestcase.cpp' >>> || >>> echo ' >>> ./'`net/socketservertestcase.cpp >>> net/socketservertestcase.cpp: In constructor >>> `ShortSocketServerLauncher::ShortSocketServerLauncher()': >>> net/socketservertestcase.cpp:116: `::fork' undeclared (first use here) >>> net/socketservertestcase.cpp:118: `::execl' undeclared (first use here) >>> net/socketservertestcase.cpp:125: `sleep' undeclared (first use this >>> function) >>> net/socketservertestcase.cpp:125: (Each undeclared identifier is >>> reported >>> only >>> once for each function it appears in.) >>> make[3]: *** [socketservertestcase.o] Error 1 >>> make[3]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/test/cpp' >>> make[2]: *** [all-recursive] Error 1 >>> make[2]: Leaving directory `/users/a24141/log4cxx-0.10.0/src/test' >>> make[1]: *** [all-recursive] Error 1 >>> make[1]: Leaving directory `/users/a24141/log4cxx-0.10.0/src' >>> make: *** [all-recursive] Error 1 >>> >>> >>> Can anyone please let me know why I am getting the above stated error. >>> Regards >>> Manik Gupta. >> >> >> > > -- View this message in context: http://www.nabble.com/Building-log4cxx-on-linux2.4-tf4259612.html#a12176316 Sent from the Log4cxx - Users mailing list archive at Nabble.com.