nelze zkompilovat ProFTPd s OpenSSL z portu

Miroslav Lachman 000.fbsd at quip.cz
Mon Jul 4 10:20:48 CEST 2005


Mam tu "drobny" problem s kompilaci ProFTPd a ackoliv jsem zkousel 
dohledat jak to napravit, nic rozumneho me nenapadlo a poradne ani 
nevim, co hledat. Vim jen to, ze je to problem s OpenSSL a ze je to 
patrne tim, ze nepouzivam systemove OpenSSL, ale OpenSSL z ports. V 
/etc/make.conf je NO_OPENSSL= true

---------------------------------
# cd /usr/ports/ftp/proftpd-mysql
# make WITH_OPENSSL=yes WITH_QUOTA=yes

===>  Found saved configuration for proftpd-mysql-1.2.10_3
===>  Extracting for proftpd-mysql-1.2.10_3
=> Checksum OK for proftpd-1.2.10.tar.bz2.
===>  Patching for proftpd-mysql-1.2.10_3
===>  Applying FreeBSD patches for proftpd-mysql-1.2.10_3
===>   proftpd-mysql-1.2.10_3 depends on executable: gmake - found
===>   proftpd-mysql-1.2.10_3 depends on shared library: mysqlclient.14 
- found
===>  Configuring for proftpd-mysql-1.2.10_3
==> Configuring with 
mod_tls:mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_file:mod_quotatab_sql
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd4.11
checking host system type... i386-portbld-freebsd4.11
checking target system type... i386-portbld-freebsd4.11
checking for i386-portbld-freebsd4.11-gcc... cc
checking for C compiler default output... configure: error: C compiler 
cannot create executables
See `config.log' for more details.
===>  Script "configure" failed unexpectedly.
Please report the problem to thomas at goirand.fr [maintainer] and attach the
"/usr/ports/ftp/proftpd-mysql/work/proftpd-1.2.10/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/ftp/proftpd-mysql.
*** Error code 1

Stop in /usr/ports/ftp/proftpd-mysql.
---------------------------------

Pokud pri kompilaci vynecham WITH_OPENSSL=yes, tak probiha vse normalne.
config.log http://www.quip.cz/1/nyx2/freebsd/proftpd-mysql.config.log
V config.logu je problem patrne v tomhle:

---------------------------------
configure:1846: cc -O -pipe -march=pentiumpro -DHAVE_OPENSSL 
conftest.c -lssl -lcrypto >&5
/usr/libexec/elf/ld: cannot find -lssl
---------------------------------

Ale to uz bohuzel nevim, co presne mi to rika a co presne s tim delat, 
programovani v C / C++ nerozumim.

Pokud to hleda libssl, tak ty mam v:

---------------------------------
/usr/lib/compat/libssl.so.1
/usr/lib/compat/libssl.so.2
/usr/local/lib/libssl.a
/usr/local/lib/libssl.so
/usr/local/lib/libssl.so.3
/usr/local/libexec/apache/libssl.so
---------------------------------

a pokud libcrypt[o], tak ty jsou v:

---------------------------------
/usr/lib/compat/libcrypto.so.1
/usr/lib/compat/libcrypto.so.2
/usr/lib/libcrypt.a
/usr/lib/libcrypt.so
/usr/lib/libcrypt.so.2
/usr/lib/libcrypt_p.a
/usr/local/lib/libcrypto.a
/usr/local/lib/libcrypto.so
/usr/local/lib/libcrypto.so.3
---------------------------------

soucasna nainstalovana verze ProFTPd, ktera byla kompilovana se stejnymi 
options pouziva:

---------------------------------
# ldd /usr/local/libexec/proftpd
/usr/local/libexec/proftpd:
         libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280e5000)
         libssl.so.3 => /usr/local/lib/libssl.so.3 (0x280fe000)
         libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0x281ca000)
         libutil.so.3 => /usr/lib/libutil.so.3 (0x282c1000)
         libm.so.2 => /usr/lib/libm.so.2 (0x282ca000)
         libz.so.2 => /usr/lib/libz.so.2 (0x282e6000)
         libmysqlclient.so.14 => 
/usr/local/lib/mysql/libmysqlclient.so.14 (0x282f4000)
         libwrap.so.3 => /usr/lib/libwrap.so.3 (0x2840a000)
         libpam.so.1 => /usr/lib/libpam.so.1 (0x28412000)
         libc.so.4 => /usr/lib/libc.so.4 (0x2841c000)
---------------------------------

Jedna se o verzi proftpd-mysql-1.2.10_1 a ja se pokousim o update na 
verzi 1.2.10_3 (nesel ani update na 1.2.10_2) Predem diky za jakoukoliv 
radu / tip / odkaz...

A jeste informace, ze se jedna o FreeBSD 4.11 s OpenSSL (bez volby 
overwrite-base - v tom je mozna ten problem) nainstalovanym z ports a ne 
se systemovym. Ta sama verze ProFTPd se stejnymi options jde na FreeBSD 
5.4 s OpenSSL ze systemu i s OpenSSL z ports (s volbou overwrite-base) 
zkompilovat bez problemu (zkouseno na dalsich dvou strojich).

-- 
Miroslav Lachman
Webapplication Developer



More information about the Users-l mailing list