php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7825 Configure keeps inserting a -l before -ldb and cannot detect required features
Submitted: 2000-11-15 02:56 UTC Modified: 2000-11-20 19:23 UTC
From: admiral at corner dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.3pl1 OS: Linux (redhat 6.2)
Private report: No CVE-ID: None
 [2000-11-15 02:56 UTC] admiral at corner dot net
configure:13727: checking whether to enable FTP support
configure:13907: checking whether to include GD support
configure:14872: checking for gdImageString16 in -lgd
configure:14891: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lgd  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 14880 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageString16();

int main() {
gdImageString16()
; return 0; }
configure:14915: checking for compress in -lz
configure:14934: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lz  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 14923 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char compress();

int main() {
compress()
; return 0; }
configure:14955: checking for png_info_init in -lpng
configure:14974: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lpng  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 14963 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char png_info_init();

int main() {
png_info_init()
; return 0; }
configure:14995: checking for gdImageColorResolve in -lgd
configure:15014: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lgd  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15003 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageColorResolve();

int main() {
gdImageColorResolve()
; return 0; }
configure:15038: checking for gdImageCreateFromPng in -lgd
configure:15057: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lgd  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15046 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageCreateFromPng();

int main() {
gdImageCreateFromPng()
; return 0; }
configure:15081: checking for gdImageCreateFromGif in -lgd
configure:15100: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lgd  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15089 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageCreateFromGif();

int main() {
gdImageCreateFromGif()
; return 0; }
configure:15124: checking for gdImageCreateFromXbm in -lgd
configure:15143: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lgd  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15132 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageCreateFromXbm();

int main() {
gdImageCreateFromXbm()
; return 0; }
configure:15167: checking for gdImageWBMP in -lgd
configure:15186: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -L/usr/local/gd conftest.c -lgd  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15175 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageWBMP();

int main() {
gdImageWBMP()
; return 0; }
configure:15240: checking for libjpeg (needed by gd-1.8+)
configure:15252: checking for jpeg_read_header in -ljpeg
configure:15271: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd conftest.c -ljpeg  -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/local/lib 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15260 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char jpeg_read_header();

int main() {
jpeg_read_header()
; return 0; }
configure:15354: checking for gdImageCreateFromJpeg in -lgd
configure:15373: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lgd  -ljpeg -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/local/lib -ljpeg 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15362 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageCreateFromJpeg();

int main() {
gdImageCreateFromJpeg()
; return 0; }
configure:15399: checking for libXpm (needed by gd-1.8+)
configure:15411: checking for XpmFreeXpmImage in -lXpm
configure:15430: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lXpm  -ljpeg -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/local/lib -ljpeg -L/usr/X11R6/lib 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15419 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XpmFreeXpmImage();

int main() {
XpmFreeXpmImage()
; return 0; }
configure:15564: checking for gdImageCreateFromXpm in -lgd
configure:15583: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lgd  -lX11 -lXpm -ljpeg -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/local/lib -ljpeg -L/usr/X11R6/lib -lXpm -lX11 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 15572 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageCreateFromXpm();

int main() {
gdImageCreateFromXpm()
; return 0; }
configure:16011: checking whether to include ttf support
configure:16217: checking for T1lib support
configure:16456: checking whether to enable 4bit antialias hack with FreeType2
configure:16659: checking whether to include GNU gettext support
configure:17064: checking for Hyperwave support
configure:17221: checking for ICAP support
configure:17529: checking for Kerberos support in IMAP
configure:17582: checking for SSL support in IMAP
configure:17635: checking for IMAP support
configure:18271: checking for Informix support
configure:18762: checking for Ingres II support
configure:19177: checking for InterBase support
configure:19485: checking for Java support
configure:19909: checking whether to include LDAP support
configure:21162: checking for MCAL support
configure:21501: checking for mcrypt support
configure:21588: checking for init_mcrypt in -lmcrypt
configure:21607: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/mcal/lib -L/usr/local/mcal/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lmcrypt  -lmcal -lttf -lX11 -lXpm -ljpeg -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/local/lib -ljpeg -L/usr/X11R6/lib -lXpm -lX11 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 21596 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char init_mcrypt();

int main() {
init_mcrypt()
; return 0; }
configure:21637: checking for mcrypt_module_open in -lmcrypt
configure:21656: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/gd -L/usr/local/gd -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/mcal/lib -L/usr/local/mcal/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lmcrypt  -lmcal -lttf -lX11 -lXpm -ljpeg -lgd -l -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/local/lib -ljpeg -L/usr/X11R6/lib -lXpm -lX11 -lltdl 1>&5
/usr/bin/ld: cannot find -l--library=db
collect2: ld returned 1 exit status
configure: failed program was:
#line 21645 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mcrypt_module_open();

int main() {
mcrypt_module_open()
; return 0; }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-15 13:13 UTC] sniper@php.net
What is the full configure line you used?

--Jani
 [2000-11-20 19:22 UTC] sniper@php.net
User feedback:
-----------

./configure --with-jpeg-dir=/usr/local --with-mcrypt --with-mhash
--with-mcal=/usr/local/mcal --with-pspell=/usr/local/share/pspell --with-pdf
--with-gd=/usr/local/gd --with-zlib=shared --with-png --with-db2 --with-db3
--with-gdbm=shared --with-mysql=/usr --with-xpm-dir=/usr/X11R6

----------

Minor update-- the blank library "-l -ldb" vanished when I removed the
--with-db3 from the configure line.  I hope this helps.

----------

Yes, I just remembered that I have fixed this already. =) 
You don't have Berkeley DB3 in your system. And the configure
script with php4.0.3pl1 was broken in that way as it didn't break
out if  the lib wasn't found.

--Jani


 [2000-11-20 19:23 UTC] sniper@php.net
I forget to say that you can always try the latest snapshot from http://snaps.php.net/

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 21:01:29 2024 UTC