[Linecontrol-users] Re: LineControl Problems...
Brought to you by:
sfuchs
From: S. F. <lin...@sr...> - 2004-10-07 16:23:26
|
Hello, > > linesrv can use libmysqlclient and libpam, so in "debian > > testing" for example you need the following packages: > > - libmysqlclient12 > > - libmysqlclient-dev > > - libpam0g > > - libpam0g-dev > > installed these packages just as you said: now ./configure states > this: > > ----------------- > shutdown support enabled > using pam for authentication > using MySQL backend for supplementary logging > ----------------- > Don't do 'make install'! > It has been generated but doesn't work as you would expect. > Read ./server/INSTALL instead. > Now go on with 'make' to compile linesrv and its tools... > > ok that looked quite nice... next step: make: and now there is > something wrong... Fine... first part succeeded. We'll try to use PAM for authentication and use mysql for logging. > mysql_backend.c: In function `sqlbe_connect': > mysql_backend.c:85: warning: implicit declaration of function > `mysql_connect' source='isdn_callerslog.c' > object='isdn_callerslog.o' libtool=no \ > depfile='.deps/isdn_callerslog.Po' > tmpdepfile='.deps/isdn_callerslog.TPo' \ depmode=gcc3 /bin/sh > ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -O2 -c > `test -f'isdn_callerslog.c' || echo './'`isdn_callerslog.c > gcc -g -Wall -O2 -lpam -lmysqlclient -o linesrv cfg.o client.o > cmd.o cmd_lcp3.o con.o debug.o execute.o external.o html_status.o > iface.o init.o ipvalidator.o isdn_watcher.o lcp3_supp.o lines.o > linesrv.o lists.o netinput.o pinger.o proc.o proc_lcp3.o proc_supp.o > times.o user_pam.o user.o user_noauth.o lcp3.o syslog_call_from.o > mysql_backend.o isdn_callerslog.o > mysql_backend.o(.text+0x1ab): In function `sqlbe_connect': > /var/lib/linesrv/server/mysql_backend.c:85: undefined reference to > `mysql_connect' > collect2: ld returned 1 exit status > make[2]: *** [linesrv] Error 1 > make[2]: Leaving directory `/var/lib/linesrv/server' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/var/lib/linesrv' > make: *** [all] Error 2 > > couldnt get the programme compiled now... :( what did i do wrong > this time? This time it seems that linesrv has a problem with your mysql.h it found. Your libmysqlclient version doesn't support the old-fashioned functions any more or they were not compiled in when your binary got created... Edit mysql_backend.c in some editor (no windows editor!! It will destroy it). Use nano, joe, 'mc -e <file>', nedit, vim, vi, ... Goto line 89, there's already a comment about our topic above that line. Remove the // from line 89 and put the same // in front of line 90. (read: comment out line 90, uncomment line 89) Try to compile linesrv, no need to run configure again. If it works, then run it (you have already a config file). Does it crash? If it runs: lucky man... tell me. If it doesn't work: learn coding C and fix it or use "./configure --disable-mysql", sorry. > > Hope that helps you... seems you have to learn a lot... ;) > > yap that helped me a lot... depends on which way u see it ;) > > im just a spoiled debian user, who has always been using precompiled > debian versions, with an included dependencies installer... :D I've been a debian user... started with SuSE, have gone to debian as it's for free and finally stepped to Gentoo as it's the most flexible distribution I've ever seen, though you need a fairly good knowledge about the stuff in /etc/. I think an installer which cares about dependencies is a must. Otherwise you would have to spend to much time collecting stuff you don't have installed yet. Even think about upgrading the whole system... ;). Using precompiled binaries is the common case. You just have to know about that stuff with the development packages which provide you the neccessary files needed for compilation and linking of other apps. Greetings S. Fuchs |