Kompilace proftpd + mod_mysql

Dejma dejma na volny.cz
Neděle Červenec 6 14:32:32 CEST 2003


Dobrý den všem, (já už ho mám zkažený)

Snažím se zkompilovat proftpd s podporou mysql.
Mám naistalováno MDK 9.1 při instalaci jsem si naistaloval MySQL a
Proftpd.
Přes rpmdrak jsem odistaloval proftpd a stáhl z:
ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.8.tar.gz zdrojáky.

Dle návodu:
http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-SQL.html
Jsem spustil
[root na tucnak PROFTPD]# ./configure
	--with-modules=mod_sql:mod_sql_mysql
	--with-includes=/usr/include
	--with-libraries=/usr/lib
A pak
root na tucnak PROFTPD]# make
(to hodilo err[1] a err[2] viz přiložený texťák)

Jenže já nevím, jaká je správná cesta includes=/usr/include a
libraries=/usr/lib. Kde to vůbec můžu zjistit?
Hledal jsem na disku soubor mysql.h - NENALEZEN, libmysqlclient.a -
NENALEZEN.
MySQL databáze mi funguje (administrace webminem OK)

V přiloženém texťáku posílám výpis ./configure a make.

Informace ve výpisu jsou pro mě absolutně nečitelné.
Domnívám se, že za to může právě ta pro mě neznámá cesta includes a
libraries při ./configure.

Poradíte co to má být za cestu.

PS: Při práci s tučňákem si pripadám jako absolutní zoufalec. Co úkon,
to je pro mě další zdroj takovýchle kravin - má neznalost lin
prostředí). Se tím snad nějak prokoušu :). Bez téhle konfery bych to už
100x vyhodil z Wokna - díky za trpělivost.


---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.496 / Virová báze: 295 - datum vydání: 3.7.2003
 
  
------------- další část ---------------
[root na tucnak PROFTPD]# ./configure
	--with-modules=mod_sql:mod_sql_mysql
	--with-includes=/usr/include
	--with-libraries=/usr/lib

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether the C compiler accepts -Wall... yes
checking whether gcc accepts -Wno-long-double... no
checking for standalone crypt... no
checking for crypt in -lcrypt... yes
checking for standalone gethostbyname... yes
checking for standalone inet_aton... yes
checking for standalone nsl functions... yes
checking for standalone socket functions... yes
checking for _pw_stayopen variable... no
checking for set_auth_parameters in -lsecurity... no
checking for setprpwent in -lsec... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/security.h usability... no
checking sys/security.h presence... no
checking for sys/security.h... no
checking krb.h usability... no
checking krb.h presence... no
checking for krb.h... no
checking prot.h usability... no
checking prot.h presence... no
checking for prot.h... no
checking for set_auth_parameters... no
checking for getprpwent... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking for hpsecurity.h workaround... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for memory.h... (cached) yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for struct spwd.sp_warn... yes
checking for struct spwd.sp_inact... yes
checking for struct spwd.sp_expire... yes
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking linux/capability.h usability... yes
checking linux/capability.h presence... yes
checking for linux/capability.h... yes
checking whether to enable mod_cap... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking for sys/types.h... (cached) yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for sys/stat.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/termio.h usability... no
checking sys/termio.h presence... no
checking for sys/termio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking vmsdir.h usability... no
checking vmsdir.h presence... no
checking for vmsdir.h... no
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking type of array argument to getgroups... gid_t
checking for timer_t... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for off_t... (cached) yes
checking size of off_t... 8
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for umode_t... no
checking for ino_t... yes
checking for socklen_t... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking whether your struct utmp has ut_user... yes
checking whether your struct utmp has ut_host... yes
checking whether your struct utmp has ut_exit... yes
checking whether your syslog.h defines LOG_CRON... yes
checking whether your syslog.h defines LOG_FTP... yes
checking for d_fd in DIR structure... no
checking for dd_fd in DIR structure... no
checking for __dd_fd in DIR structure... no
checking for working alloca.h... yes
checking for alloca... yes
checking for alloca in -lucb... no
checking whether gcc needs -traditional... no
checking whether setpgrp takes no argument... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for bcopy... yes
checking for crypt... yes
checking for fgetgrent... yes
checking for fgetpwent... yes
checking for flock... yes
checking for getcwd... yes
checking for gethostname... yes
checking for getopt... yes
checking for getopt_long... yes
checking for gettimeofday... yes
checking for inet_aton... yes
checking for memcpy... yes
checking for mempcpy... yes
checking for mkdir... yes
checking for mkstemp... yes
checking for rmdir... yes
checking for select... yes
checking for setgroups... yes
checking for socket... yes
checking for statfs... yes
checking for strchr... yes
checking for strcoll... yes
checking for strerror... yes
checking for strsep... yes
checking for strtol... yes
checking for setprotoent... yes
checking for endprotoent... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setsid... yes
checking for setgroupent... no
checking for seteuid... yes
checking for setegid... yes
checking for siginterrupt... yes
checking for setpgid... yes
checking for regcomp... yes
checking for tzset... yes
checking for pathconf... yes
checking for fpathconf... yes
checking for fgetspent... yes
checking for setpassent... no
checking whether setgrent returns void... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for setproctitle... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for setproctitle in -lutil... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking whether __progname and __progname_full are available... yes
checking which argv replacement method to use... writeable
configure: creating ./config.status
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating modules/Makefile
config.status: creating utils/Makefile
config.status: creating Makefile
config.status: creating Make.rules
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands



root na tucnak PROFTPD]# make
cd lib/ && make lib
make[1]: Entering directory `/home/admin/PROFTPD/lib'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/home/admin/PROFTPD/lib'
cd src/ && make src
make[1]: Entering directory `/home/admin/PROFTPD/src'
make[1]: Nothing to be done for `src'.
make[1]: Leaving directory `/home/admin/PROFTPD/src'
cd modules/ && make modules
make[1]: Entering directory `/home/admin/PROFTPD/modules'
gcc  -DLINUX  -I.. -I../include -I/usr/include -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:136:25: mysql/mysql.h: No such file or directory
mod_sql_mysql.c:163: parse error before "MYSQL"
mod_sql_mysql.c:163: warning: no semicolon at end of struct or union
mod_sql_mysql.c: In function `_build_error':
mod_sql_mysql.c:331: warning: implicit declaration of function `mysql_errno'
mod_sql_mysql.c:331: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: warning: implicit declaration of function `mysql_error'
mod_sql_mysql.c:333: dereferencing pointer to incomplete type
mod_sql_mysql.c:333: warning: passing arg 4 of `mod_create_ret' makes pointer from integer without a cast
mod_sql_mysql.c: In function `_build_data':
mod_sql_mysql.c:345: `MYSQL' undeclared (first use in this function)
mod_sql_mysql.c:345: (Each undeclared identifier is reported only once
mod_sql_mysql.c:345: for each function it appears in.)
mod_sql_mysql.c:345: `mysql' undeclared (first use in this function)
mod_sql_mysql.c:346: `MYSQL_RES' undeclared (first use in this function)
mod_sql_mysql.c:346: `result' undeclared (first use in this function)
mod_sql_mysql.c:347: `MYSQL_ROW' undeclared (first use in this function)
mod_sql_mysql.c:347: parse error before "row"
mod_sql_mysql.c:356: dereferencing pointer to incomplete type
mod_sql_mysql.c:362: warning: implicit declaration of function `mysql_store_result'
mod_sql_mysql.c:368: warning: implicit declaration of function `mysql_num_rows'
mod_sql_mysql.c:369: warning: implicit declaration of function `mysql_num_fields'
mod_sql_mysql.c:374: `row' undeclared (first use in this function)
mod_sql_mysql.c:374: warning: implicit declaration of function `mysql_fetch_row'
mod_sql_mysql.c:384: warning: implicit declaration of function `mysql_free_result'
mod_sql_mysql.c: In function `cmd_open':
mod_sql_mysql.c:438: warning: implicit declaration of function `mysql_ping'
mod_sql_mysql.c:438: dereferencing pointer to incomplete type
mod_sql_mysql.c:450: dereferencing pointer to incomplete type
mod_sql_mysql.c:450: warning: implicit declaration of function `mysql_init'
mod_sql_mysql.c:452: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: warning: implicit declaration of function `mysql_real_connect'
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:460: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: dereferencing pointer to incomplete type
mod_sql_mysql.c:461: dereferencing pointer to incomplete type
mod_sql_mysql.c:462: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_close':
mod_sql_mysql.c:556: warning: implicit declaration of function `mysql_close'
mod_sql_mysql.c:556: dereferencing pointer to incomplete type
mod_sql_mysql.c:557: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_defineconnection':
mod_sql_mysql.c:623: sizeof applied to an incomplete type
mod_sql_mysql.c:626: dereferencing pointer to incomplete type
mod_sql_mysql.c:627: dereferencing pointer to incomplete type
mod_sql_mysql.c:658: dereferencing pointer to incomplete type
mod_sql_mysql.c:659: dereferencing pointer to incomplete type
mod_sql_mysql.c:660: dereferencing pointer to incomplete type
mod_sql_mysql.c:677: dereferencing pointer to incomplete type
mod_sql_mysql.c:678: dereferencing pointer to incomplete type
mod_sql_mysql.c:679: dereferencing pointer to incomplete type
mod_sql_mysql.c:680: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_select':
mod_sql_mysql.c:801: warning: implicit declaration of function `mysql_real_query'
mod_sql_mysql.c:801: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_insert':
mod_sql_mysql.c:915: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_update':
mod_sql_mysql.c:1014: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_query':
mod_sql_mysql.c:1130: dereferencing pointer to incomplete type
mod_sql_mysql.c:1145: warning: implicit declaration of function `mysql_field_count'
mod_sql_mysql.c:1145: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_escapestring':
mod_sql_mysql.c:1225: warning: implicit declaration of function `mysql_escape_string'
mod_sql_mysql.c: In function `cmd_checkauth':
mod_sql_mysql.c:1289: warning: implicit declaration of function `make_scrambled_password'
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/home/admin/PROFTPD/modules'
make: *** [modules] Error 2


Další informace o konferenci Linux