INN and db 4,6
The Doctor
doctor at doctor.nl2k.ab.ca
Fri Sep 21 21:41:54 UTC 2007
On Fri, Sep 21, 2007 at 06:47:35PM +0200, Julien ÉLIE wrote:
> Hi,
>
> >> Well, it works if I add "-lpthread" to gcc's command line.
> >> But why isn't it set automatically?
> >
> > For pthread to work, I need to use -pthread .
>
> But what I do not understand is why configure does not give
> me the right flags. I only have:
>
> DB_LIBS = -ldb -lz
>
> and not:
>
> DB_LIBS = -ldb -lz -lpthread
>
> while I correctly get:
>
> PERL_LIBS = [...] -lperl -ldl -lm -lpthread -lcrypt
>
>
> The same problem affects DBM_LIBS too.
> I tried to run configure for Berkeley DB with "--enable-pthread_api"
> and also without but there is no change when I run configure for INN.
>
> All the same, it breaks the build without "-lpthread" (on my Debian Etch).
>
> How do you do? Do you manually edit Makefile.global to add -lpthread?
> Or am I missing something?
>
> --
> Julien ÉLIE
>
> « Ta remise sur pied lui a fait perdre la tête ! » (Astérix)
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
Je crois je vois la probleme.
/usr/source/inn-STABLE-20070921$ configure --help
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print `checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local/news]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--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
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
--enable and --with options recognized:
--enable-libtool Use libtool for lib generation [default=no]
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-static[=PKGS] build static libraries [default=yes]
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--disable-libtool-lock avoid locking (might break parallel builds)
--with-pic try to use only PIC/non-PIC objects [default=use both]
--with-control-dir=PATH Path for control programs [PREFIX/bin/control]
--with-db-dir=PATH Path for news database files [PREFIX/db]
--with-doc-dir=PATH Path for news documentation [PREFIX/doc]
--with-etc-dir=PATH Path for news config files [PREFIX/etc]
--with-filter-dir=PATH Path for embedded filters [PREFIX/bin/filter]
--with-lib-dir=PATH Path for news library files [PREFIX/lib]
--with-log-dir=PATH Path for news logs [PREFIX/log]
--with-run-dir=PATH Path for news PID/runtime files [PREFIX/run]
--with-spool-dir=PATH Path for news storage [PREFIX/spool]
--with-tmp-dir=PATH Path for temporary files [PREFIX/tmp]
--with-syslog-facility=LOG_FAC Syslog facility [LOG_NEWS or LOG_LOCAL1]
--with-news-user=USER News user name [news]
--with-news-group=GROUP News group name [news]
--with-news-master=USER News master (address for reports) [usenet]
--with-news-umask=UMASK umask for news files [002]
--enable-setgid-inews Install inews setgid
--enable-uucp-rnews Install rnews setuid, group uucp
--with-log-compress=METHOD Log compression method [gzip]
--with-innd-port=PORT Additional low-numbered port for inndstart
--enable-ipv6 Enable IPv6 support
--with-max-sockets=N Maximum number of listening sockets in innd
--enable-tagged-hash Use tagged hash table for history
--enable-keywords Automatic keyword generation support
--enable-largefiles Support for files larger than 2GB [default=no]
--with-sendmail=PATH Path to sendmail
--with-kerberos=PATH Path to Kerberos v5 (for auth_krb5)
--with-perl Embedded Perl script support [default=no]
--with-python Embedded Python module support [default=no]
--with-berkeleydb[=PATH] Enable BerkeleyDB (for ovdb overview method)
--with-openssl=PATH Enable OpenSSL (for NNTP over SSL support)
--with-sasl=PATH Enable SASL (for imapfeed authentication)
/usr/source/Python-2.5.1$ ^fn^nf
configure --help
`configure' configures python 2.5 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]
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-universalsdk[SDKDIR]
Build agains Mac OS X 10.4u SDK (ppc/i386)
--enable-framework[=INSTALLDIR]
Build (MacOSX|Darwin) framework
--enable-shared disable/enable building shared python library
--enable-profiling enable C-level code profiling
--enable-toolbox-glue disable/enable MacOSX glue code for extensions
--enable-ipv6 Enable ipv6 (with ipv4) support
--disable-ipv6 Disable ipv6 support
--enable-unicode[=ucs[24]]
Enable Unicode strings (default is yes)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--without-gcc never use gcc
--with-cxx-main=<compiler>
compile main() and link python executable with C++
compiler
--with-suffix=.exe set executable suffix
--with-pydebug build with Py_DEBUG defined
--with-libs='lib1 ...' link against additional libs
--with-system-ffi build _ctypes module using an installed ffi library
--with-signal-module disable/enable signal module
--with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
--with(out)-threads[=DIRECTORY]
disable/enable thread support
--with(out)-thread[=DIRECTORY]
deprecated; use --with(out)-threads
--with-pth use GNU pth threading libraries
--with(out)-doc-strings disable/enable documentation strings
--with(out)-tsc enable/disable timestamp counter profile
--with(out)-pymalloc disable/enable specialized mallocs
--with-wctype-functions use wctype.h functions
--with-fpectl enable SIGFPE catching
--with-libm=STRING math library
--with-libc=STRING C library
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.
Report bugs to <http://www.python.org/python-bugs>.
There are very few influential environmental variables coming from ./configure .
--
Member - Liberal International
This is doctor at nl2k.ab.ca Ici doctor at nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the inn-workers
mailing list