Snort mailing list archives

Re:Barnyard


From: "John Creegan" <jcreegan () questarweb com>
Date: Thu, 09 Oct 2003 11:30:58 -0500

Making no progress, but eliminating possibilities.  The error message I
get from configure is:
checking for mysql_real_connect in -lmysqlclient... no

**************************************************************
ERROR: unable to find mysqlclient library
checked in the following places
/usr/local/mysql/lib
**************************************************************

There are two mysql client libraries there, libmysqlclint.a and
libmysqlclient_r.a.  They are "ar" files.  When I look at the ar file
contents with "ar -t" I don't see either "mysql_connect" or
"mysql_real_connect".  When I do "ar -p | cat -v | more" and I found the
string "mysql_real_connect".

So now I'm even more confused.

Below is snipped output from the config.log file.  The log shows the
correct path to the file, and password.o is contained in the library. 
That's as far as I can go.

Anyone know why configure is bombing here?

<---snip --->
configure:6314: checking for mysql_real_connect in -lmysqlclient
configure:6345: gcc -o conftest -g -O2 -Wall -I/usr/local/mysql/include
 -DBSD_COMP -DENABLE_MYSQL  -lnsl -L/usr/local/mysql/lib conftest.c
-lmysqlclient  -lsocket  -lmysqlclient >&5
Undefined                       first referenced
 symbol                             in file
floor                              
/usr/local/mysql/lib/libmysqlclient.a(password.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6348: $? = 1
configure: failed program was:
| #line 6321 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "barnyard"
| #define VERSION "0.1.0"
| #define WORDS_BIGENDIAN 1
| #define SOLARIS 1
| #define WORDS_MUSTALIGN 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_SOCKIO_H 1
| #define HAVE_LIBSOCKET 1
| #define HAVE_SNPRINTF 1
| #define HAVE_STRLCPY 1
| #define HAVE_STRLCAT 1
| #define HAVE_STRERROR 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char mysql_real_connect ();
| int
| main ()
| {
| mysql_real_connect ();
|   ;
|   return 0;
| }
configure:6366: result: no

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=sparc-sun-solaris2.8
ac_cv_build_alias=sparc-sun-solaris2.8
ac_cv_c_bigendian=yes
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_func_snprintf=yes
ac_cv_func_strerror=yes
ac_cv_func_strlcat=yes
ac_cv_func_strlcpy=yes
ac_cv_header__usr_local_mysql_include_mysql_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_paths_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=no
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_sockio_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=sparc-sun-solaris2.8
ac_cv_host_alias=sparc-sun-solaris2.8
ac_cv_lib_mysqlclient_mysql_real_connect=no
ac_cv_lib_socket_socket=yes
ac_cv_objext=o
ac_cv_prog_AWK=nawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep=egrep
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=none
am_cv_prog_cc_stdc=
sn_cv_decl_needed_bcopy=no
sn_cv_decl_needed_bzero=no
sn_cv_decl_needed_fclose=no
sn_cv_decl_needed_fflush=no
sn_cv_decl_needed_fopen=no
sn_cv_decl_needed_fprintf=no
sn_cv_decl_needed_fputc=no
sn_cv_decl_needed_fputs=no
sn_cv_decl_needed_fwrite=no
sn_cv_decl_needed_getopt=no
sn_cv_decl_needed_memset=no
sn_cv_decl_needed_perror=no
sn_cv_decl_needed_printf=no
sn_cv_decl_needed_puts=no
sn_cv_decl_needed_sendto=no
sn_cv_decl_needed_snprintf=no
sn_cv_decl_needed_socket=no
sn_cv_decl_needed_strcasecmp=no
sn_cv_decl_needed_strerror=no
sn_cv_decl_needed_strncasecmp=no
sn_cv_decl_needed_strtol=no
sn_cv_decl_needed_strtoul=no
sn_cv_decl_needed_syslog=no
sn_cv_decl_needed_vsnprintf=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='aclocal-1.7'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='tar'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.7'
AWK='nawk'
CC='gcc'
CCDEPMODE='depmode=none'
CFLAGS='-g -O2 -Wall'
CPP='gcc -E'
CPPFLAGS='-I/usr/local/mysql/include  -DBSD_COMP -DENABLE_MYSQL'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='egrep'
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=' -lnsl -L/usr/local/mysql/lib'
LIBOBJS=''
LIBS='-lsocket  -lmysqlclient'
LTLIBOBJS=''
MAKEINFO='makeinfo'
OBJEXT='o'
PACKAGE='barnyard'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.1.0'
ac_ct_CC='gcc'
ac_ct_RANLIB='ranlib'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__include='include'
am__quote=''
bindir='${exec_prefix}/bin'
build='sparc-sun-solaris2.8'
build_alias=''
build_cpu='sparc'
build_os='solaris2.8'
build_vendor='sun'
datadir='${prefix}/share'
exec_prefix='NONE'
extra_incl=''
host='sparc-sun-solaris2.8'
host_alias=''
host_cpu='sparc'
host_os='solaris2.8'
host_vendor='sun'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/tmp/barnyard-0.1.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_INTTYPES_H 1
#define HAVE_LIBSOCKET 1
#define HAVE_MEMORY_H 1
#define HAVE_SNPRINTF 1
#define HAVE_STDLIB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRERROR 1
#define HAVE_STRINGS_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRING_H 1
#define HAVE_STRLCAT 1
#define HAVE_STRLCPY 1
#define HAVE_SYS_SOCKIO_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE "barnyard"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define SOLARIS 1
#define STDC_HEADERS 1
#define VERSION "0.1.0"
#define WORDS_BIGENDIAN 1
#define WORDS_MUSTALIGN 1

configure: exit 0


This message (including any attachments) contains confidential 
information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient,
you should delete this message and are hereby notified that any 
disclosure,copying, or distribution of this message, or the taking 
of any action based on it, is strictly prohibited.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: