You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Bob Rossi <bo...@cox.net> on 2006/12/13 16:05:16 UTC

building apr-util with mingw

Hi,

I'm trying to build apr-util with mingw so that I can attempt to build
log4cxx there.

Attached is the output of ./configure, which fails.

Has anyone built apr-util with mingw? I'm using svn trunk.

Thanks,
Bob Rossi

Re: building apr-util with mingw

Posted by Bob Rossi <bo...@cox.net>.
On Wed, Dec 13, 2006 at 01:03:51PM -0500, Garrett Rooney wrote:
> On 12/13/06, Paul Querna <ch...@force-elite.com> wrote:
> 
> >It uses jlibtool, Justin's replacement for libtool.
> >
> >The source code for it is here:
> >http://svn.apache.org/repos/asf/apr/apr/trunk/build/jlibtool.c
> >
> >Its faster, and doesn't suck :)
> 
> Although don't assume that it's 100% compatible with normal libtool ;-)

Is this going to go upstream into the autotools stuff eventually?

Using both normal libtool, and experimental one, I get the same results.
Both have this error during configure, but configure does continue on.

  checking dynamic linker characteristics... /home/bobbybrasko/log4cxx/apr-util/src/apr-util/xml/expat/con
  figure: -print-search-dirs: command not found
  /home/bobbybrasko/log4cxx/apr-util/src/apr-util/xml/expat/configure: -print-search-dirs: command not found

Both give this as a warning:

*** Warning: This system can not link to static lib archive /home/bobbybrasko/log4cxx/apr-util/src/apr-util/xml/expat/lib/libexpat.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This system can not link to static lib archive /home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/lib/libapr-1.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries

Is this normal?

Thanks,
Bob Rossi

Re: building apr-util with mingw

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 12/13/06, Paul Querna <ch...@force-elite.com> wrote:

> It uses jlibtool, Justin's replacement for libtool.
>
> The source code for it is here:
> http://svn.apache.org/repos/asf/apr/apr/trunk/build/jlibtool.c
>
> Its faster, and doesn't suck :)

Although don't assume that it's 100% compatible with normal libtool ;-)

-garrett

Re: building apr-util with mingw

Posted by Paul Querna <ch...@force-elite.com>.
Bob Rossi wrote:
> On Wed, Dec 13, 2006 at 09:20:43AM -0800, Paul Querna wrote:
>> Bob Rossi wrote:
>>> On Wed, Dec 13, 2006 at 10:41:24AM -0500, Bob Rossi wrote:
>>>> On Wed, Dec 13, 2006 at 10:05:16AM -0500, Bob Rossi wrote:
>>>>> Hi,
>>>>>
>>>>> I'm trying to build apr-util with mingw so that I can attempt to build
>>>>> log4cxx there.
>>>>>
>>>>> Attached is the output of ./configure, which fails.
>>>>>
>>>>> Has anyone built apr-util with mingw? I'm using svn trunk.
>>>> So, here is the line that failed to configure it:
>>>>
>>>> ./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
>>>> --with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
>>>>
>>>> However, this line allowed the configure to work.
>>>>
>>>> ./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
>>>> --with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
>>>> --bindir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/bin
>>>> --libdir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/lib
>>>>
>>>> I don't think I should have to specify the bindir and libdir since I 
>>>> specified the --prefix. Is this a bug in the autotools build system?
>>> Here is the output of make. Could someone please explaing the warnings
>>> about static libraries for expat? Is there a work around?
>>>
>> I think you need to use jlibtool.  I never got it working on mingw, 
>> without passing --enable-experimental-libtool to ./configure.
> 
> OK, what does this option do? A quick look at the libtool and autoconf
> manuals have no info on it. Do you know where I can find documentation
> on this option?

It uses jlibtool, Justin's replacement for libtool.

The source code for it is here:
http://svn.apache.org/repos/asf/apr/apr/trunk/build/jlibtool.c

Its faster, and doesn't suck :)

-Paul

Re: building apr-util with mingw

Posted by Bob Rossi <bo...@cox.net>.
On Wed, Dec 13, 2006 at 09:20:43AM -0800, Paul Querna wrote:
> Bob Rossi wrote:
> >On Wed, Dec 13, 2006 at 10:41:24AM -0500, Bob Rossi wrote:
> >>On Wed, Dec 13, 2006 at 10:05:16AM -0500, Bob Rossi wrote:
> >>>Hi,
> >>>
> >>>I'm trying to build apr-util with mingw so that I can attempt to build
> >>>log4cxx there.
> >>>
> >>>Attached is the output of ./configure, which fails.
> >>>
> >>>Has anyone built apr-util with mingw? I'm using svn trunk.
> >>So, here is the line that failed to configure it:
> >>
> >>./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
> >>--with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
> >>
> >>However, this line allowed the configure to work.
> >>
> >>./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
> >>--with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
> >>--bindir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/bin
> >>--libdir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/lib
> >>
> >>I don't think I should have to specify the bindir and libdir since I 
> >>specified the --prefix. Is this a bug in the autotools build system?
> >
> >Here is the output of make. Could someone please explaing the warnings
> >about static libraries for expat? Is there a work around?
> >
> 
> I think you need to use jlibtool.  I never got it working on mingw, 
> without passing --enable-experimental-libtool to ./configure.

OK, what does this option do? A quick look at the libtool and autoconf
manuals have no info on it. Do you know where I can find documentation
on this option?

Thanks,
Bob Rossi

Re: building apr-util with mingw

Posted by Paul Querna <ch...@force-elite.com>.
Bob Rossi wrote:
> On Wed, Dec 13, 2006 at 10:41:24AM -0500, Bob Rossi wrote:
>> On Wed, Dec 13, 2006 at 10:05:16AM -0500, Bob Rossi wrote:
>>> Hi,
>>>
>>> I'm trying to build apr-util with mingw so that I can attempt to build
>>> log4cxx there.
>>>
>>> Attached is the output of ./configure, which fails.
>>>
>>> Has anyone built apr-util with mingw? I'm using svn trunk.
>> So, here is the line that failed to configure it:
>>
>> ./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
>> --with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
>>
>> However, this line allowed the configure to work.
>>
>> ./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
>> --with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
>> --bindir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/bin
>> --libdir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/lib
>>
>> I don't think I should have to specify the bindir and libdir since I 
>> specified the --prefix. Is this a bug in the autotools build system?
> 
> Here is the output of make. Could someone please explaing the warnings
> about static libraries for expat? Is there a work around?
> 

I think you need to use jlibtool.  I never got it working on mingw, 
without passing --enable-experimental-libtool to ./configure.

-Paul

Re: building apr-util with mingw

Posted by Bob Rossi <bo...@cox.net>.
On Wed, Dec 13, 2006 at 10:41:24AM -0500, Bob Rossi wrote:
> On Wed, Dec 13, 2006 at 10:05:16AM -0500, Bob Rossi wrote:
> > Hi,
> > 
> > I'm trying to build apr-util with mingw so that I can attempt to build
> > log4cxx there.
> > 
> > Attached is the output of ./configure, which fails.
> > 
> > Has anyone built apr-util with mingw? I'm using svn trunk.
> 
> So, here is the line that failed to configure it:
> 
> ./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
> --with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
> 
> However, this line allowed the configure to work.
> 
> ./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
> --with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
> --bindir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/bin
> --libdir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/lib
> 
> I don't think I should have to specify the bindir and libdir since I 
> specified the --prefix. Is this a bug in the autotools build system?

Here is the output of make. Could someone please explaing the warnings
about static libraries for expat? Is there a work around?

Thanks,
Bob Rossi

Re: building apr-util with mingw

Posted by Bob Rossi <bo...@cox.net>.
On Wed, Dec 13, 2006 at 10:05:16AM -0500, Bob Rossi wrote:
> Hi,
> 
> I'm trying to build apr-util with mingw so that I can attempt to build
> log4cxx there.
> 
> Attached is the output of ./configure, which fails.
> 
> Has anyone built apr-util with mingw? I'm using svn trunk.

So, here is the line that failed to configure it:

./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
--with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config

However, this line allowed the configure to work.

./configure --prefix=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir
--with-apr=/home/bobbybrasko/vigilant/apr/apr-1.3.0-cvs/bin/apr-1-config
--bindir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/bin
--libdir=/home/bobbybrasko/log4cxx/apr-util/src/prefixdir/lib

I don't think I should have to specify the bindir and libdir since I 
specified the --prefix. Is this a bug in the autotools build system?

Thanks,
Bob Rossi