Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Building log4cxx on linux2.4: msg#00029

apache.logging.log4cxx.user

Subject: Re: Building log4cxx on linux2.4

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>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation