Re: [Samba] Samba Cross-Compilation Problem

2011-03-06 Thread Richard Sharpe
On Fri, Feb 18, 2011 at 8:44 AM, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:
 Hi,
 I want to cross-compile samba for arm-linux.
 I have host machine: Red Had Enterprise Edition 5.0 and I am not able to 
 cross compile it.
 I tried 3-4 Versions of samba but in vain.
 Can you guide me through compiling process.Which stable version of samba 
 should i use?Step by step cross compilation process.OR
 If you have binaries or package for samba which i can directly use  at my arm 
 machine.

Well, this worked for me with Samba 3.4.4 or thereabouts around March
2010 and later.

You would be better off to tell us:

1. What tool chain you are using?
2. What version of Samba you are trying to cross compile?
3. What specific problem you are seeing?

It really was a matter of simply making sure that the bin directory
for the tool chain was in my path, running configure with the correct
arg to select the tool chain and then running make.

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


Re: [Samba] Samba Cross-Compilation Problem

2011-02-21 Thread Michael Wood
On 21 February 2011 08:25, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:
 Hi
 Tool Chain: I am using montavista (mv_pro_5.0)tool chain.Samba Version: I 
 Used - samba-3.5.6.Error: error: ADS_STRUCT has no member named ldapThen I 
 Switched To Version samba-3.4.10Then I got the Same Error.
 EnvironMent I Set Accroding Are:
 1) export CONFIG_SITE=/home/hitesh/Sources/config.site2) export 
 PREFIX=arm_v5t_le3) export CC=${PREFIX}-gcc4) export LD=${PREFIX}-ld5) 
 export NM=${PREFIX}-nm -B6) export AR=${PREFIX}-ar7) export 
 RANLIB=${PREFIX}-ranlib8) export LN_S=ln -s
 9) export 
 PKG_CONFIG_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib/pkgconfig

 10)export 
 LD_LIBRARY_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/11)export
  LDFLAGS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/12)export 
 CPPFLAGS=-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/13) 
 export LIBS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/lib 
 -L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib

 Then I Configured Samba As:
 ./configure --host=i686 --target=arm-linux 
 --prefix=/home/hitesh/samba/samba-05

I believe this is wrong and should rather be something like:

./configure --host=arm-linux --prefix=/home/hitesh/samba/samba-05

--target only makes sense for a something like a compiler.  i.e. it
should probably not appear in Samba's ./configure --help output.
--host is where you want to run whatever it is you're building.
--build is where you're building it, so you could put something like
i686-linux there if you like, but it should not be necessary.

So, try with just --host=arm-linux.

You might need more than the above to solve your problem, though.

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Cross-Compilation Problem

2011-02-20 Thread Hitesh Bajaj
Hi
Tool Chain: I am using montavista (mv_pro_5.0)tool chain.Samba Version: I Used 
- samba-3.5.6.Error: error: ADS_STRUCT has no member named ldapThen I Switched 
To Version samba-3.4.10Then I got the Same Error.
EnvironMent I Set Accroding Are:
1) export CONFIG_SITE=/home/hitesh/Sources/config.site2) export 
PREFIX=arm_v5t_le3) export CC=${PREFIX}-gcc4) export LD=${PREFIX}-ld5) 
export NM=${PREFIX}-nm -B6) export AR=${PREFIX}-ar7) export 
RANLIB=${PREFIX}-ranlib8) export LN_S=ln -s
9) export 
PKG_CONFIG_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib/pkgconfig

10)export 
LD_LIBRARY_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/11)export 
LDFLAGS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/12)export 
CPPFLAGS=-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/13) export 
LIBS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/lib 
-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib

Then I Configured Samba As:
./configure --host=i686 --target=arm-linux --prefix=/home/hitesh/samba/samba-05 
I have already wasted lot of time in this.
Help Will Be Highly Appreciated.
Thanks



--- On Sun, 20/2/11, Richard Sharpe realrichardsha...@gmail.com wrote:

From: Richard Sharpe realrichardsha...@gmail.com
Subject: Re: Samba Cross-Compilation Problem
To: Hitesh Bajaj hitesh_baja...@yahoo.com
Cc: samba-techni...@lists.samba.org, Samba Listing samba@lists.samba.org
Date: Sunday, 20 February, 2011, 7:36 AM

On Fri, Feb 18, 2011 at 8:44 AM, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:
 Hi,
 I want to cross-compile samba for arm-linux.
 I have host machine: Red Had Enterprise Edition 5.0 and I am not able to 
 cross compile it.
 I tried 3-4 Versions of samba but in vain.
 Can you guide me through compiling process.Which stable version of samba 
 should i use?Step by step cross compilation process.OR
 If you have binaries or package for samba which i can directly use  at my arm 
 machine.

Well, this worked for me with Samba 3.4.4 or thereabouts around March
2010 and later.

You would be better off to tell us:

1. What tool chain you are using?
2. What version of Samba you are trying to cross compile?
3. What specific problem you are seeing?

It really was a matter of simply making sure that the bin directory
for the tool chain was in my path, running configure with the correct
arg to select the tool chain and then running make.

-- 
Regards,
Richard Sharpe


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


[Samba] Samba Cross-Compilation Problem-1

2011-02-20 Thread Hitesh Bajaj
And When I Used Other Version
Version:3.0.27pre1-SVN-build-25068
I Got The Following Error While Configuring.
checking GNU ld release date... 20061020checking whether arm_v5t_le-gcc and cc 
understand -c and -o together... yeschecking that the C compiler understands 
-Werror... crosschecking that the C compiler understands -w2... crosschecking 
that the C compiler understands volatile... yeschecking that the C compiler 
understands negative enum values... configure: error: cannot run test program 
while cross compilingSee `config.log' for more details.




--- On Sun, 20/2/11, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:

From: Hitesh Bajaj hitesh_baja...@yahoo.com
Subject: Re: [Samba] Samba Cross-Compilation Problem
To: Richard Sharpe realrichardsha...@gmail.com, Samba Listing 
samba@lists.samba.org
Date: Sunday, 20 February, 2011, 10:25 PM

Hi
Tool Chain: I am using montavista (mv_pro_5.0)tool chain.Samba Version: I Used 
- samba-3.5.6.Error: error: ADS_STRUCT has no member named ldapThen I Switched 
To Version samba-3.4.10Then I got the Same Error.
EnvironMent I Set Accroding Are:
1) export CONFIG_SITE=/home/hitesh/Sources/config.site2) export 
PREFIX=arm_v5t_le3) export CC=${PREFIX}-gcc4) export LD=${PREFIX}-ld5) 
export NM=${PREFIX}-nm -B6) export AR=${PREFIX}-ar7) export 
RANLIB=${PREFIX}-ranlib8) export LN_S=ln -s
9) export 
PKG_CONFIG_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib/pkgconfig

10)export 
LD_LIBRARY_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/11)export 
LDFLAGS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/12)export 
CPPFLAGS=-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/13) export 
LIBS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/lib 
-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib

Then I Configured Samba As:
./configure --host=i686 --target=arm-linux --prefix=/home/hitesh/samba/samba-05 
I have already wasted lot of time in this.
Help Will Be Highly Appreciated.
Thanks



--- On Sun, 20/2/11, Richard Sharpe realrichardsha...@gmail.com wrote:

From: Richard Sharpe realrichardsha...@gmail.com
Subject: Re: Samba Cross-Compilation Problem
To: Hitesh Bajaj hitesh_baja...@yahoo.com
Cc: samba-techni...@lists.samba.org, Samba Listing samba@lists.samba.org
Date: Sunday, 20 February, 2011, 7:36 AM

On Fri, Feb 18, 2011 at 8:44 AM, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:
 Hi,
 I want to cross-compile samba for arm-linux.
 I have host machine: Red Had Enterprise Edition 5.0 and I am not able to 
 cross compile it.
 I tried 3-4 Versions of samba but in vain.
 Can you guide me through compiling process.Which stable version of samba 
 should i use?Step by step cross compilation process.OR
 If you have binaries or package for samba which i can directly use  at my arm 
 machine.

Well, this worked for me with Samba 3.4.4 or thereabouts around March
2010 and later.

You would be better off to tell us:

1. What tool chain you are using?
2. What version of Samba you are trying to cross compile?
3. What specific problem you are seeing?

It really was a matter of simply making sure that the bin directory
for the tool chain was in my path, running configure with the correct
arg to select the tool chain and then running make.

-- 
Regards,
Richard Sharpe


-- 
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


[Samba] Samba Cross-Compilation Problem

2011-02-18 Thread Hitesh Bajaj
Hi,
I want to cross-compile samba for arm-linux.
I have host machine: Red Had Enterprise Edition 5.0 and I am not able to cross 
compile it.
I tried 3-4 Versions of samba but in vain.
Can you guide me through compiling process.Which stable version of samba should 
i use?Step by step cross compilation process.OR
If you have binaries or package for samba which i can directly use  at my arm 
machine.

Any Help Will Be Appreciated.
Regards,Hitesh

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


[Samba] cross compilation

2004-10-11 Thread Siders, Keith
Is this the correct list for cross compilation questions? Need to compile on x86 for 
MIPS target.

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