logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark123 <rkmr...@gmail.com>
Subject build problem
Date Wed, 08 Nov 2006 19:20:10 GMT

Hi
I am trying to build log4cxx on cygwin. It gets compiled but I get this
error when it links. Can anyone suggest what I should do?
thanks a lot
mark

ant -v  -Dos.family=cygwin -Dhas.wchar_t=0 build


build:
    [mkdir] Created dir: C:\log\logging\build\debug\shared\log4cxx_obj
Property ${pic-option} has not been set
       [cc] 144 total files to be compiled.
       [cc] gcc -c -g -DLOG4CXX -DAPR_DECLARE_STATIC -DAPU_DECLARE_STATIC
-IC:\log\logging\include -IC:\log\logging\lib\apr-1.2.7\include -IC:\l
g\logging\lib\apr-util-1.2.7\include C:\log\logging\src\socket.cpp
C:\log\logging\src\transcoder.cpp C:\log\logging\src\patternconverter.cpp
C:\
og\logging\src\optionconverter.cpp C:\log\logging\src\rootcategory.cpp
C:\log\logging\src\objectptr.cpp C:\log\logging\src\basicconfigurator.cpp
C:\log\logging\src\integerpatternconverter.cpp
C:\log\logging\src\loggingeventpatternconverter.cpp
C:\log\logging\src\filelocationpatternconvert
r.cpp C:\log\logging\src\fileinputstream.cpp
C:\log\logging\src\configurator.cpp C:\log\logging\src\sockethubappender.cpp
C:\log\logging\src\byt
buffer.cpp C:\log\logging\src\cyclicbuffer.cpp
C:\log\logging\src\triggeringpolicy.cpp
C:\log\logging\src\fulllocationpatternconverter.cpp C:\lo
\logging\src\datelayout.cpp C:\log\logging\src\formattinginfo.cpp
C:\log\logging\src\nameabbreviator.cpp C:\log\logging\src\logmanager.cpp
C:\lo
\logging\src\datepatternconverter.cpp C:\log\logging\src\ttcclayout.cpp
C:\log\logging\src\writer.cpp C:\log\logging\src\propertyconfigurator.cp
 C:\log\logging\src\charsetdecoder.cpp C:\log\logging\src\htmllayout.cpp
C:\log\logging\src\dateformat.cpp C:\log\logging\src\loggingevent.cpp C
\log\logging\src\datagramsocket.cpp C:\log\logging\src\fileappender.cpp
C:\log\logging\src\transform.cpp C:\log\logging\src\action.cpp C:\log\lo
ging\src\xmlsocketappender.cpp C:\log\logging\src\cacheddateformat.cpp
C:\log\logging\src\socketoutputstream.cpp C:\log\logging\src\strftimedate
ormat.cpp C:\log\logging\src\integer.cpp C:\log\logging\src\odbcappender.cpp
C:\log\logging\src\rollingpolicy.cpp C:\log\logging\src\simplelayou
.cpp C:\log\logging\src\namepatternconverter.cpp
C:\log\logging\src\rolloverdescription.cpp C:\log\logging\src\level.cpp
C:\log\logging\src\sock
timpl.cpp C:\log\logging\src\systemoutwriter.cpp
C:\log\logging\src\writerappender.cpp C:\log\logging\src\loader.cpp
C:\log\logging\src\filerena
eaction.cpp C:\log\logging\src\simpledateformat.cpp
C:\log\logging\src\throwableinformationpatternconverter.cpp
C:\log\logging\src\condition.cpp
C:\log\logging\src\loggerpatternconverter.cpp
C:\log\logging\src\objectimpl.cpp C:\log\logging\src\telnetappender.cpp
C:\log\logging\src\filewat
hdog.cpp C:\log\logging\src\propertyresourcebundle.cpp
C:\log\logging\src\linelocationpatternconverter.cpp
C:\log\logging\src\system.cpp C:\log\
ogging\src\systemerrwriter.cpp C:\log\logging\src\inetaddress.cpp
C:\log\logging\src\locationinfo.cpp
C:\log\logging\src\onlyonceerrorhandler.cp
 C:\log\logging\src\stringmatchfilter.cpp
C:\log\logging\src\propertysetter.cpp C:\log\logging\src\mdc.cpp
C:\log\logging\src\filedatepatterncon
erter.cpp C:\log\logging\src\nteventlogappender.cpp
C:\log\logging\src\stringhelper.cpp
C:\log\logging\src\dailyrollingfileappender.cpp C:\log\l
gging\src\bytearrayinputstream.cpp
C:\log\logging\src\obsoleterollingfileappender.cpp
C:\log\logging\src\patternlayout.cpp C:\log\logging\src\fi
e.cpp C:\log\logging\src\timebasedrollingpolicy.cpp
C:\log\logging\src\charsetencoder.cpp
C:\log\logging\src\levelpatternconverter.cpp C:\log\lo
ging\src\thread.cpp C:\log\logging\src\serversocket.cpp
C:\log\logging\src\locale.cpp C:\log\logging\src\rollingpolicybase.cpp
C:\log\logging\sr
\lineseparatorpatternconverter.cpp C:\log\logging\src\datagrampacket.cpp
C:\log\logging\src\fileoutputstream.cpp C:\log\logging\src\propertiespa
ternconverter.cpp C:\log\logging\src\exception.cpp
C:\log\logging\src\xmllayout.cpp C:\log\logging\src\syslogwriter.cpp
C:\log\logging\src\relat
vetimedateformat.cpp C:\log\logging\src\threadspecificdata.cpp
C:\log\logging\src\levelmatchfilter.cpp C:\log\logging\src\date.cpp
C:\log\loggin
\src\patternparser.cpp C:\log\logging\src\consoleappender.cpp
C:\log\logging\src\socketappenderskeleton.cpp
C:\log\logging\src\aprinitializer.cp
 C:\log\logging\src\layout.cpp C:\log\logging\src\levelrangefilter.cpp
C:\log\logging\src\messagepatternconverter.cpp C:\log\logging\src\fallbac
errorhandler.cpp C:\log\logging\src\domconfigurator.cpp
C:\log\logging\src\unicodehelper.cpp C:\log\logging\src\mutex.cpp
C:\log\logging\src\sys
ogappender.cpp C:\log\logging\src\classnamepatternconverter.cpp
C:\log\logging\src\rollingfileappender.cpp C:\log\logging\src\socketnode.cpp
C:\
og\logging\src\resourcebundle.cpp C:\log\logging\src\synchronized.cpp
C:\log\logging\src\timezone.cpp C:\log\logging\src\pool.cpp C:\log\logging
src\reader.cpp C:\log\logging\src\smtpappender.cpp
C:\log\logging\src\filterbasedtriggeringpolicy.cpp
C:\log\logging\src\fixedwindowrollingpolic
.cpp C:\log\logging\src\literalpatternconverter.cpp
C:\log\logging\src\defaultcategoryfactory.cpp
C:\log\logging\src\appenderskeleton.cpp C:\log
logging\src\relativetimepatternconverter.cpp
C:\log\logging\src\inputstreamreader.cpp
C:\log\logging\src\stringtokenizer.cpp C:\log\logging\src\
hreadpatternconverter.cpp C:\log\logging\src\properties.cpp
C:\log\logging\src\sizebasedtriggeringpolicy.cpp
C:\log\logging\src\ndcpatternconver
er.cpp C:\log\logging\src\inputstream.cpp
C:\log\logging\src\outputstream.cpp C:\log\logging\src\logger.cpp
C:\log\logging\src\hierarchy.cpp C:\
og\logging\src\ndc.cpp C:\log\logging\src\classregistration.cpp
C:\log\logging\src\loglog.cpp C:\log\logging\src\socketinputstream.cpp
C:\log\lo
ging\src\class.cpp C:\log\logging\src\asyncappender.cpp
C:\log\logging\src\methodlocationpatternconverter.cpp
C:\log\logging\src\socketappender.
pp C:\log\logging\src\outputdebugstringappender.cpp
C:\log\logging\src\appenderattachableimpl.cpp
C:\log\logging\src\manualtriggeringpolicy.cpp
:\log\logging\src\bufferedwriter.cpp
C:\log\logging\src\outputstreamwriter.cpp C:\log\logging\src\logstream.cpp
C:\log\logging\src\defaultconfig
rator.cpp
       [cc] Starting link
       [cc] gcc -g -shared -o liblog4cxx.so log4cxx_obj\socket.o
log4cxx_obj\transcoder.o log4cxx_obj\patternconverter.o
log4cxx_obj\optionconve
ter.o log4cxx_obj\rootcategory.o log4cxx_obj\objectptr.o
log4cxx_obj\basicconfigurator.o log4cxx_obj\integerpatternconverter.o
log4cxx_obj\loggi
geventpatternconverter.o log4cxx_obj\filelocationpatternconverter.o
log4cxx_obj\fileinputstream.o log4cxx_obj\configurator.o log4cxx_obj\socketh
bappender.o log4cxx_obj\bytebuffer.o log4cxx_obj\cyclicbuffer.o
log4cxx_obj\triggeringpolicy.o log4cxx_obj\fulllocationpatternconverter.o
log4cx
_obj\datelayout.o log4cxx_obj\formattinginfo.o log4cxx_obj\nameabbreviator.o
log4cxx_obj\logmanager.o log4cxx_obj\datepatternconverter.o log4cxx
obj\ttcclayout.o log4cxx_obj\writer.o log4cxx_obj\propertyconfigurator.o
log4cxx_obj\charsetdecoder.o log4cxx_obj\htmllayout.o log4cxx_obj\datef
rmat.o log4cxx_obj\loggingevent.o log4cxx_obj\datagramsocket.o
log4cxx_obj\fileappender.o log4cxx_obj\transform.o log4cxx_obj\action.o
log4cxx_o
j\xmlsocketappender.o log4cxx_obj\cacheddateformat.o
log4cxx_obj\socketoutputstream.o log4cxx_obj\strftimedateformat.o
log4cxx_obj\integer.o log
cxx_obj\odbcappender.o log4cxx_obj\rollingpolicy.o
log4cxx_obj\simplelayout.o log4cxx_obj\namepatternconverter.o
log4cxx_obj\rolloverdescription
o log4cxx_obj\level.o log4cxx_obj\socketimpl.o log4cxx_obj\systemoutwriter.o
log4cxx_obj\writerappender.o log4cxx_obj\loader.o log4cxx_obj\filer
nameaction.o log4cxx_obj\simpledateformat.o
log4cxx_obj\throwableinformationpatternconverter.o log4cxx_obj\condition.o
log4cxx_obj\loggerpattern
onverter.o log4cxx_obj\objectimpl.o log4cxx_obj\telnetappender.o
log4cxx_obj\filewatchdog.o log4cxx_obj\propertyresourcebundle.o
log4cxx_obj\lin
locationpatternconverter.o log4cxx_obj\system.o
log4cxx_obj\systemerrwriter.o log4cxx_obj\inetaddress.o
log4cxx_obj\locationinfo.o log4cxx_obj\o
lyonceerrorhandler.o log4cxx_obj\stringmatchfilter.o
log4cxx_obj\propertysetter.o log4cxx_obj\mdc.o
log4cxx_obj\filedatepatternconverter.o log4c
x_obj\nteventlogappender.o log4cxx_obj\stringhelper.o
log4cxx_obj\dailyrollingfileappender.o log4cxx_obj\bytearrayinputstream.o
log4cxx_obj\obso
eterollingfileappender.o log4cxx_obj\patternlayout.o log4cxx_obj\file.o
log4cxx_obj\timebasedrollingpolicy.o log4cxx_obj\charsetencoder.o log4cx
_obj\levelpatternconverter.o log4cxx_obj\thread.o log4cxx_obj\serversocket.o
log4cxx_obj\locale.o log4cxx_obj\rollingpolicybase.o log4cxx_obj\li
eseparatorpatternconverter.o log4cxx_obj\datagrampacket.o
log4cxx_obj\fileoutputstream.o log4cxx_obj\propertiespatternconverter.o
log4cxx_obj\ex
eption.o log4cxx_obj\xmllayout.o log4cxx_obj\syslogwriter.o
log4cxx_obj\relativetimedateformat.o log4cxx_obj\threadspecificdata.o
log4cxx_obj\le
elmatchfilter.o log4cxx_obj\date.o log4cxx_obj\patternparser.o
log4cxx_obj\consoleappender.o log4cxx_obj\socketappenderskeleton.o
log4cxx_obj\ap
initializer.o log4cxx_obj\layout.o log4cxx_obj\levelrangefilter.o
log4cxx_obj\messagepatternconverter.o log4cxx_obj\fallbackerrorhandler.o
log4c
x_obj\domconfigurator.o log4cxx_obj\unicodehelper.o log4cxx_obj\mutex.o
log4cxx_obj\syslogappender.o log4cxx_obj\classnamepatternconverter.o log
cxx_obj\rollingfileappender.o log4cxx_obj\socketnode.o
log4cxx_obj\resourcebundle.o log4cxx_obj\synchronized.o
log4cxx_obj\timezone.o log4cxx_ob
\pool.o log4cxx_obj\reader.o log4cxx_obj\smtpappender.o
log4cxx_obj\filterbasedtriggeringpolicy.o
log4cxx_obj\fixedwindowrollingpolicy.o log4cxx
obj\literalpatternconverter.o log4cxx_obj\defaultcategoryfactory.o
log4cxx_obj\appenderskeleton.o log4cxx_obj\relativetimepatternconverter.o
log
cxx_obj\inputstreamreader.o log4cxx_obj\stringtokenizer.o
log4cxx_obj\threadpatternconverter.o log4cxx_obj\properties.o
log4cxx_obj\sizebasedtri
geringpolicy.o log4cxx_obj\ndcpatternconverter.o log4cxx_obj\inputstream.o
log4cxx_obj\outputstream.o log4cxx_obj\logger.o log4cxx_obj\hierarchy
o log4cxx_obj\ndc.o log4cxx_obj\classregistration.o log4cxx_obj\loglog.o
log4cxx_obj\socketinputstream.o log4cxx_obj\class.o log4cxx_obj\asyncap
ender.o log4cxx_obj\methodlocationpatternconverter.o
log4cxx_obj\socketappender.o log4cxx_obj\outputdebugstringappender.o
log4cxx_obj\appenderat
achableimpl.o log4cxx_obj\manualtriggeringpolicy.o
log4cxx_obj\bufferedwriter.o log4cxx_obj\outputstreamwriter.o
log4cxx_obj\logstream.o log4cxx
obj\defaultconfigurator.o -LC:\log\logging\build\debug\static -laprutil-1
-LC:\log\logging\build\debug\static -lapr-1 -lpthread -lexpat -lstdc++
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN7log4cxx3xml15DOMConfigurator17configureAndWatchERKSs':
       [cc] C:\log\logging\src\domconfigurator.cpp:715: undefined reference
to `log4cxx::helpers::FileWatchdog::DEFAULT_DELAY'
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN7log4cxx3xml15DOMConfigurator17configureAndWatchERKSsl':
       [cc] C:\log\logging\src\domconfigurator.cpp:731: undefined reference
to `log4cxx::helpers::FileWatchdog::start()'
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKSsSsEEEC2ERKS6_':
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text$_ZN11XMLWatchdogC1ERKSs[XMLWatchdog::XMLWatchdog(std::basic
string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x63):
undefined reference to `log4cxx::helpers::FileWatchdog::FileWatchdog
log4cxx::File const&)'
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text$_ZN11XMLWatchdogD1Ev[XMLWatchdog::~XMLWatchdog()]+0x16):
un
efined reference to `log4cxx::helpers::FileWatchdog::~FileWatchdog()'
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text$_ZN11XMLWatchdogD0Ev[XMLWatchdog::~XMLWatchdog()]+0x16):
un
efined reference to `log4cxx::helpers::FileWatchdog::~FileWatchdog()'
       [cc] log4cxx_obj\class.o: In function
`_ZN7log4cxx7helpers5Class15registerClassesEv':
       [cc] C:\log\logging\src\class.cpp:136: undefined reference to
`log4cxx::AsyncAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:153: undefined reference to
`log4cxx::net::SocketAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:154: undefined reference to
`log4cxx::net::SocketHubAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:156: undefined reference to
`log4cxx::net::TelnetAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:157: undefined reference to
`log4cxx::net::XMLSocketAppender::registerClass()'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `apr_xlate_cleanup':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:93: undefined
reference to `_libiconv_close'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `check_sbcs':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:120: undefined
reference to `_libiconv'
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:132: undefined
reference to `_libiconv_close'
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:140: undefined
reference to `_libiconv_close'
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:141: undefined
reference to `_libiconv_open'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `apr_xlate_open':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:251: undefined
reference to `_libiconv_open'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `apr_xlate_conv_buffer':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:343: undefined
reference to `_libiconv'
       [cc] collect2: ld returned 1 exit status

BUILD FAILED
C:\log\logging\build.xml:723: gcc failed with return code 1
        at
net.sf.antcontrib.cpptasks.compiler.CommandLineLinker.link(CommandLineLinker.java:278)
        at
net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration.link(CommandLineLinkerConfiguration.java:117)
        at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:773)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 1 minute 42 seconds


-- 
View this message in context: http://www.nabble.com/build-problem-tf2597270.html#a7245039
Sent from the Log4cxx - Users mailing list archive at Nabble.com.


Mime
View raw message