php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #424 ld: -lmysqlclient: no match during ./configure
Submitted: 1998-06-02 12:03 UTC Modified: 1998-06-03 09:06 UTC
From: sindau at hotmail dot com Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0 Release Candidate 5 OS: FreeBSD 2.2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sindau at hotmail dot com
New email:
PHP Version: OS:

 

 [1998-06-02 12:03 UTC] sindau at hotmail dot com
Thanks to rasmus beating it into my head over and over
about following directions I have been able to compile PHP 
into apache as a module and it worked.  For anyone having 
problems, order is extremely important when following some 
of these directions.  Start with a clean untar and step it, 
if you don't know, don't assume.  

Anyway I ran into a problem with compiling mysql into php 
into apache.  I nabbed the source for mysql-3.21.30 and 
compiled it into my system ok.  I even compiled it into the 
php module without a hitch.  When I run ./configure on 
apache with

./configure --prefix=/usr/local/apache
            --activate-module=src/modules/php3/libphp3.a
            --includedir=/usr/ports/databases/mysql-3.21.30/include

It stops at.

Note: The apache-conf is an executable script to keep me 
sane.  It contains the above command line for ./configure.
There is no CR or LF in this file, it's here for readability.


*********************************************************
freebsd# ./apache-conf
Configuring for Apache, Version 1.3b6
 + activated php3 module (modules/php3/libphp3.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for FreeBSD 2.2.6 platform
 + setting C compiler to gcc
 + adding selected modules
   o php3_module uses ConfigStart/End
ld: -lmysqlclient: no match
make: *** [dummy] Error 1
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.
 Aborting!

This is probably a no brainer modification to fix but I'm 
quite wary of assuming anything at this point.

Thanks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-03 09:06 UTC] rasmus
No response from user for a while.  I'll assume he has figured it out.  Regardless, it is not a PHP bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 06:01:29 2024 UTC