Mailing List Archive

Unable to build Apache httpd
I'm trying to build Apache httpd RPM from the source tarball as mentioned in https://httpd.apache.org/docs/2.4/install.html

However, it always fails with the error "libtool: error: require no space between '-L' and '-R'"

Complete Error :
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o htpasswd htpasswd.lo passwd_common.lo -L -R -laprutil-1 -ldb-5.3 -lexpat
/usr/lib64/libapr-1.la -lpthread -lcrypt
libtool: error: require no space between '-L' and '-R'
make[2]: *** [Makefile:48: htpasswd] Error 1
make[2]: Leaving directory '/httpd-2.4.58/support'
make[1]: *** [/httpd-2.4.58/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/httpd-2.4.58/support'
make: *** [/httpd-2.4.58/build/rules.mk:75: all-recursive] Error 1

Tried Building older version and get the same error and did not find anything when searching for similar errors.

Any help on what this could be?

Thanks
Re: Unable to build Apache httpd [ In reply to ]
Perhaps the libtool version is older/different - what happens when you
remove the space?

On Fri, Oct 20, 2023 at 12:19?PM Daga, Navin (Navin) <ndaga@avaya.com>
wrote:

> I'm trying to build Apache httpd RPM from the source tarball as mentioned
> in https://httpd.apache.org/docs/2.4/install.html
>
>
>
> However, it always fails with the error "libtool: error: require no
> space between '-L' and '-R'"
>
>
>
> Complete Error :
>
> /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o
> htpasswd htpasswd.lo passwd_common.lo -L -R -laprutil-1 -ldb-5.3
> -lexpat
>
> /usr/lib64/libapr-1.la -lpthread -lcrypt
>
> libtool: error: require no space between '-L' and '-R'
>
> make[2]: *** [Makefile:48: htpasswd] Error 1
>
> make[2]: Leaving directory '/httpd-2.4.58/support'
>
> make[1]: *** [/httpd-2.4.58/build/rules.mk:75: all-recursive] Error 1
>
> make[1]: Leaving directory '/httpd-2.4.58/support'
>
> make: *** [/httpd-2.4.58/build/rules.mk:75: all-recursive] Error 1
>
>
>
> Tried Building older version and get the same error and did not find
> anything when searching for similar errors.
>
>
>
> Any help on what this could be?
>
>
>
> Thanks
>
Re: Unable to build Apache httpd [ In reply to ]
On Tue, Oct 24, 2023 at 5:32?AM Frank Gingras <thumbs@apache.org> wrote:
>
> Perhaps the libtool version is older/different - what happens when you remove the space?
>
> On Fri, Oct 20, 2023 at 12:19?PM Daga, Navin (Navin) <ndaga@avaya.com> wrote:
>>
>> I'm trying to build Apache httpd RPM from the source tarball as mentioned in https://httpd.apache.org/docs/2.4/install.html
>>
>> However, it always fails with the error "libtool: error: require no space between '-L' and '-R'"
>>
>> Complete Error :
>>
>> /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o htpasswd htpasswd.lo passwd_common.lo -L -R -laprutil-1 -ldb-5.3 -lexpat
>>
>> /usr/lib64/libapr-1.la -lpthread -lcrypt
>>
>> libtool: error: require no space between '-L' and '-R'

The problem here is not the space, but the fact that -L requires a
directory as an argument - like -L/usr/local/lib - and consumes the
following argument (in this case -R) instead. You'll need to figure
out why no path is included here. -R should also have a path argument,
but I would have expected -Wl,-rpath to be used instead on Linux. All
this points to the ./configure script and its friends getting very
confused. I'd recommend re-trying the build in a clean Fedora Docker
container with only the required packages (gcc, make, ...) installed
from the distribution's default repositories. Once you have a working
build, it should be easier to determine where your current problems
actually start.

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org