Re: How to build Samba4 using static linked libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I did following steps and building failed.

Under dir: samba-4.0.0alpha17,
I did:  ./configure.developer;

Then type: make all;

I got following error:

If I use ./configure  under samba-4.0.0alpha17,  I could build source4/torture/smb2 using shared libraries.
Please note that there is no configure file under source4.

Thanks for help

Peixing

Waf: Entering directory `/mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17/bin'
bld.curdir /root/samba-4.0.0alpha17/lib/replace/../../buildtools/wafsamba is not a child of /mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17
/root/samba-4.0.0alpha17/wscript: error: Traceback (most recent call last):
  File "/mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17/buildtools/bin/.waf-1.5.19-99e3e36c10f9f8c669e9625176121647/wafadmin/Utils.py", line 474, in recurse
    exec(compile(txt,file_path,'exec'),dc)
  File "/root/samba-4.0.0alpha17/wscript_build", line 32, in ?
    bld.RECURSE('lib/replace')
  File "./buildtools/wafsamba/samba_utils.py", line 463, in RECURSE
    return ctx.add_subdirs(relpath)
  File "/mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17/buildtools/bin/.waf-1.5.19-99e3e36c10f9f8c669e9625176121647/wafadmin/Build.py", line 646, in add_subdirs
    self.recurse(dirs,'build')
  File "/mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17/buildtools/bin/.waf-1.5.19-99e3e36c10f9f8c669e9625176121647/wafadmin/Utils.py", line 461, in recurse
    f(self)
  File "/root/samba-4.0.0alpha17/lib/replace/wscript", line 398, in build
    bld.RECURSE('buildtools/wafsamba')
  File "./buildtools/wafsamba/samba_utils.py", line 463, in RECURSE
    return ctx.add_subdirs(relpath)
  File "/mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17/buildtools/bin/.waf-1.5.19-99e3e36c10f9f8c669e9625176121647/wafadmin/Build.py", line 646, in add_subdirs
    self.recurse(dirs,'build')
  File "/mnt/ip-dart-qa/Personal_Folders/sunp/samba-4.0.0alpha17/buildtools/bin/.waf-1.5.19-99e3e36c10f9f8c669e9625176121647/wafadmin/Utils.py", line 461, in recurse
    f(self)
  File "/root/samba-4.0.0alpha17/lib/replace/../../buildtools/wafsamba/wscript", line 404, in build
    raise Utils.WafError('''The top source directory has moved. Please run distclean and reconfigure''')
WafError: The top source directory has moved. Please run distclean and reconfigure


-----Original Message-----
From: samba-bounces@xxxxxxxxxxxxxxx [mailto:samba-bounces@xxxxxxxxxxxxxxx] On Behalf Of peixing.sun@xxxxxxx
Sent: Monday, May 07, 2012 6:22 PM
To: metze@xxxxxxxxx; Volker.Lendecke@xxxxxxxxx
Cc: samba@xxxxxxxxxxxxxxx; samba-technical@xxxxxxxxxxxxxxx
Subject: Re:  How to build Samba4 using static linked libraries

Thanks very much for answers from both Stefan and Volker.

The solutions from both of you are built for source3/torture/

I actually want to build the smbtorture using source code under source4/torture/smb2
I am trying the solutions you gave, but not sure if they apply to source4/torture/smb2.

Thanks a lot
Peixing


-----Original Message-----
From: Stefan (metze) Metzmacher [mailto:metze@xxxxxxxxx] 
Sent: Monday, May 07, 2012 3:48 PM
To: Sun, Peixing
Cc: samba-technical@xxxxxxxxxxxxxxx; samba@xxxxxxxxxxxxxxx
Subject: Re: How to build Samba4 using static linked libraries

Hi,

> I am building the  torture/smbtorture for    samba-4.0.0alpha17.  After build,  I am running the test in another environment.
> I not only need to copy the binary smbtorture,  I also need to copy the shared libraries.   This is HUGE inconvenient for us.
> 
> Could somebody tell me how to build the binary using static linked libraries?

Take a look at

https://gitweb.samba.org/?p=samba.git;a=blob;f=source3/Makefile-smbtorture4;

This should build a statically linked smbtorture4:

cd source3
./configure.developer
make bin/smbtorture4

metze

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Linux]     [Info Cyrus]     [LARTC]     [Bugtraq]     [Netfilter]     [Internet Dating Forums]     [RAID]     [Yosemite News]     [Photography]

Add to Google Powered by Linux