Same error in configure with in 7.0.X branch.

J.

2015-08-18 12:59 GMT+02:00 Wanderlei Huttel <wanderleihut...@gmail.com>:

> Good Morning
>
> Strange that I have updated my bacula version 7.0.5 to 7.2.0 and I reached
> to compile normally without any errors.
> Using the firts release of sourceforge
>
> Wanderlei
>
>
> 2015-08-18 4:42 GMT-03:00 Kern Sibbald <k...@sibbald.com>:
>
>> On 17.08.2015 23:01, Francisco Javier Funes Nieto wrote:
>>
>> Hi All,
>>
>> Today I come back from holidays and try the fresh new release of our
>> favourite Backup Solution.
>>
>> A Debian 8 VM amd 64 minimal system as base, Bacula 7.2.0 from source.
>>
>> Configure:
>>
>> ./configure --prefix=/usr --sbindir=/usr/sbin --sysconfdir=/etc/bacula
>> --with-scriptdir=/etc/bacula --enable-smartalloc --enable-conio
>> --with-postgresql --with-openssl --with-dir-user=bacula
>> --with-dir-group=bacula --with-sd-user=bacula --with-sd-group=bacula
>> --with-fd-user=root --with-fd-group=bacula
>> --with-working-dir=/var/lib/bacula --with-pid-dir=/var/run
>> --with-subsys-dir=/var/run/subsys --with-lzo=/lib/x86_64-linux-gnu
>> --with-systemd
>>
>>
>>
>> Configuration on Mon Aug 17 21:38:34 CEST 2015:
>>
>>    Host:                     x86_64-unknown-linux-gnu -- debian 8.1
>>    Bacula version:           Bacula 7.2.0 (14 August 2015)
>>    Source code location:     .
>>    Install binaries:         /usr/sbin
>>    Install libraries:        /usr/lib
>>    Install config files:     /etc/bacula
>>    Scripts directory:        /etc/bacula
>>    Archive directory:        /tmp
>>    Working directory:        /var/lib/bacula
>>    PID directory:            /var/run
>>    Subsys directory:         /var/run/subsys
>>    Man directory:            ${datarootdir}/man
>>    Data directory:           /usr/share
>>    Plugin directory:         /usr/lib
>>    C Compiler:               gcc 4.9.2-10)
>>    C++ Compiler:             /usr/bin/g++ 4.9.2-10)
>>    Compiler flags:            -g -O2 -Wall -fno-strict-aliasing
>> -fno-exceptions -fno-rtti
>>    Linker flags:
>>    Libraries:                -lpthread -ldl -ldl
>>    Statically Linked Tools:  no
>>    Statically Linked FD:     no
>>    Statically Linked SD:     no
>>    Statically Linked DIR:    no
>>    Statically Linked CONS:   no
>>    Database backends:        PostgreSQL
>>    Database port:
>>    Database name:            bacula
>>    Database user:            bacula
>>
>>    Job Output Email:         root@localhost
>>    Traceback Email:          root@localhost
>>    SMTP Host Address:        localhost
>>
>>    Director Port:            9101
>>    File daemon Port:         9102
>>    Storage daemon Port:      9103
>>
>>    Director User:            bacula
>>    Director Group:           bacula
>>    Storage Daemon User:      bacula
>>    Storage DaemonGroup:      bacula
>>    File Daemon User:         root
>>    File Daemon Group:        bacula
>>
>>    Large file support:       yes
>>    Bacula conio support:     yes -ltinfo
>>    readline support:         no
>>    TCP Wrappers support:     no
>>    TLS support:              yes
>>    Encryption support:       yes
>>    ZLIB support:             yes
>>    LZO support:              yes
>>    enable-smartalloc:        yes
>>    enable-lockmgr:           no
>>    bat support:              no
>>    client-only:              no
>>    build-dird:               yes
>>    build-stored:             yes
>>    Plugin support:           yes
>>    AFS support:              no
>>    ACL support:              no
>>    XATTR support:            yes
>>    systemd support:          yes /run/systemd/system
>>    Batch insert enabled:     PostgreSQL
>>
>>
>>
>> LZO support: yes
>>
>> When I try make:
>>
>> Linking bacula-fd ...
>> /usr/src/bacula-7.2.0/libtool --silent --tag=CXX --mode=link /usr/bin/g++
>>   -L../lib -L../findlib -o bacula-fd filed.o authenticate.o acl.o backup.o
>> crypto.o estimate.o fd_plugins.o accurate.o filed_conf.o heartbeat.o
>> hello.o job.o fd_snapshot.o restore.o status.o verify.o verify_vol.o
>> xattr.o \
>>    -lz -lbacfind -lbaccfg -lbac -lm -lpthread -ldl -ldl  \
>>      -lssl -lcrypto   -lzo2
>> /usr/bin/ld: cannot find -lzo2
>> collect2: error: ld returned 1 exit status
>> Makefile:168: recipe for target 'bacula-fd' failed
>> make[1]: *** [bacula-fd] Error 1
>> make[1]: Leaving directory '/usr/src/bacula-7.2.0/src/filed'
>>
>>
>>   ====== Error in /usr/src/bacula-7.2.0/src/filed ======
>>
>>
>> Makefile:148: recipe for target 'all' failed
>> make: *** [all] Error 1
>>
>>
>> I suspect that this "-lzo2" may be incorrect (I expect "-llzo2").
>>
>> I move into configure file  line 29420:
>>
>> $as_echo "#define HAVE_LZO 1" >>confdefs.h
>>
>>                     LZO_LIBS="${LZO_LDFLAGS} -lzo2"
>>                     have_lzo="yes"
>>
>> else
>>
>>
>> If I correct from "-lzo2" to "-llzo2" the make finish ok.
>>
>> Maybe a typo error in configure file?
>>
>>
>> Yes, I am sure you are right.  I have made the change and pushed the
>> updated version to the git repository.
>>
>> Best regards,
>> Kern
>>
>>
>> Can you test this ?
>>
>> Thanks!
>>
>> Javier
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> _____________________________________________
>>
>> Francisco Javier Funes Nieto [esen...@gmail.com]
>> CANONIGOS
>> Servicios Informáticos para PYMES.
>> Cl. Cruz 2, 1º Oficina 7
>> Tlf: 958.536759 / 661134556
>> Fax: 958.521354
>> GRANADA - 18002
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> Bacula-users mailing 
>> listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>


-- 
_____________________________________________

Francisco Javier Funes Nieto [esen...@gmail.com]
CANONIGOS
Servicios Informáticos para PYMES.
Cl. Cruz 2, 1º Oficina 7
Tlf: 958.536759 / 661134556
Fax: 958.521354
GRANADA - 18002
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to