int main() {
mysql_close()
; return 0; }
configure:59865: checking for mysql_error in -lmysqlclient
configure:59884: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib// -L/usr/local/lib// -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lgd -lfreetype -lpng -lz -ljpeg -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lm -lssl -lcrypto -ldl -lxml2 -lm -lssl -lcrypto -ldl 1>&5
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: warning: libX11.so.6, needed by /usr/lib/libgd.so, not found (try using -rpath or -rpath-link)
/usr/lib/libXpm.so.4: undefined reference to `XQueryColors'
/usr/lib/libXpm.so.4: undefined reference to `XGrabServer'
/usr/lib/libXpm.so.4: undefined reference to `XCreateImage'
/usr/lib/libXpm.so.4: undefined reference to `XFreeColors'
/usr/lib/libXpm.so.4: undefined reference to `XDefaultVisual'
/usr/lib/libXpm.so.4: undefined reference to `XGetGeometry'
/usr/lib/libXpm.so.4: undefined reference to `XFreeGC'
/usr/lib/libXpm.so.4: undefined reference to `XUngrabServer'
/usr/lib/libXpm.so.4: undefined reference to `XDefaultScreen'
/usr/lib/libXpm.so.4: undefined reference to `XCreateGC'
/usr/lib/libXpm.so.4: undefined reference to `XDefaultColormap'
/usr/lib/libXpm.so.4: undefined reference to `XPutImage'
/usr/lib/libXpm.so.4: undefined reference to `XParseColor'
/usr/lib/libXpm.so.4: undefined reference to `XGetImage'
/usr/lib/libXpm.so.4: undefined reference to `XAllocColor'
/usr/lib/libXpm.so.4: undefined reference to `XDefaultDepth'
/usr/lib/libXpm.so.4: undefined reference to `XCreatePixmap'
collect2: ld returned 1 exit status
configure: failed program was:
#line 59873 "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 mysql_error();
int main() {
mysql_error()
; return 0; }
Czyli potrzebny jest libxPm ... no i teraz problem, bo ta biblioteka wymaga X11 ... a nie chciałbym ładować sobie X-ów na serwer ... nie jest mi to zupełnie potrzebne. Jak to obejść?
Tylko po co to kompilujesz, skoro Apache2, PHP5 i mySQL są w dystrybucji?
Wszystko możesz ściągnąć z http://packages.slackware.it.
Po co sobie utrudniać? Coppermine ruszy bez problemu na paczkach ze Slackware. (gd również jest dostępne)
Ostatnio zmieniony 2007-12-07, 20:45 przez Heniek, łącznie zmieniany 1 raz.