LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1046|回复: 7

[求助] 编译pam_mysql-0.7RC1 出错

[复制链接]
发表于 2006-3-23 15:57:57 | 显示全部楼层 |阅读模式
Debian unstable
mysql openssl sasl2 已经安装

mysql: /usr/bin/mysql /etc/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

openssl: /usr/bin/openssl /usr/include/openssl /usr/share/man/man1/openssl.1ssl.gz

sasl: /usr/include/sasl /usr/share/man/man3/sasl.3.gz



执行
./configure --with-mysql=/usr/bin/mysql --with-cyrus-sasl2=/usr/include/sasl/

--------------------------------------------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for bison... bison -y
checking for g++... g++
checking for C++ compiler default output file name... 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 g++ accepts -g... yes
checking for gcc... gcc
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 how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for working volatile... yes
checking for preprocessor stringizing operator... yes
checking for pid_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking ELOOP availability... yes
checking EOVERFLOW availability... yes
checking for socket in -lsocket... no
checking for gethostbyname... yes
checking for gethostbyname in -lnsl... no
checking for inet_ntop... yes
checking for getaddrinfo... yes
checking for freeaddrinfo... yes
checking for strcasecmp... yes
checking for strdup... yes
checking PF_INET6 availability... yes
checking for struct sockaddr_in6... yes
checking for struct in6_addr... yes
checking for gethostbyname_r... yes
checking if gethostbyname_r() is part of glibc... yes
checking for char... yes
checking size of char... 1
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 if "/usr/bin/mysql" is a mysql_config script... yes
/usr/bin/mysql: unknown option '--cflags'
/usr/bin/mysql: unknown option '--libs'
checking for mysql_real_query... no
checking for mysql_real_escape_string... no
checking for make_scrambled_password_323... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking pam_appl.h usability... yes
checking pam_appl.h presence... yes
checking for pam_appl.h... yes
checking pam_modules.h usability... yes
checking PAM_CONV_AGAIN availability... yes
checking PAM_INCOMPLETE availability... yes
checking PAM_NEW_AUTHTOK_REQD availability... yes
checking PAM_AUTHTOK_RECOVERY_ERR availability... no
checking PAM_AUTHTOK_RECOVER_ERR availability... yes
checking if the second argument of pam_get_user() takes const pointer... yes
checking if the third argument of pam_get_data() takes const pointer... yes
checking if the third argument of pam_get_item() takes const pointer... yes
checking if the second argument of pam_conv.conv() takes const pointer... yes
checking if md5.h is derived from Cyrus SASL Version 1... no
checking md5.h usability... no
checking md5.h presence... no
checking for md5.h... no
checking if md5.h is Solaris's... no
checking for md5.h... (cached) no
checking for MD5Data... no
checking for crypt in -lcrypt... yes
checking for crypt... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pam_mysql.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands




-----------------------------------------------------------
make 时
pam_mysql.c (提示很多错误)
make: *** [pam_mysql.lo] 错误 1
 楼主| 发表于 2006-3-23 18:14:11 | 显示全部楼层
请帮忙看看谢谢了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-24 08:52:23 | 显示全部楼层
在顶一下! ^_^
回复 支持 反对

使用道具 举报

发表于 2006-3-24 16:23:55 | 显示全部楼层
apt-get install libpam-mysql

Depends: libc6 (>= 2.3.2.ds1-4), libmysqlclient10, libpam0g (>= 0.76), zlib1g (>= 1:1.2.1)

Build-Depends: libpam0g-dev, libmysqlclient12-dev, debhelper (>= 3.0.0)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-24 20:34:25 | 显示全部楼层
Post by eTony
apt-get install libpam-mysql

Depends: libc6 (>= 2.3.2.ds1-4), libmysqlclient10, libpam0g (>= 0.76), zlib1g (>= 1:1.2.1)

Build-Depends: libpam0g-dev, libmysqlclient12-dev, debhelper (>= 3.0.0)



我这里是已经安装好到了的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-25 14:03:42 | 显示全部楼层
/configure --with-mysql=/usr/bin/mysql --with-cyrus-sasl2=/usr/include/sasl/

cat cofig.log |grep error

CODE:

Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu
conftest.cc:15: error: 'exit' was not declared in this scope
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu
conftest.c:2: error: syntax error before 'me'
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory
conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
conftest.c:78: error: 'PAM_AUTHTOK_RECOVERY_ERR' undeclared (first use in this function)
conftest.c:78: error: (Each undeclared identifier is reported only once
conftest.c:78: error: for each function it appears in.)
configure:27738: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
configure:27807: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
configure:27876: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
configure:27947: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
conftest.c:76:23: error: md5global.h: No such file or directory
conftest.c:77:17: error: md5.h: No such file or directory
conftest.c:83: error: 'MD5_CTX' undeclared (first use in this function)
conftest.c:83: error: (Each undeclared identifier is reported only once
conftest.c:83: error: for each function it appears in.)
conftest.c:83: error: syntax error before 'ctx'
conftest.c:84: error: 'ctx' undeclared (first use in this function)
conftest.c:109:17: error: md5.h: No such file or directory
conftest.c:75:17: error: md5.h: No such file or directory
conftest.c:76:17: error: md5.h: No such file or directory
| /* Override any gcc2 internal prototype to avoid an error.  */
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu
conftest.cc:15: error: 'exit' was not declared in this scope
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu
conftest.c:2: error: syntax error before 'me'
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory
conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
conftest.c:78: error: 'PAM_AUTHTOK_RECOVERY_ERR' undeclared (first use in this function)
conftest.c:78: error: (Each undeclared identifier is reported only once
conftest.c:78: error: for each function it appears in.)
configure:27738: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
configure:27807: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
configure:27876: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
configure:27947: gcc -c  -I/usr/include/security -I/usr/include -Werror -g -O2     -g -O2 conftest.c >&5
conftest.c:76:23: error: md5global.h: No such file or directory
conftest.c:77:17: error: md5.h: No such file or directory
conftest.c:83: error: 'MD5_CTX' undeclared (first use in this function)
conftest.c:83: error: (Each undeclared identifier is reported only once
conftest.c:83: error: for each function it appears in.)
conftest.c:83: error: syntax error before 'ctx'
conftest.c:84: error: 'ctx' undeclared (first use in this function)
conftest.c:109:17: error: md5.h: No such file or directory
conftest.c:75:17: error: md5.h: No such file or directory
conftest.c:76:17: error: md5.h: No such file or directory
| /* Override any gcc2 internal prototype to avoid an error.  */
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-26 19:15:13 | 显示全部楼层
请帮我看看哦
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-27 15:12:53 | 显示全部楼层
通过了
 
./configure --with-mysql=/usr/bin/mysql --with-cyrus-sasl2=/usr/include/sasl/   
之前
  1. hecking if "/usr/bin/mysql" is a mysql_config script... yes
  2. /usr/bin/mysql: unknown option '--cflags'
  3. /usr/bin/mysql: unknown option '--libs'
  4. checking for mysql_real_query... no
  5. checking for mysql_real_escape_string... no
  6. checking for make_scrambled_password_323... no
  7. checking for pkg-config... /usr/bin/pkg-config
复制代码

./configuer --with-openssl
  1. checking if /usr /usr/local /usr/mysql /opt/mysql is a mysql_config script... no
  2. checking mysql_config availability in /usr/bin... yes
  3. checking for mysql_real_query... yes
  4. checking for mysql_real_escape_string... yes
  5. checking for make_scrambled_password_323... yes
  6. checking for pkg-config... /usr/bin/pkg-config
复制代码
但是关于Cyrus SASL 的这个问题 没有解决 
  1. checking if md5.h is derived from Cyrus SASL Version 1... no
  2. checking md5.h usability... no
  3. checking md5.h presence... no
  4. checking for md5.h... no
  5. checking if md5.h is Solaris's... no
  6. checking for md5.h... (cached) no
  7. checking for MD5Data... no
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表