Hallo! Ich hab BDB 4.2.52, OpenSSL und Cyrus SASL jeweils mit --prefix=/mail kompiliert. Wenn ich jetzt OpenLDAP mit ./configure --prefix=/mail --includedir=/mail/include --with-cyrus-sasl [...] kompilieren will, endet das mit checking sasl/sasl.h usability... yes checking sasl/sasl.h presence... yes checking for sasl/sasl.h... yes checking sasl.h usability... yes checking sasl.h presence... yes checking for sasl.h... yes checking for sasl_client_init in -lsasl2... no checking for sasl_client_init in -lsasl... no configure: error: Could not locate Cyrus SASL sasl.h liegt unter /mail/include/sasl/ Braucht es da noch weitere Configure-Optionen oder Umgebungsvariablen für den Compiler? Hans
Hallo, Am Thu, 09 Mar 2006, Hans Moser schrieb:
Ich hab BDB 4.2.52, OpenSSL und Cyrus SASL jeweils mit --prefix=/mail kompiliert. Wenn ich jetzt OpenLDAP mit ./configure --prefix=/mail --includedir=/mail/include --with-cyrus-sasl [...] kompilieren will, endet das mit
checking sasl/sasl.h usability... yes checking sasl/sasl.h presence... yes checking for sasl/sasl.h... yes checking sasl.h usability... yes checking sasl.h presence... yes checking for sasl.h... yes checking for sasl_client_init in -lsasl2... no checking for sasl_client_init in -lsasl... no configure: error: Could not locate Cyrus SASL
sasl.h liegt unter /mail/include/sasl/ Braucht es da noch weitere Configure-Optionen oder Umgebungsvariablen für den Compiler?
Die LIBS also hier libsasl(2).{a,so} werden nicht gefunden. Wo hast du die hininstalliert? -dnh -- KDE: Kontinental Drift Environment -- U. Schwarz
Hallo! David Haller schrieb:
Die LIBS also hier libsasl(2).{a,so} werden nicht gefunden. Wo hast du die hininstalliert? /mail/lib/libsasl2.so -> libsasl2.so.2.0.21 /mail/lib/libsasl2.so.2 -> libsasl2.so.2.0.21 /mail/lib/libsasl2.so.2.0.21
Für die Mechanismen ist alles unter /mail/lib/sasl2 Hans
Hallo, Am Fri, 10 Mar 2006, Hans Moser schrieb:
David Haller schrieb:
Die LIBS also hier libsasl(2).{a,so} werden nicht gefunden. Wo hast du die hininstalliert? /mail/lib/libsasl2.so -> libsasl2.so.2.0.21 /mail/lib/libsasl2.so.2 -> libsasl2.so.2.0.21 /mail/lib/libsasl2.so.2.0.21
Für die Mechanismen ist alles unter /mail/lib/sasl2
Ich schaetze, du musst ./configure ... --with-cyrus-sasl=/mail aufrufen. Ansonsten schau ins config.log welche -L Flags beim Test auf libsasl(2) mitgegeben werden. -dnh -- Erst muss mein Arzt sein ok geben. Aber er ist zuversichtlich und die Leute hier sind echt ok, der Raum hat ganz toll weiche Waende und von den bunten Tabletten sieht man ganz tollte Farben und fuehlt sich ganz ruhig. -- Jens Link
Die LIBS also hier libsasl(2).{a,so} werden nicht gefunden. Wo hast du die hininstalliert? /mail/lib/libsasl2.so -> libsasl2.so.2.0.21 /mail/lib/libsasl2.so.2 -> libsasl2.so.2.0.21 /mail/lib/libsasl2.so.2.0.21 Ich schaetze, du musst ./configure ... --with-cyrus-sasl=/mail aufrufen. Ansonsten schau ins config.log welche -L Flags beim Test auf libsasl(2) mitgegeben werden. --with-cyrus-sasl=/mail ist ein "bad argument" Wenn ich export LDFLAGS="-L/mail/lib" setze, wird vorher schon SSL nicht mehr gefunden.
Hallo! David Haller schrieb: libssl.a liegt auch in /mail/lib Im ursprünglichen Log steht: cc -o conftest -g -02 -I/mail/include/ -I/mail/include/sasl/ -I/mail/lib conftest.c -lsasl2 -lresolv >&5 und ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=-I/mail/lib Hans
Hallo, Am Mon, 13 Mar 2006, Hans Moser schrieb:
--with-cyrus-sasl=/mail ist ein "bad argument"
Dann schau mal, ob's bei den Flags nicht ein --with-sasl-libs oder so aehnlich gibt.
Wenn ich export LDFLAGS="-L/mail/lib" setze, wird vorher schon SSL nicht mehr gefunden. libssl.a liegt auch in /mail/lib
Das widerspricht sich.
Im ursprünglichen Log steht: cc -o conftest -g -02 -I/mail/include/ -I/mail/include/sasl/ -I/mail/lib conftest.c -lsasl2 -lresolv >&5 und ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=-I/mail/lib
'-I/mail/lib' ist Unfug. Und offenbar von dir gesetzt. Zeig mal: echo $CFLAGS echo $LDFLAGS deinen ./configure Aufruf und die Ausgabe von ./configure --help -dnh --
Take two Gods. Diagnostic. n. Someone who doubts the existence of two Gods. Makes sense. Every regular user of diagnostics that I know of only believes in Murphy. -- >>D. Holdsworth, >C. Suslowicz and Lionel
David Haller schrieb:
Dann schau mal, ob's bei den Flags nicht ein --with-sasl-libs oder so aehnlich gibt. Solche Hinweise habe ich leider nicht gefunden, sonst hätte ich das auch schon mal ausprobiert.
Wenn ich export LDFLAGS="-L/mail/lib" setze, wird vorher schon SSL nicht mehr gefunden. libssl.a liegt auch in /mail/lib Das widerspricht sich. Was widerspricht sich?
'-I/mail/lib' ist Unfug. Und offenbar von dir gesetzt. *"Lange Stange im Nebel"-Modus*
Zeig mal:
echo $CFLAGS echo $LDFLAGS Ich weiß nicht, ob das sinnvoll ist, weil ich diese Werte zuerst gar nicht und dann noch bestem Nichwissen gesetzt habe, aber gut, aktuell: LDFLAGS= # leer CFLAGS= # leer CPPFLAGS=-I/mail/include -I/mail/include/openssl
deinen ./configure Aufruf ./configure --prefix=/mail --with-cyrus-sasl --include-dir=/mail/include --with-tls --enable-ldap
und die Ausgabe von ./configure --help Ist beigefügt.
[Wenn es irgendwo mal Hinweise zum allgemeinen Kompilieren von OSS gibt, die irgendwo zwischen "configure, make, make install aufrufen" und einer kompletten C/C++-Einführung liegen, wäre ich für jeden Hinweis dankbar.] Auf wenn ich bisher noch nicht viel weiter bin, bedanke ich mich schon mal bei David für seine Hilfe! Hans `configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug enable debugging [yes] --enable-dynamic enable linking built binaries with dynamic libs [no] --enable-syslog enable syslog support [auto] --enable-proctitle enable proctitle support [yes] --enable-ipv6 enable IPv6 support [auto] --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto] SLAPD (Standalone LDAP Daemon) Options: --enable-slapd enable building slapd [yes] --enable-aci enable per-object ACIs (experimental) [no] --enable-cleartext enable cleartext passwords [yes] --enable-crypt enable crypt(3) passwords [no] --enable-lmpasswd enable LAN Manager passwords [no] --enable-spasswd enable (Cyrus) SASL password verification [no] --enable-modules enable dynamic module support [no] --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto] --enable-rlookups enable reverse lookups of client hostnames [no] --enable-slapi enable SLAPI support (experimental) [no] --enable-slp enable SLPv2 support [no] --enable-wrappers enable tcp wrapper support [no] SLAPD Backend Options: --enable-backends enable all available backends no|yes|mod --enable-bdb enable Berkeley DB backend no|yes|mod [yes] --enable-dnssrv enable dnssrv backend no|yes|mod [no] --enable-hdb enable Hierarchical DB backend no|yes|mod [yes] --enable-ldap enable ldap backend no|yes|mod [no] --enable-ldbm enable ldbm backend no|yes|mod [no] --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto] --enable-ldbm-type use LDBM type auto|btree|hash [auto] --enable-meta enable metadirectory backend no|yes|mod [no] --enable-monitor enable monitor backend no|yes|mod [yes] --enable-null enable null backend no|yes|mod [no] --enable-passwd enable passwd backend no|yes|mod [no] --enable-perl enable perl backend no|yes|mod [no] --enable-relay enable relay backend no|yes|mod [yes] --enable-shell enable shell backend no|yes|mod [no] --enable-sql enable sql backend no|yes|mod [no] SLAPD Overlay Options: --enable-overlays enable all available overlays no|yes|mod --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no] --enable-denyop Deny Operation overlay no|yes|mod [no] --enable-dyngroup Dynamic Group overlay no|yes|mod [no] --enable-dynlist Dynamic List overlay no|yes|mod [no] --enable-lastmod Last Modification overlay no|yes|mod [no] --enable-ppolicy Password Policy overlay no|yes|mod [no] --enable-proxycache Proxy Cache overlay no|yes|mod [no] --enable-refint Referential Integrity overlay no|yes|mod [no] --enable-retcode Return Code testing overlay no|yes|mod [no] --enable-rwm Rewrite/Remap overlay no|yes|mod [no] --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes] --enable-translucent Translucent Proxy overlay no|yes|mod [no] --enable-unique Attribute Uniqueness overlay no|yes|mod [no] --enable-valsort Value Sorting overlay no|yes|mod [no] SLURPD (Replication Daemon) Options: --enable-slurpd enable building slurpd [auto] Library Generation & Linking Options --enable-static[=PKGS] build static libraries [default=yes] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-subdir=DIR change default subdirectory used for installs --with-cyrus-sasl with Cyrus SASL support [auto] --with-fetch with fetch(3) URL support [auto] --with-threads with threads [auto] --with-tls with TLS/SSL support [auto] --with-yielding-select with implicitly yielding select [auto] --with-multiple-precision multiple precision support for statistics auto|bignum|gmp [auto] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] See INSTALL file for further details. Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations.
Hallo, Entschuldige die lange Verzoegerung. Am Mon, 13 Mar 2006, Hans Moser schrieb:
David Haller schrieb:
Wenn ich export LDFLAGS="-L/mail/lib" setze, wird vorher schon SSL nicht mehr gefunden. libssl.a liegt auch in /mail/lib Das widerspricht sich. Was widerspricht sich?
Dass die libssl dann nicht gefunden wird... Hast du libssl.so* in /mail/lib/? Und evtl. noch in /lib/ oder /usr/lib oder /usr/local/lib eine libssl.so*?
'-I/mail/lib' ist Unfug. Und offenbar von dir gesetzt. *"Lange Stange im Nebel"-Modus*
-I gibt include-Verzeichnisse an, und in lib/ sollten keine Header liegen... Und normalerweise taucht das nicht auf...
echo $CFLAGS echo $LDFLAGS Ich weiß nicht, ob das sinnvoll ist, weil ich diese Werte zuerst gar nicht und dann noch bestem Nichwissen gesetzt habe, aber gut, aktuell: LDFLAGS= # leer CFLAGS= # leer CPPFLAGS=-I/mail/include -I/mail/include/openssl
deinen ./configure Aufruf ./configure --prefix=/mail --with-cyrus-sasl --include-dir=/mail/include --with-tls --enable-ldap
Versuch's mal mit: LDFLAGS="-L/mail/lib -lssl -lsasl2" \ CFLAGS="-I/mail/include -I/mail/include/openssl" \ ./configure \ --prefix=/mail \ --include-dir=/mail/include \ --with-cyrus-sasl --with-tls --enable-ldap
[Wenn es irgendwo mal Hinweise zum allgemeinen Kompilieren von OSS gibt, die irgendwo zwischen "configure, make, make install aufrufen" und einer kompletten C/C++-Einführung liegen, wäre ich für jeden Hinweis dankbar.]
Hm. Schon auf selflinux.de geschaut? -dnh -- Malicious software is so rampant that the average time it takes for an unpatched Windows XP to be compromised after connecting it directly to the Internet is 16 minutes -- less time than it takes to download and install the patches that would help protect that PC. -- Nicholas Petreley on theregister.co.uk
David Haller schrieb:
Entschuldige die lange Verzoegerung. Danke, dass du dran bleibst!
Wenn ich export LDFLAGS="-L/mail/lib" setze, wird vorher schon SSL nicht mehr gefunden. libssl.a liegt auch in /mail/lib Das widerspricht sich. Was widerspricht sich? Dass die libssl dann nicht gefunden wird... Hast du libssl.so* in /mail/lib/? Und evtl. noch in /lib/ oder /usr/lib oder /usr/local/lib eine libssl.so*? Alles unter /usr/lib/ : /usr/lib/libssl.so.0.9.7 /usr/lib/libssl.so /usr/lib/libssl.so.0
Versuch's mal mit:
LDFLAGS="-L/mail/lib -lssl -lsasl2" \ CFLAGS="-I/mail/include -I/mail/include/openssl" \ ./configure \ --prefix=/mail \ --include-dir=/mail/include \ --with-cyrus-sasl --with-tls --enable-ldap checking for sasl/sasl.h usability...yes checking for sasl/sasl.h presence... no configure: WARNING: sasl/sasl.h: accepted by the compiler, rejected by
Das ist alles der original SuSE-SSL-Kram. Das kann doch nicht sein!? Unter /mail/lib/ liegt nur libssl.a. Unter /mail/include/openssl/ gibt es eine Handvoll *ssl*.h-Dateien. Ist SSL nicht sauber installiert worden? Bei "make test" rauschen die Testausgaben minutenlang über den Schirm. Im einzelnen habe ich die Ausgabe aber nicht durchgeflöht, sehe aber jede Menge "ok"s. the preprocessor! configure: WARNING: sasl/sasl.h: proceeding with the compiler's result checking for sasl/sasl.h... yes checking for sasl.h usability...no checking for sasl.h presence... no checking for sasl/sasl.h usability...yes checking for sasl.h... no checking for sasl_client_init in -lsasl2... yes checking Cyrus SASL library version... no configure: error Cyrus SASL library located but incompatible SASL 2.1.21 ist IMHO nicht inkompatibel zu OpenLDAP 2.3.19. DerFehler muss noch woanders liegen.
[Wenn es irgendwo mal Hinweise zum allgemeinen Kompilieren von OSS gibt, die irgendwo zwischen "configure, make, make install aufrufen" und einer kompletten C/C++-Einführung liegen, wäre ich für jeden Hinweis dankbar.] Hm. Schon auf selflinux.de geschaut? Sehe ich mir mal an.
Hans
participants (2)
-
David Haller
-
Hans Moser