Hi,

28.11.2007 17:48,, mevasquez wrote::
> When I run make everything is OK except I get an error compiling stored.   My
> configure options are:
>  CFLAGS="-g -Wall" \
>   ./configure \
>     --sbindir=/opt/bacula/bin \
>     --sysconfdir=/opt/bacula \
>     --with-scriptdir=/opt/bacula/scripts \
>     --with-pid-dir=/var/run \
>     --with-subsys-dir=/var/lock/subsys \
>     --enable-smartalloc \
>     --enable-gnome \
>     --enable-static-tools \

Try it without the above line.

>     --with-mysql \
>     --with-working-dir=/opt/bacula/working \
>     [EMAIL PROTECTED] \
>     [EMAIL PROTECTED] \
>     --with-smtp-host=localhost 
> 
> When I run make here are the errors.
> /usr/bin/g++ -static  -L../lib -L../cats -L../findlib -o bscan bscan.o
> block.o device.o dev.o label.o ansi_label.o dv d.o ebcdic.o lock.o
> autochanger.o acquire.o mount.o record.o match_bsr.o parse_bsr.o butil.o
> read_record.o scan.o res erve.o stored_conf.o spool.o wait.o \
>  -lsql -L/usr/lib/mysql -lmysqlclient_r -lz -lacl -lz -lfind -lbac -lm
> -lpthread
> ../lib/libbac.a(bsys.o)(.text+0x115d): In function `drop(char*, char*)':
> /opt/bacula-2.2.6/src/lib/bsys.c:694: warning: Using 'initgroups' in
> statically linked applications requires at runti me the shared libraries
> from the glibc version used for linking
> ../lib/libbac.a(guid_to_name.o)(.text+0x2ca): In function `get_gidname':
> /opt/bacula-2.2.6/src/lib/guid_to_name.c:122: warning: Using 'getgrgid' in
> statically linked applications requires at  runtime the shared libraries
> from the glibc version used for linking

The binaries will require sahred libraries anyway, so it's more or 
less useless to link in the other stuff statically.

> ../lib/libbac.a(bsys.o)(.text+0x10d3): In function `drop(char*, char*)':
> /opt/bacula-2.2.6/src/lib/bsys.c:687: warning: Using 'getgrnam' in
> statically linked applications requires at runtime  the shared libraries
> from the glibc version used for linking
> /usr/lib/mysql/libmysqlclient_r.a(mf_pack.o)(.text+0x41e): In function
> `unpack_dirname':
> : warning: Using 'getpwnam' in statically linked applications requires at
> runtime the shared libraries from the glibc  version used for linking
> /usr/lib/mysql/libmysqlclient_r.a(libmysql.o)(.text+0x89f): In function
> `read_user_name':
> : warning: Using 'getpwuid' in statically linked applications requires at
> runtime the shared libraries from the glibc  version used for linking
> /usr/lib/mysql/libmysqlclient_r.a(mf_pack.o)(.text+0x42e): In function
> `unpack_dirname':
> : warning: Using 'endpwent' in statically linked applications requires at
> runtime the shared libraries from the glibc  version used for linking
> ../lib/libbac.a(bnet.o)(.text+0x5d3): In function `resolv_host':
> /opt/bacula-2.2.6/src/lib/bnet.c:424: warning: Using 'gethostbyname2' in
> statically linked applications requires at r untime the shared libraries
> from the glibc version used for linking
> /usr/lib/mysql/libmysqlclient_r.a(my_gethostbyname.o)(.text+0x30): In
> function `my_gethostbyname_r':
> : warning: Using 'gethostbyname_r' in statically linked applications
> requires at runtime the shared libraries from th e glibc version used for
> linking
> /usr/lib/mysql/libmysqlclient_r.a(libmysql.o)(.text+0x97): In function
> `mysql_server_init':
> : warning: Using 'getservbyname' in statically linked applications requires
> at runtime the shared libraries from the glibc version used for linking
> /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x125f): In function
> `mysql_get_ssl_cipher':
> : undefined reference to `SSL_get_current_cipher'
> /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x17ac): In function
> `mysql_close_free_options'

The errors all seem to be related to SSL together with MySQL. It might 
help to add SSL to your configure call.

Other than that, just check that your MySQL, SSL, and the 
corresponding development packages are up to date - it's possible that 
you don't have some of the necessary libraries or library versions 
available.

...
>   ====== Error in /opt/bacula-2.2.6/src/stored ======
> 
> Any ideas as to why?  What am I missing.
> 
> I am using mysql version 5.0.48
> OS is CentOS 4.5
> glibc version is 2.3.4

If configuring with SSL doesn't help, try adding the SSL and SSL-devel 
packages to your system. I don't know what they are called, though.

Arno

> TIA 
> Mike
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to