You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Ervin Bajramovic <eb...@aquasant-mt.com> on 2013/06/17 16:36:37 UTC

faild to compile apr-util for log4cxx on Windows with Mingw

Hi all

 

Im trying to build log4cxx on Windows XP and Windows 7 with Mingw. I
could build apr 1.4.6  successfully but apr-util 1.5.2 faills on Windows
XP an Windows 7 with the same error message:

 

 

$ make

Making all in xml/expat

make[1]: Entering directory `/src/apr-util/xml/expat'

/bin/sh ./libtool --silent --mode=compile gcc -g -O2
-DHAVE_EXPAT_CONFIG_H   -I.

/lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c

/bin/sh ./libtool --silent --mode=compile gcc -g -O2
-DHAVE_EXPAT_CONFIG_H   -I.

/lib -I. -o lib/xmltok.lo -c lib/xmltok.c

/bin/sh ./libtool --silent --mode=compile gcc -g -O2
-DHAVE_EXPAT_CONFIG_H   -I.

/lib -I. -o lib/xmlrole.lo -c lib/xmlrole.c

/bin/sh ./libtool --silent --mode=link gcc -g -O2 -DHAVE_EXPAT_CONFIG_H
-I./li

b -I. -no-undefined -version-info 5:0:5 -rpath /usr/local/apr/lib  -o
libexpat.l

a lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo

make[1]: Leaving directory `/src/apr-util/xml/expat'

make[1]: Entering directory `/src/apr-util'

/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g
-O2   -DHA

VE_CONFIG_H -DWIN32 -D__MSVCRT__ -D_LARGEFILE64_SOURCE
-I/src/apr-util/include

-I/src/apr-util/include/private  -I/usr/local/apr/include/apr-1
-I/src/apr-uti

l/xml/expat/lib  -o buckets/apr_brigade.lo -c buckets/apr_brigade.c &&
touch buc

kets/apr_brigade.lo

/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g
-O2   -DHA

VE_CONFIG_H -DWIN32 -D__MSVCRT__ -D_LARGEFILE64_SOURCE
-I/src/apr-util/include

-I/src/apr-util/include/private  -I/usr/local/apr/include/apr-1
-I/src/apr-uti

l/xml/expat/lib  -o buckets/apr_buckets.lo -c buckets/apr_buckets.c &&
touch buc

kets/apr_buckets.lo

/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g
-O2   -DHA

VE_CONFIG_H -DWIN32 -D__MSVCRT__ -D_LARGEFILE64_SOURCE
-I/src/apr-util/include

-I/src/apr-util/include/private  -I/usr/local/apr/include/apr-1
-I/src/apr-uti

l/xml/expat/lib  -o buckets/apr_buckets_alloc.lo -c
buckets/apr_buckets_alloc.c

&& touch buckets/apr_buckets_alloc.lo

/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g
-O2   -DHA

VE_CONFIG_H -DWIN32 -D__MSVCRT__ -D_LARGEFILE64_SOURCE
-I/src/apr-util/include

-I/src/apr-util/include/private  -I/usr/local/apr/include/apr-1
-I/src/apr-uti

l/xml/expat/lib  -o buckets/apr_buckets_eos.lo -c
buckets/apr_buckets_eos.c && t

ouch buckets/apr_buckets_eos.lo

buckets/apr_buckets_eos.c:47:42: error: variable 'apr_bucket_type_eos'
definitio

n is marked dllimport

buckets/apr_buckets_eos.c:47:42: warning: 'apr_bucket_type_eos'
redeclared witho

ut dllimport attribute after being referenced with dll linkage [enabled
by defau

lt]

make[1]: *** [buckets/apr_buckets_eos.lo] Error 1

make[1]: Leaving directory `/src/apr-util'

make: *** [all-recursive] Error 1

 

 

Got anyone the same error, or has somone a newer build instructions as
on the log4cxx Wiki?

 

 

Kind regards

 

Ervin


Re: faild to compile apr-util for log4cxx on Windows with Mingw

Posted by "Wesley J. Miller" <WM...@sdr.com>.
Ervin,

Don't remember for sure where I got it, but there is a precompiled log4cxx for XP (no idea about Win7) somewhere on the web.  I still have the zip if you have some place I can send it (ftp?  Its 14 meg so some mail systems may not like it.)

Wes

________________________________
CONFIDENTIALITY NOTE:

This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.