Bug 65325 - ./configure with local --with-apr and --with-apr-iconv paths results in "No such file or directory"
Summary: ./configure with local --with-apr and --with-apr-iconv paths results in "No s...
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: 1.6.1
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-22 22:56 UTC by Alexei S
Modified: 2021-05-22 22:57 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei S 2021-05-22 22:56:58 UTC
If you try to install apr, apr-iconv and apr-util all to a local, HOME-related directory, the ./configure for apr-util will fail.

This is what I get when running configure for apr-util:

```
./configure --prefix=/home/myuser/svn_install --with-apr=/home/myuser/svn_install --with-apr-iconv=/home/myuser/svn_install
```

(After previously doing the same for apr and apr-iconv with the same prefix, which didn't have issues.)

However, the above command fails with the following output:

```
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.7.0
checking for chosen layout... apr-util
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Applying apr-util hints file rules for x86_64-pc-linux-gnu
checking for APR... yes
  setting CPP to "gcc -E"
  adding "-pthread" to CFLAGS
  setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
configuring package in /home/myuser/svn_install now
./configure: line 4274: cd: .//home/myuser/svn_install: No such file or directory
/bin/sh: /configure: No such file or directory
configure failed for /home/myuser/svn_install
```

For some reason, it's prefixing './' to the absolute path provided.
Comment 1 Alexei S 2021-05-22 22:57:57 UTC
I tried the above with 1.6.1 release version and 1.7.x from svn.