|
|
Choosing A Webhost: |
Re: Building log4cxx on linux2.4: msg#00029apache.logging.log4cxx.user
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.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Log4j.xml, Wilfong, Paul |
|---|---|
| Next by Date: | Re: Building log4cxx on linux2.4, manik gupta |
| Previous by Thread: | Building log4cxx on linux2.4, manik gupta |
| Next by Thread: | Re: Building log4cxx on linux2.4, manik gupta |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |