Hi

How and where do you report bugs?

Preamble: I have had a problem with amanda getting errors "no backup line ..." 
(with vaious versions of amanda 3.X.
So I am slowly upgrading, then running a backup, checking if all good getting 
the next one.

While compiling 3.4 I have got an error unrelated to the real error that was a 
missing package!

The missing package simply was libcurl-devel.x86_64 but the error report was an 
SSL library error (see below).
So this could be checked during config to check that lib-curl development is 
installed to prevent this.


I configure like this:
~~~~~~~~~~~~~~~~~~~~~~
./configure --with-user=amanda --with-group=disk --without-server 
--localstatedir=/var/lib --with-bsdtcp-security 
--with-security-file=/usr/local/etc/amanda/amanda-security.conf

with the last line of configure output:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiler Flags:
  CFLAGS: -g -O2 -fno-strict-aliasing   
  CPPFLAGS:  -fno-strict-aliasing -D_GNU_SOURCE   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  
  LDFLAGS:  
  LIBS: -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lgobject-2.0 
-lgthread-2.0 -lrt -lglib-2.0   -lnsl -lresolv     -lcrypto 
Amanda Components: client amrecover ndmp (no server) (no restore)
Amanda Devices: file null rait tape dvdrw ndmp (no S3)
Working IPv6: yes
Build documentation: no
Directories:
  Application: /usr/local/libexec/amanda/application
  Configuration: /usr/local/etc/amanda
  GNU Tar lists: /var/lib/amanda/gnutar-lists
  Perl modules (amperldir): /usr/local/share/perl5
  Template and example data files (amdatadir): /usr/local/share/amanda
  Temporary: /tmp/amanda
WARNINGS:
  Not building 'amplot', because gnuplot was not found

then running make:
~~~~~~~~~~~~~~~~~~
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wparentheses 
-Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes 
-Wmissing-declarations -Wformat -Wformat-security -Wsign-compare -Wfloat-equal 
-Wold-style-definition -Wno-strict-aliasing -Wno-unknown-pragmas 
-DAMANDA_FILE=\"`basename amflock-test.o`\" -g -O2 -fno-strict-aliasing       
-o amflock-test amflock-test.o libamanda.la libtestutils.la -lm 
-Wl,--export-dynamic -pthread -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt 
-lglib-2.0   -lnsl -lresolv     -lcrypto 
libtool: link: gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement 
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat 
-Wformat-security -Wsign-compare -Wfloat-equal -Wold-style-definition 
-Wno-strict-aliasing -Wno-unknown-pragmas -DAMANDA_FILE=\"amflock-test.o\" -g 
-O2 -fno-strict-aliasing -o .libs/amflock-test amflock-test.o 
-Wl,--export-dynamic -pthread  ./.libs/libamanda.so ./.libs/libtestutils.a -lm 
-lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lnsl -lresolv 
-lcrypto -pthread -Wl,-rpath -Wl,/usr/local/lib/amanda
./.libs/libamanda.so: undefined reference to `SSL_connect'
./.libs/libamanda.so: undefined reference to `SSL_CTX_set_verify'
.....
.....
./.libs/libamanda.so: undefined reference to `SSL_accept'
./.libs/libamanda.so: undefined reference to `SSL_CTX_ctrl'
collect2: ld returned 1 exit status
make[3]: *** [amflock-test] Error 1
make[3]: Leaving directory `/src/amanda-3.4/common-src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/src/amanda-3.4/common-src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/amanda-3.4'
make: *** [all] Error 2

Trying to find the error:
~~~~~~~~~~~~~~~~~~~~~~~~~
  yum list installed | grep ssl

  mod_ssl.x86_64         1:2.2.15-60.el6.centos.5
  openssl.x86_64         1.0.1e-57.el6    @base                                 
  
  openssl-devel.x86_64   1.0.1e-57.el6    @base                                 
  
  openssl098e.x86_64     0.9.8e-20.el6.centos.1

nothing wrong here!
I found this

   https://github.com/vitalif/grive2/issues/100


and that gave me the hint to check libcurl:

  yum list installed | grep curl

  compat-libcurl3.x86_64 7.15.5-3.el5.remi
  curl.x86_64            7.19.7-53.el6_9  @updates                              
  
  libcurl.x86_64         7.19.7-53.el6_9  @updates                              
  
  python-pycurl.x86_64   7.19.0-9.el6     @base          


Sure enough - MISSING.
Installing it fixed the error an let me compile it.


Jobst




-- 
If love is blind, why is lingerie so popular?

  | |0| |   Jobst Schmalenbach, General Manager
  | | |0|   Barrett & Sales Essentials
  |0|0|0|   +61 3 9533 0000, POBox 277, Caulfield South, 3162, Australia

Reply via email to