Samba Cross-Compilation Problem

Richard Sharpe realrichardsharpe at gmail.com
Mon Feb 21 00:49:18 MST 2011


On Mon, Feb 21, 2011 at 2:27 AM, Hitesh Bajaj <hitesh_bajaj24 at yahoo.com> wrote:
>
> Thanks For Your Quick Reply.

Samba technical added back because the resolution of this issue may be
of some interest to people on that list.

> Error Comes During Make.
> Following Is The Error:
> libads/sasl_wrapping.c:222: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:222: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:227: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:227: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:227: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:231: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:232: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:234: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c: In function âads_saslwrap_ctrlâ:
> libads/sasl_wrapping.c:251: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c: In function âads_setup_sasl_wrappingâ:
> libads/sasl_wrapping.c:287: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:287: error: âLDAP_OPT_SOCKBUFâ undeclared (first use in this function)
> libads/sasl_wrapping.c:287: error: (Each undeclared identifier is reported only once
> libads/sasl_wrapping.c:287: error: for each function it appears in.)
> libads/sasl_wrapping.c:300: error: âADS_STRUCTâ has no member named âldapâ
> libads/sasl_wrapping.c:301: error: âADS_STRUCTâ has no member named âldapâ

Have you looked at the code?

I don't have the energy tonight (and it is nearly midnight) to pull
down the versions you are using but it looks like some #define is
going wrong and a little inspection of the code might allow you to
pinpoint this error. You will probably have to track it back to an
include file. It might be that you have not selected some switch at
configure time.

> The following command failed:
> arm_v5t_le-gcc -O -I. -I/home/hitesh/Sources/samba-3.5.6/source3 -I/home/hitesh/Sources/samba-3.5.6/source3/iniparser/src -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H  -I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/ -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/popt  -I/home/hitesh/Sources/samba-3.5.6/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3  -fPIE -c libads/sasl_wrapping.c -o libads/sasl_wrapping.o
> make: *** [libads/sasl_wrapping.o] Error 1
>
>
> Thanks
>
> --- On Sun, 20/2/11, Richard Sharpe <realrichardsharpe at gmail.com> wrote:
>
> From: Richard Sharpe <realrichardsharpe at gmail.com>
> Subject: Re: Samba Cross-Compilation Problem
> To: "Hitesh Bajaj" <hitesh_bajaj24 at yahoo.com>
> Cc: "samba-technical" <samba-technical at lists.samba.org>
> Date: Sunday, 20 February, 2011, 11:21 PM
>
> On Mon, Feb 21, 2011 at 1:25 AM, Hitesh Bajaj <hitesh_bajaj24 at 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 ldap
> >
> > Then I Switched To Version samba-3.4.10
> > Then I got the Same Error.
> > EnvironMent I Set Accroding Are:
> > 1) export CONFIG_SITE=/home/hitesh/Sources/config.site
> > 2) export PREFIX="arm_v5t_le"
> > 3) export CC="${PREFIX}-gcc"
> > 4) export LD="${PREFIX}-ld"
> > 5) export NM="${PREFIX}-nm -B"
> > 6) export AR="${PREFIX}-ar"
> > 7) export RANLIB="${PREFIX}-ranlib"
> > 8) 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.
>
> You may have wasted a lot of time on this problem, but it is open
> source software that you are dealing with. None of us are paid to
> solve your problems.
>
> When I cross compiled the code, I did not configure ADS support (I
> turned it off) and was working with 3.4.4 and 3.4.5 of Samba.
>
> It sounds like there is a problem with an include file.
>
> Did it fail when running configure or during the make? If during the
> make, what is the full error message.
>
> --
> Regards,
> Richard Sharpe
>



--
Regards,
Richard Sharpe


More information about the samba-technical mailing list