# [PATCH]: interbase - libgds.so: undefined reference to `crypt'

- Thread: https://externals.io/message/991
- Original archive: https://news-web.php.net/php.internals/991
- Started by Daniela Mariaschi on 2003-04-21T11:29:17+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #991 — Daniela Mariaschi — 2003-04-21T11:29:17+00:00

URL: https://externals.io/message/991#991

Patch proposal to solve compile failure for Firebird  user.
In 4.3.2 was added in config.m4 a test for  libgds (following up to bug
#21977 ).
For Interbase user this is ok, but  Firebird users receive always this
compile failure:

configure:37594: gcc -o conftest -g -O2
    -L/opt/interbase/lib -lgds
    conftest.c -lgds  -lresolv -lm -ldl -lnsl  1>&5
/opt/interbase/lib/libgds.so: undefined reference to `crypt'
collect2: ld returned 1 exit status

libgds with Firebird require libcrypt to compile correctly.
and if  Firebird is installed with an .rpm or .deb package
we cant' be sure libcrypt is installed .... etc etc.....

I propose to search for  the existence of libgds only
without test it, so we skipped the problem about libcrypt required for
Firebird libgds.

I'm going to commit this patch (in HEAD and  4.3.x )  if no one  has better
suggestion or comment.

Regards Daniela
