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

php.internals

Daniela Mariaschi

23 years ago
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