php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22968 error with libmcal 0.7 & libmcal drivers 0.9
Submitted: 2003-03-30 16:09 UTC Modified: 2007-04-04 18:51 UTC
From: magz at bop dot nu Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4CVS-2003-03-30 (stable) OS: Redhat 7.3
Private report: No CVE-ID: None
 [2003-03-30 16:09 UTC] magz at bop dot nu
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-31 15:18 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is an issue with the mcal library and not PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 20:01:29 2024 UTC