BIND 10 #1640: incomplete pc file for botan and wrong filename for botan-config
BIND 10 Development
do-not-reply at isc.org
Tue Mar 13 18:15:11 UTC 2012
#1640: incomplete pc file for botan and wrong filename for botan-config
-------------------------------------+-------------------------------------
Reporter: jreed | Owner: jelte
Type: | Status: reviewing
defect | Milestone:
Priority: low | Sprint-20120320
Component: build | Resolution:
system | Sensitive: 0
Keywords: | Sub-Project: Core
Defect Severity: N/A | Estimated Difficulty: 4
Feature Depending on Ticket: | Total Hours: 0
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by jaspain):
Thanks for providing the patch. Meanwhile I believe I have figured out
how to use git. I tested four scenarios after checking out branch
trac1640_2
(git checkout origin/trac1640_2 -b trac1640_2):
1. With Botan 1.10.1 installed and pkg-config installed
2. With Botan 1.10.1 installed and pkg-config not installed
3. With Botan 1.8.13 installed and pkg-config installed
4. With Botan 1.8.13 installed and pkg-config not installed
The results, given in detail below, are summarized as follows. Bind10
configure succeeds in scenarios 1 and 3 with either version of botan
and pkg-config installed. Scenario 2 with botan 1.10.1 and without
pkg-config fails, perhaps because the botan header files are buried
in the `botan` subdirectory of `/usr/include/botan-1.10`. Scenario 4 fails
not due to botan, but because pkg-config is required later on for boost
but is not present.
It may be that you don't want to have any dependency on pkg-config, in
which case the boost configuration logic needs to be enhanced. On the
other hand, if you are going to require pkg-config anyway, why not
require it for the botan configuration logic and not worry about the
complexities that occur without it? Jeff.
----------
1. With Botan 1.10.1 installed and pkg-config installed:
{{{#!sh
root at oneiric:~/bind10_install/bind10-devel-git# ./configure --prefix=/usr
--sysconfdir=/etc --localstatedir=/var
...
checking OS family... Linux
checking for sa_len in struct sockaddr... no
checking for usability of botan-config-1.10 ... not usable
checking for usability of botan-config-1.9 ... not found
checking for usability of botan-config-1.8 ... not found
checking for usability of botan-config ... not found
checking for pkg-config... /usr/bin/pkg-config
checking for usability of pkg-config botan-1.10 --silence-errors... ok
checking botan/botan.h usability... yes
checking botan/botan.h presence... yes
checking for botan/botan.h... yes
checking for Botan library... yes
checking log4cplus/logger.h usability... yes
...
BIND 10 source configure results:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
...
Botan: -I/usr/include/botan-1.10
-lbotan-1.10 -lbotan-1.10
...
root at oneiric:~# ls /usr/include/botan-1.10/
botan
root at oneiric:~# ls /usr/include/botan-1.10/botan
adler32.h cascade.h dlies.h get_pbe.h lookup.h
pbkdf2.h rw.h tls_magic.h
...
root at oneiric:~# ls /usr/lib/*botan*
/usr/lib/libbotan-1.10.a /usr/lib/libbotan-1.10.so
/usr/lib/libbotan-1.10.so.0 /usr/lib/libbotan-1.10.so.0.1
root at oneiric:~# ls /usr/lib/pkgconfig/
botan-1.10.pc dbus-python.pc python-3.2m.pc python-3.2.pc python3.pc
sqlite3.pc
}}}
----------
2. With Botan 1.10.1 installed and pkg-config not installed:
{{{#!sh
root at oneiric:~/bind10_install/bind10-devel-git# ./configure --prefix=/usr
--sysconfdir=/etc --localstatedir=/var
...
checking OS family... Linux
checking for sa_len in struct sockaddr... no
checking for usability of botan-config-1.10 ... not usable
checking for usability of botan-config-1.9 ... not found
checking for usability of botan-config-1.8 ... not found
checking for usability of botan-config ... not found
checking for pkg-config... no
checking botan/botan.h usability... no
checking botan/botan.h presence... no
checking for botan/botan.h... no
configure: error: Missing required header files.
root at oneiric:~# ls /usr/include/botan-1.10/
botan
root at oneiric:~# ls /usr/include/botan-1.10/botan
adler32.h cascade.h dlies.h get_pbe.h lookup.h
pbkdf2.h rw.h tls_magic.h
...
root at oneiric:~# ls /usr/lib/*botan*
/usr/lib/libbotan-1.10.a /usr/lib/libbotan-1.10.so
/usr/lib/libbotan-1.10.so.0 /usr/lib/libbotan-1.10.so.0.1
root at oneiric:~# ls /usr/lib/pkgconfig/
botan-1.10.pc dbus-python.pc python-3.2m.pc python-3.2.pc python3.pc
sqlite3.pc
}}}
----------
3. With Botan 1.8.13 installed and pkg-config installed:
{{{#!sh
root at oneiric:~/bind10_install/bind10-devel-git# ./configure --prefix=/usr
--sysconfdir=/etc --localstatedir=/var
...
checking OS family... Linux
checking for sa_len in struct sockaddr... no
checking for usability of botan-config-1.10 ... not found
checking for usability of botan-config-1.9 ... not found
checking for usability of botan-config-1.8 ... not found
checking for usability of botan-config ... ok
checking botan/botan.h usability... yes
checking botan/botan.h presence... yes
checking for botan/botan.h... yes
checking for Botan library... yes
checking log4cplus/logger.h usability... yes
...
BIND 10 source configure results:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
...
Botan: -I/usr/include
-L/usr/lib
...
root at oneiric:~# ls /usr/include/botan/
adler32.h cbc.h der_enc.h elg_op.h gost_28147.h
md5.h pbes1.h rotate.h timer.h
...
root at oneiric:~# ls /usr/lib/*botan*
/usr/lib/libbotan-1.8.13.so /usr/lib/libbotan.a /usr/lib/libbotan.so
root at oneiric:~# ls /usr/lib/pkgconfig/
botan-1.8.pc dbus-python.pc python-3.2m.pc python-3.2.pc python3.pc
sqlite3.pc
}}}
----------
4. With Botan 1.8.13 installed and pkg-config not installed:
{{{#!sh
root at oneiric:~/bind10_install/bind10-devel-git# ./configure --prefix=/usr
--sysconfdir=/etc --localstatedir=/var
...
checking OS family... Linux
checking for sa_len in struct sockaddr... no
checking for usability of botan-config-1.10 ... not found
checking for usability of botan-config-1.9 ... not found
checking for usability of botan-config-1.8 ... not found
checking for usability of botan-config ... ok
checking botan/botan.h usability... yes
checking botan/botan.h presence... yes
checking for botan/botan.h... yes
checking for Botan library... yes
checking log4cplus/logger.h usability... yes
...
checking boost/function.hpp presence... yes
checking for boost/function.hpp... yes
checking for pthread_create in -lpthread... yes
checking for pkg-config... no
configure: error: Please install pkg-config
root at oneiric:~# ls /usr/include/botan/
adler32.h cbc.h der_enc.h elg_op.h gost_28147.h
md5.h pbes1.h rotate.h timer.h
...
root at oneiric:~# ls /usr/lib/*botan*
/usr/lib/libbotan-1.8.13.so /usr/lib/libbotan.a /usr/lib/libbotan.so
root at oneiric:~# ls /usr/lib/pkgconfig/
botan-1.8.pc dbus-python.pc python-3.2m.pc python-3.2.pc python3.pc
sqlite3.pc
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/1640#comment:30>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list