From: magz at bop dot nu
Operating system: Redhat 7.3
PHP version: 4CVS-2003-03-30 (stable)
PHP Bug Type: MCAL related
Bug description: error with libmcal 0.7 & libmcal drivers 0.9
I have just downloaded the latest libmcal v0.7 and libmcal drivers v0.9 and
was trying to install them with php.
No errors occured until I was going to ./configure apache.
Using php4-STABLE-200303301630.
---- Preparing libmcal ----
tar zxfv mcaldrivers-0.9.tar.gz
tar zxfv libmcal-0.7.tar.gz
cd mcal-drivers
mv * ../libmcal
cd ../libmcal/mstore
make
cd ../icap
make
cd ..
chmod a+x configure
./configure --with-mstore --with-icap
make
mkdir /var/calendar
chmod 1777 /var/calendar
(Without any errors)
---- compiling php-latest-stable ----
./configure \
--with-apache=../apache_1.3.27 \
--with-config-file-path=/etc \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-track-vars \
--with-xml \
--with-dom \
--with-xmlrpc \
--with-mysql=/usr/local/mysql \
--enable-sockets \
--with-ldap \
--with-imap=/usr/local/imap-2002b \
--with-imap-ssl=/usr/local \
--with-mm \
--enable-memory-limit \
--enable-bcmath \
--enable-sigchild \
--with-zlib=/usr \
--with-curl=/usr/local \
--with-dom=/usr/include/libxml2/libxml \
--enable-exif \
--enable-ftp \
--with-gettext=/usr/share \
--with-gd \
--with-ttf \
--with-freetype-dir=/usr/local/include/freetype2/freetype \
--enable-gd-imgstrttf \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--with-tiff-lib=/usr \
--with-openssl=/usr/local/ssl \
--with-mcrypt \
--with-mhash \
--with-pspell \
--with-imagick \
--enable-mime-magic
make
make install
(Without any errors)
---- compiling apache ----
SSL_BASE=/usr/local/ssl ./configure \
> --enable-module=ssl \
> --activate-module=src/modules/php4/libphp4.a \
> --activate-module=src/modules/extra/mod_geoip.c \
> --enable-rule=eapi \
> --enable-module=define \
> --enable-module=headers \
> --enable-module=info \
> --enable-module=rewrite \
> --enable-module=unique_id \
> --enable-module=digest \
> --enable-module=expires \
> --enable-module=so \
> --enable-module=usertrack
Configuring for Apache, Version 1.3.27
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
+ activated geoip module (modules/extra/mod_geoip.c)
Creating Makefile
Creating Configuration.apaci in src
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 rewrite_module uses ConfigStart/End
+ using -lndbm for DBM support
enabling DBM support for mod_rewrite
o ssl_module uses ConfigStart/End
+ SSL interface: mod_ssl/2.8.14
+ SSL interface build type: OBJ
+ SSL interface compatibility: enabled
+ SSL interface experimental code: disabled
+ SSL interface conservative code: disabled
+ SSL interface vendor extensions: disabled
+ SSL interface plugin: Built-in SDBM
+ SSL library path: /usr/local/ssl
+ SSL library version: OpenSSL 0.9.7a Feb 19 2003
+ SSL library type: installed package (stand-alone)
o php4_module uses ConfigStart/End
o geoip_module uses ConfigStart/End
+ using -L/usr/local/lib -lGeoIP for GeoIP support
+ enabling Extended API (EAPI)
+ using system Expat
+ using -ldl for vendor DSO support
+ 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 ========
cd ..; gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208114 -DEAPI
`./apaci` -L/usr/local/ssl/lib -o helpers/dummy helpers/dummy.c
-Wl,-rpath,/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib
-Wl,-rpath,/usr/local/imap-2002b/lib -Wl,-rpath,/usr/src/apache/libmcal
-Wl,-rpath,/usr/local/mysql/lib -rdynamic -L/usr/local/ssl/lib
-L/usr/local/lib -L/usr/local/imap-2002b/lib -L/usr/src/apache/libmcal
-L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -rdynamic -L/usr/local/ssl/lib
-L/usr/local/lib -L/usr/local/imap-2002b/lib -L/usr/src/apache/libmcal
-L/usr/local/mysql/lib -lcrypt -lmcal -lc-client -lssl -lcrypto -lexpat
-lcrypt -lmm -lpspell -lmysqlclient -lmhash -lmcrypt -lltdl -lldap -llber
-lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lz -lcurl -lz -lssl -lcrypto
-lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcrypto -ldl -lz -lxml2 -lz -lm
-lcrypt -lcrypt -lm -lcrypt -lndbm -lssl -lcrypto -L/usr/local/lib
-lGeoIP -lexpat -ldl
/usr/src/apache/libmcal/libmcal.so: undefined reference to `cc_login'
/usr/src/apache/libmcal/libmcal.so: undefined reference to `cc_searched'
/usr/src/apache/libmcal/libmcal.so: undefined reference to `cc_vlog'
/usr/src/apache/libmcal/libmcal.so: undefined reference to `cc_vdlog'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============
Aborting!
When using libmcal 0.6 and libmcal drivers 0.8 with the same configuration
as above it works without any problems.
--
Edit bug report at http://bugs.php.net/?id=22968&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22968&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22968&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22968&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22968&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22968&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22968&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22968&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22968&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22968&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22968&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22968&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22968&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22968&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22968&r=gnused