logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owens, Brad" <brad.ow...@wachovia.com>
Subject RE: can anyone build log4cxx HEAD in cygwin?
Date Thu, 01 Dec 2005 22:11:25 GMT
I am getting further!  I can now make it to the linking stage where the
build fails.

I had to make two more tweaks to my build.xml file:

Line 9: changed <libset libs="xml2 pthread" if="is-unix"/>
To <libset libs="xml2 pthread" dir="c:/cygwin/usr/local/lib" if="is-unix"/>

Line 658: changed <includepath path="/usr/include/libxml2" if="is-unix"/>
To <includepath path="c:/cygwin/usr/local/include/libxml2" if="is-unix"/>

Now the compiler can find the proper include paths and library for the
libxml2 code, but I am getting failures in other areas during linking.
Thanks for helping me--I am getting closer!

The output is below:

$ ant -Dos.family=cygwin -Dhas.wchar_t=0 build
Buildfile: build.xml

os-detect:

win-init:

mac-init:

unix-init:

init:

build-apr:

get-apr-src:

untar-apr-src:

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:

win-configure:

configure:

build:
       [cc] Starting dependency analysis for 67 files.
       [cc] 67 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.

build-aprutil:

get-aprutil-src:

untar-aprutil-src:

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:

win-configure:

configure:

build:
       [cc] Starting dependency analysis for 46 files.
       [cc] 46 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.

config-check:

unix-configure:

win-configure:

configure:
     [echo] Configuring with has.wchar_t=0
     [echo] Configuring with logchar_type=utf-8

build:
       [cc] Starting dependency analysis for 143 files.
       [cc] 143 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN7log4cxx3xml15DOMConfigurator17
configureAndWatchERKSs':
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\domconfigurator.cpp:765:
undefin
ed reference to `log4cxx::helpers::FileWatchdog::DEFAULT_DELAY'
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN7log4cxx3xml15DOMConfigurator17
configureAndWatchERKSsl':
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\domconfigurator.cpp:781:
undefin
ed reference to `log4cxx::helpers::FileWatchdog::start()'
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN9__gnu_cxx13new_allocatorISt13_
Rb_tree_nodeISt4pairIKSsSsEEE10deallocateEPS5_j':
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:(.text$_ZN11XM
LW
atchdogC1ERKSs[XMLWatchdog::XMLWatchdog(std::basic_string<char,
std::char_traits<char>, st
d::allocator<char> > const&)]+0x63): undefined reference to
`log4cxx::helpers::FileWatchdo
g::FileWatchdog(log4cxx::File const&)'
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:(.text$_ZN11XM
LW
atchdogD1Ev[XMLWatchdog::~XMLWatchdog()]+0x16): undefined reference to
`log4cxx::helpers::
FileWatchdog::~FileWatchdog()'
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:(.text$_ZN11XM
LW
atchdogD0Ev[XMLWatchdog::~XMLWatchdog()]+0x16): undefined reference to
`log4cxx::helpers::
FileWatchdog::~FileWatchdog()'
       [cc] log4cxx_obj\class.o: In function
`_ZN7log4cxx7helpers5Class15registerClassesEv
':
       [cc] C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\class.cpp:134:
undefined referen
ce to `log4cxx::AsyncAppender::registerClass()'
       [cc] C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\class.cpp:149:
undefined referen
ce to `log4cxx::net::SocketAppender::registerClass()'
       [cc] C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\class.cpp:150:
undefined referen
ce to `log4cxx::net::SocketHubAppender::registerClass()'
       [cc] C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\class.cpp:152:
undefined referen
ce to `log4cxx::net::TelnetAppender::registerClass()'
       [cc] C:\testlab\log4cxx-20051201\log4cxx-0.9.8\src\class.cpp:153:
undefined referen
ce to `log4cxx::net::XMLSocketAppender::registerClass()'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\build\debug\static/libaprutil-1.a(
xl
ate.o): In function `apr_xlate_cleanup':
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:9
3:
 undefined reference to `_libiconv_close'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\build\debug\static/libaprutil-1.a(
xl
ate.o): In function `check_sbcs':
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:1
20
: undefined reference to `_libiconv'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:1
32
: undefined reference to `_libiconv_close'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:1
40
: undefined reference to `_libiconv_close'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:1
41
: undefined reference to `_libiconv_open'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\build\debug\static/libaprutil-1.a(
xl
ate.o): In function `apr_xlate_open':
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:2
51
: undefined reference to `_libiconv_open'
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\build\debug\static/libaprutil-1.a(
xl
ate.o): In function `apr_xlate_conv_buffer':
       [cc]
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\lib\apr-util-1.2.2\xlate\xlate.c:3
43
: undefined reference to `_libiconv'
       [cc] collect2: ld returned 1 exit status

BUILD FAILED
C:\testlab\log4cxx-20051201\log4cxx-0.9.8\build.xml:663: gcc failed with
return code 1

Total time: 8 seconds



-----Original Message-----
From: Andreas Fester [mailto:afester@apache.org] 
Sent: Thursday, December 01, 2005 3:53 PM
To: Owens, Brad
Cc: Log4CXX User; Log4CXX Dev
Subject: Re: can anyone build log4cxx HEAD in cygwin?

Owens, Brad wrote:
> I just got further along using the "-Dhas.wchar_t=0" option, but build is
> now failing over the xml code:
>        [cc]
>
C:/testlab/log4cxx-20051201/log4cxx-0.9.8/include/log4cxx/helpers/gnomexml.h
> :2
> 7:25: libxml/tree.h: No such file or directory

This is usually caused by a missing libxml2. Are you sure that you have
libxml2 installed in your cygwin environment?

Regards,

	Andreas

Mime
View raw message