[Bacula-users] static bacula-fd for FreeBSD disaster recovery

2010-01-14 Thread G VM

Hi all,

I am trying to build a static binary of bacula-fd.

I found this thread:
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33494.html
http://sourceforge.net/mailarchive/message.php?msg_name=3838017D92B3C445BA200CE3B6A821A40A7482%40cetus.dawnsign.com

I followed the instructions found there.
I tried the way with putting the configure arguments in /etc/make.conf
and with putting --enable-static-fd to the .configure line.
Also with make static-bacula-fd
I am using a fresh install of FreeBSD 7.2-RELEASE

I see that configure is using this option.

If I look in src/filed, I find a static-bacula-fd.
However when I look at the linked libraries I see the same list as
bacula-fd.
Not 2 or 3 linked libraries.
The version in ports is 3.x.x.

Does anyone has the same experience?

work/bacula-3.0.0/src/filed/static-bacula-fd:
libz.so.4 => /lib/libz.so.4 (0x2809b000)
libbacfind.so.1 => /usr/local/lib/libbacfind.so.1 (0x280ad000)
libbacpy.so.1 => /usr/local/lib/libbacpy.so.1 (0x280b9000)
libbaccfg.so.1 => /usr/local/lib/libbaccfg.so.1 (0x280bb000)
libbac.so.1 => /usr/local/lib/libbac.so.1 (0x280c2000)
libthr.so.3 => /lib/libthr.so.3 (0x28112000)
libwrap.so.5 => /usr/lib/libwrap.so.5 (0x28127000)
libssl.so.5 => /usr/lib/libssl.so.5 (0x2812e000)
libcrypto.so.5 => /lib/libcrypto.so.5 (0x2816f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x282c8000)
libm.so.5 => /lib/libm.so.5 (0x283bd000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x283d2000)
libc.so.7 => /lib/libc.so.7 (0x283dd000)

Can anyone help me out?

thanks in advance

  --
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] static bacula-fd for FreeBSD disaster recovery

2010-01-13 Thread G VM

Martin Simmons wrote:
>> On Wed, 13 Jan 2010 15:01:28 +0100, G VM said:
>> 
>> I have put this in /etc/make.conf:.
>> if $(.CURDIR:M*/sysutils/bacula-client) || \
>>   $(.CURDIR:M*/sysutils/bacula-client)
>> CONFIGURE_ARGS+=--disable-libtool
>> .endif
>>
>> When doing:
>> make config
>> I selected SFDAEMON.
>> After compilation I got a static-bacula-fd of about 2MB.
>> when I do:
>> ldd static-bacula-fd
>> ldd: static-bacula-fd: not a dynamic ELF executable
>> I expected to see a few libraries.
>> Are there absolutely no libraries needed now?
>> Or is something wrong here?
>> 
>
> That is the definition of static -- libc etc are built into it, so there are
> no libraries needed.  It is like /sbin/init and the files in /rescue.
>
> This command should show that it is statically linked:
>
> file static-bacula-fd
>
> __Martin
>
> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>   
file static-bacula-fd
static-bacula-fd: ELF 32-bit LSB executable, Intel 80386, version 1
(FreeBSD), for FreeBSD 7.2, statically linked, FreeBSD-style, stripped

In the wiki (for 2.x.x) there was a list with a few libraries in the ldd
output and this confused me. Seems ok.

Thanks alot!

  --
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] static bacula-fd for FreeBSD disaster recovery

2010-01-13 Thread Martin Simmons
> On Wed, 13 Jan 2010 15:01:28 +0100, G VM said:
> 
> I have put this in /etc/make.conf:.
> if $(.CURDIR:M*/sysutils/bacula-client) || \
>   $(.CURDIR:M*/sysutils/bacula-client)
> CONFIGURE_ARGS+=--disable-libtool
> .endif
> 
> When doing:
> make config
> I selected SFDAEMON.
> After compilation I got a static-bacula-fd of about 2MB.
> when I do:
> ldd static-bacula-fd
> ldd: static-bacula-fd: not a dynamic ELF executable
> I expected to see a few libraries.
> Are there absolutely no libraries needed now?
> Or is something wrong here?

That is the definition of static -- libc etc are built into it, so there are
no libraries needed.  It is like /sbin/init and the files in /rescue.

This command should show that it is statically linked:

file static-bacula-fd

__Martin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] static bacula-fd for FreeBSD disaster recovery

2010-01-13 Thread G VM

Martin Simmons wrote:
>> On Sat, 9 Jan 2010 19:46:20 +0100, G VM said:
>> 
>> Hi all,
>>
>> I am trying to build a static binary of bacula-fd.
>>
>> I found this thread:
>> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33494.html
>> http://sourceforge.net/mailarchive/message.php?msg_name=3838017D92B3C445BA200CE3B6A821A40A7482%40cetus.dawnsign.com
>>
>> I followed the instructions found there.
>> I tried the way with putting the configure arguments in /etc/make.conf
>> and with putting --enable-static-fd to the .configure line.
>> Also with make static-bacula-fd
>> I am using a fresh install of FreeBSD 7.2-RELEASE
>>
>> I see that configure is using this option.
>>
>> If I look in src/filed, I find a static-bacula-fd.
>> However when I look at the linked libraries I see the same list as
>> bacula-fd.
>> Not 2 or 3 linked libraries.
>> The version in ports is 3.x.x.
>>
>> Does anyone has the same experience?
>> 
>
> You need to configure with --disable-libtool to build static with 3.x.x.
>
> __Martin
>
> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>   
I have put this in /etc/make.conf:.
if $(.CURDIR:M*/sysutils/bacula-client) || \
  $(.CURDIR:M*/sysutils/bacula-client)
CONFIGURE_ARGS+=--disable-libtool
.endif

When doing:
make config
I selected SFDAEMON.
After compilation I got a static-bacula-fd of about 2MB.
when I do:
ldd static-bacula-fd
ldd: static-bacula-fd: not a dynamic ELF executable
I expected to see a few libraries.
Are there absolutely no libraries needed now?
Or is something wrong here?

Thanks for pointing that out Martin. It is not in the wiki. I will
update it.

  --
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] static bacula-fd for FreeBSD disaster recovery

2010-01-12 Thread Martin Simmons
> On Sat, 9 Jan 2010 19:46:20 +0100, G VM said:
> 
> Hi all,
> 
> I am trying to build a static binary of bacula-fd.
> 
> I found this thread:
> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33494.html
> http://sourceforge.net/mailarchive/message.php?msg_name=3838017D92B3C445BA200CE3B6A821A40A7482%40cetus.dawnsign.com
> 
> I followed the instructions found there.
> I tried the way with putting the configure arguments in /etc/make.conf
> and with putting --enable-static-fd to the .configure line.
> Also with make static-bacula-fd
> I am using a fresh install of FreeBSD 7.2-RELEASE
> 
> I see that configure is using this option.
> 
> If I look in src/filed, I find a static-bacula-fd.
> However when I look at the linked libraries I see the same list as
> bacula-fd.
> Not 2 or 3 linked libraries.
> The version in ports is 3.x.x.
> 
> Does anyone has the same experience?

You need to configure with --disable-libtool to build static with 3.x.x.

__Martin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] static bacula-fd for FreeBSD disaster recovery

2010-01-09 Thread G VM

Hi all,

I am trying to build a static binary of bacula-fd.

I found this thread:
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33494.html
http://sourceforge.net/mailarchive/message.php?msg_name=3838017D92B3C445BA200CE3B6A821A40A7482%40cetus.dawnsign.com

I followed the instructions found there.
I tried the way with putting the configure arguments in /etc/make.conf
and with putting --enable-static-fd to the .configure line.
Also with make static-bacula-fd
I am using a fresh install of FreeBSD 7.2-RELEASE

I see that configure is using this option.

If I look in src/filed, I find a static-bacula-fd.
However when I look at the linked libraries I see the same list as
bacula-fd.
Not 2 or 3 linked libraries.
The version in ports is 3.x.x.

Does anyone has the same experience?

work/bacula-3.0.0/src/filed/static-bacula-fd:
libz.so.4 => /lib/libz.so.4 (0x2809b000)
libbacfind.so.1 => /usr/local/lib/libbacfind.so.1 (0x280ad000)
libbacpy.so.1 => /usr/local/lib/libbacpy.so.1 (0x280b9000)
libbaccfg.so.1 => /usr/local/lib/libbaccfg.so.1 (0x280bb000)
libbac.so.1 => /usr/local/lib/libbac.so.1 (0x280c2000)
libthr.so.3 => /lib/libthr.so.3 (0x28112000)
libwrap.so.5 => /usr/lib/libwrap.so.5 (0x28127000)
libssl.so.5 => /usr/lib/libssl.so.5 (0x2812e000)
libcrypto.so.5 => /lib/libcrypto.so.5 (0x2816f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x282c8000)
libm.so.5 => /lib/libm.so.5 (0x283bd000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x283d2000)
libc.so.7 => /lib/libc.so.7 (0x283dd000)

Can anyone help me out?

thanks in advance



  --
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users