[linux] Kompilacia apache 1.3.14, php4, gcc

Jalsovszky Tamas jalsot na decef.elf.stuba.sk
Středa Listopad 15 18:33:46 CET 2000


Vyskusaj tam dat v konf. php
--with-imap=cesta napr --with-imap=../imap-4.7c
a este v apache: --disable-module=imap

Tu je moja konf. (este s mod_ssl & mod_perl)

Apacheconf:
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro
-march=pen
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/home/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/apache \
--includedir=/usr/include/apache \
--sysconfdir=/etc/httpd/conf \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--datadir=/home/httpd \
--proxycachedir=/var/cache/httpd \
--mandir=/usr/man


phpconf:
CC="egcs" \
CFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro
-march=pe
./configure \
--prefix=/usr \
--with-exec-dir=/usr/bin \
--with-apache=../apache_1.3.14 \
--with-mysql=/home/mysql \
--with-config-file-path=/etc/httpd \
--disable-debug \
--enable-safe-mode \
--with-gd \
--with-mm=../mm-1.1.3 \
--with-imap=../imap-4.7c \
--enable-inline-optimization \
--with-gnu-ld \
--enable-memory-limit


apacheconf:
SSL_BASE=SYSTEM \
EAPI_MM=SYSTEM \
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro
-march=pen
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/home/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/apache \
--includedir=/usr/include/apache \
--sysconfdir=/etc/httpd/conf \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--datadir=/services \
--proxycachedir=/var/cache/httpd \
--mandir=/usr/man \
--add-module=src/modules/extra/mod_mmap_static.c \
--add-module=src/modules/standard/mod_auth_db.c \
--enable-module=ssl \
--enable-rule=SSL_SDBM \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl \
--disable-module=status \
--disable-module=userdir \
--disable-module=negotiation \
--disable-module=asis \
--disable-module=imap \
--disable-module=env \
--disable-module=actions \
--enable-module=rewrite


On Wed, 15 Nov 2000, Roman Boba wrote:

> Caute,
> 
> kua, mam cerstvo nainstalovany Mandrake 7.2 (takmer plna instalacia)
> Chcem skompilovat apache 1.3.14 + PHP4 (CVS) pre IMP a HORDE.
> 
> robim:
> 
> apache:
> configure --prefix=/usr/local/apache
> 
> php:
> ./configure --with-imap --enable-track-vars --with-pgsql --with-apache=blabl
> a
> make
> make install
> 
> a spat apache:
> configure --activate-module=src/modules/php4/libphp4.a
> make
> 
> a tam to pride:
> 
> 
> 
> Configuring for Apache, Version 1.3.14
>  + using installation path layout: Apache (config.layout)
>  + activated php4 module (modules/php4/libphp4.a)
> Creating Makefile
> Creating Configuration.apaci in src
> cd ..;
> gcc  -DLINUX=2 -I/root/CVS/php4 -I/root/CVS/php4/main -I/root/CVS/php4
> /main -I/root/CVS/php4/Zend -I/root/CVS/php4/Zend -I/root/CVS/php4/TSRM -I/r
> o
> ot/CVS/php4/TSRM -I/root/CVS/php4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEE
> D
> ED `./apaci`     -o helpers/dummy
> lpers/dummy.c   -Wl,-rpath,/usr/lib/pgsql
>   -rdynamic -L/usr/lib/pgsql -Lmodules/php4 -L../modules/php4 -L../../module
> s
> /php4 -lmodphp4  -lpam -limap  -ldl -lpq -lresolv -lm -ldl -lcrypt -lnsl  -l
> r
> esolv   -lm -lcrypt
> /usr/lib/libimap.so: undefined reference to `mm_expunged'
> /usr/lib/libimap.so: undefined reference to `mm_diskerror'
> /usr/lib/libimap.so: undefined reference to `mm_lsub'
> /usr/lib/libimap.so: undefined reference to `mm_flags'
> /usr/lib/libimap.so: undefined reference to `mm_fatal'
> /usr/lib/libimap.so: undefined reference to `mm_nocritical'
> /usr/lib/libimap.so: undefined reference to `mm_notify'
> /usr/lib/libimap.so: undefined reference to `mm_searched'
> /usr/lib/libimap.so: undefined reference to `mm_status'
> /usr/lib/libimap.so: undefined reference to `mm_login'
> /usr/lib/libimap.so: undefined reference to `mm_list'
> /usr/lib/libimap.so: undefined reference to `mm_critical'
> /usr/lib/libimap.so: undefined reference to `mm_exists'
> /usr/lib/libimap.so: undefined reference to `mm_log'
> /usr/lib/libimap.so: undefined reference to `mm_dlog'
> collect2: ld returned 1 exit status
> make: *** [dummy] Error 1
> Creating Makefile in src
>  + configured for Linux platform
>  + setting C compiler to gcc
>  + setting C pre-processor to gcc -E
>  + checking for system header files
>  + adding selected modules
>     o php4_module uses ConfigStart/End
>  + checking sizeof various data types
>  + doing sanity check on compiler and options
> ** A test compilation with your Makefile configuration
> ** failed.  The below error output from the compilation
> ** test will give you an idea what is failing. Note that
> ** Apache requires an ANSI C Compiler, such as gcc.
> 
> ======== Error Output for sanity check ========
> ============= End of Error Report =============
> 
>  Aborting!
> 
> 
> rpm -qa | grep gcc=
> gcc-cpp-2.95.2-12mdk
> gcc-2.95.2-12mdk
> gcc-c++-2.95.2-12mdk
> gcc-java-2.95.2-12mdk
> gcc-colorgcc-2.95.2-12mdk
> gcc-g77-2.95.2-12mdk
> gcc-objc-2.95.2-12mdk
> gcc-libgcj-2.95.2-12mdk
> gcc-fr-2.95-4mdk
> gcc-chill-2.95.2-12mdk
> 
> 
> a co sa imap-u tyka, mam:
> imap-4.7c2-4mdk
> imap-devel-4.7c2-4mdk
> 
> Chyba mu este cosi, alebo ma nieco navyse ? Vdaka za kazdu radu.
> 
> 
> Roman
> 




Další informace o konferenci linux