Skip to content

Unable to compile with tkrzw #341

@ech3

Description

@ech3

Branch: v1.5.0-rc2
Hash: bf15c15
Server: Ubuntu 20.04.6 LTS

Description:
On my system, I tried to compile with tkzrw, but was unable to. This was originally reported in #339, but there was a request to have this a separate ticket. That ticket saw this issue on RHEL8, this issue is reported on Ubuntu 20.04.6 running in a VirtualBox.

Reproduction instructions:

  1. Run the following commands:
wget https://dbmx.net/tokyocabinet/tokyocabinet-1.4.48.tar.gz
tar xvf tokyocabinet-1.4.48.tar.gz
cd tokyocabinet-1.4.48
./configure
make -j2
cd ..
git clone https://github.com/estraier/tkrzw.git
cd tkrzw
./configure
make -j2
cd ..
git clone https://github.com/zevv/duc.git
cd duc
git checkout v1.5.0-rc2
# There's no configure in the tar.gz, so I have to build it:
aclocal
autoreconf -i
  1. A default configuration results in:
$ export PKG_CONFIG_PATH="../tkrzw:../tokyocabinet-1.4.48:/usr/lib/pkgconfig"
$ ./configure
[SNIP]
Selected backend tkrzw
checking for tkrzw_get_last_status in -ltkrzw... no
configure: error: Unable to find tkrzw
  1. If I try to use tokyocabinet:
./configure --with-db-backend=tokyocabinet

Everything goes well. The PKG_CONFIG_PATH is needed in step 2 otherwise it won't compile.

  1. The TKRZW doesn't seem to have the appropriate variables that Tokyo Cabinet does:
$ ./configure --help | grep TK
$ ./configure --help | grep TC
  TC_CFLAGS   C compiler flags for TC, overriding pkg-config
  TC_LIBS     linker flags for TC, overriding pkg-config
eh926929@eh926929-VirtualBox:~/duc$ cat /etc/issue
Ubuntu 20.04.6 LTS \n \l

Originally I thought this might be something with my toolchain, but this is happening on an install of Ubuntu in a virtual machine, so I don't think it is my environment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions