Re: [Samba] Samba v2.2.12 NTLM versions? - Samba

This is a discussion on Re: [Samba] Samba v2.2.12 NTLM versions? - Samba ; >> It then fails the c compiler with: >> c99 structure initializer are not supported > >Ok. We make use of those for example at the bottom of >librpc/gen_ndr/ndr_wkssvc.c. It is pretty straightforward to >convert those to non-named initializers and ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Re: [Samba] Samba v2.2.12 NTLM versions?

  1. Re: [Samba] Samba v2.2.12 NTLM versions?



    >> It then fails the c compiler with:
    >> c99 structure initializer are not supported

    >
    >Ok. We make use of those for example at the bottom of
    >librpc/gen_ndr/ndr_wkssvc.c. It is pretty straightforward to
    >convert those to non-named initializers and remove the
    >configure check. If that is the only thing your compiler can
    >not do, this is boring but definitely easier than getting
    >2.2 up to speed with current Windows versions.

    Ok, I'll start compiling, and see what falls over.
    >> Any suggestions on;
    >> 1. getting configure to find grep, awk, nawk, etc.

    >
    >I'm not aware that we actually depend on those.

    Needed to patch Makefile to set "AWK=nawk"

    >If you have autotools around, you might want to comment out...

    No such luck. So I went for it. The following is the result. As you can
    see it didn't get very far, and I don't understand why. For some reason,
    Make complains that I haven't run configure, and also complains about
    "hostname: not found". Then it completely dies trying to compile
    dynconfig.h. I've looked at most of these errors & warnings, and can't
    find a single thing wrong with the source code at the lines mentioned.
    It looks like there is still some configuration stuff missing, but I
    don't know what. Here's the compiler output. Any suggestions, 'cos this
    is looking pretty hopeless to me, as I haven't even got to the c99
    initialiser errors yet?! phil.
    ------------------------------------------------------------------------
    ---------------------------------------------------------------------
    4980-laiptc6:/home/laiptc6/samba-3.0.28a/source>make
    Using FLAGS = -O -D_SAMBA_BUILD_=3
    -I/home/laiptc6/samba-3.0.28a/source/popt
    -I/home/laiptc6/samba-3.0.28a/source/iniparser/src -Iinclude -I./include
    -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns
    -I./librpc -DHAVE_CONFIG_H -I/home/laiptc6/samba-3.0.28a/source/lib
    -D_SAMBA_BUILD_=3
    PICFLAG = -fPIE
    LIBS = -lresolv -lnsl
    LDFLAGS = -pie
    DYNEXP =
    LDSHFLAGS = shared-libraries-disabled
    SHLIBEXT = shared_libraries_disabled
    SONAMEFLAG = shared-libraries-disabled
    Building include/proto.h
    creating /home/laiptc6/samba-3.0.28a/source/include/proto.h
    Building include/build_env.h
    UX:sh (build_env.sh): ERROR: hostname: not found
    creating /home/laiptc6/samba-3.0.28a/source/nsswitch/winbindd_proto.h
    creating /home/laiptc6/samba-3.0.28a/source/web/swat_proto.h
    creating /home/laiptc6/samba-3.0.28a/source/client/client_proto.h
    creating /home/laiptc6/samba-3.0.28a/source/utils/net_proto.h
    creating /home/laiptc6/samba-3.0.28a/source/utils/ntlm_auth_proto.h
    WARNING: you need to run ./configure
    WARNING: you need to run ./config.status
    Compiling dynconfig.c
    NCR High Performance C Compiler R3.0c
    (c) Copyright 1994-98, NCR Corporation
    (c) Copyright 1987-98, MetaWare Incorporated
    E "/usr/include/arpa/inet.h",L66/C19(#164): in_addr_t
    | Symbol declaration is inconsistent with a previous declaration
    | at "/usr/include/netinet/in.h",L40/C27.
    E "/usr/include/arpa/inet.h",L67/C19(#164): in_port_t
    | Symbol declaration is inconsistent with a previous declaration
    | at "/usr/include/netinet/in.h",L39/C28.
    E "/usr/include/arpa/inet.h",L68/C1(#164): in_addr_t
    | Symbol declaration is inconsistent with a previous declaration
    | at "/usr/include/netinet/in.h",L40/C27.
    E "/usr/include/arpa/inet.h",L69/C1(#164): in_port_t
    | Symbol declaration is inconsistent with a previous declaration
    | at "/usr/include/netinet/in.h",L39/C28.
    w "/usr/include/sys/bitypes.h",L82/C1(#31): Identifier missing in
    declaration.
    E "/usr/include/sys/bitypes.h",L87/C16(#95): short: short is superfluous
    here.
    w "/usr/include/sys/bitypes.h",L87/C1(#31): Identifier missing in
    declaration. E "/usr/include/sys/bitypes.h",L88/C15: (syntactic)
    unexpected symbol:'char'
    REPAIR: ';' was inserted before
    'char'@"/usr/include/sys/bitypes.h",L88/C15 E
    "/usr/include/rpc/auth.h",L80/C11: (syntactic) unexpected
    symbol:'':high
    REPAIR: No_specifiers@"/usr/include/rpc/auth.h",L80/C3
    through ';'@"/usr/include/rpc/auth.h",L80/C15
    was replaced with '#pragma'
    w (#657): (info) How referenced files were included:
    | File /usr/include/netinet/in.h from ./lib/replace/system/network.h
    from include/includes.h from
    /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
    | File /usr/include/arpa/inet.h from ./lib/replace/system/network.h from
    include/includes.h from /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
    | File /usr/include/sys/bitypes.h from /usr/include/netdb.h from
    ../lib/replace/system/network.h from include/includes.h from
    /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
    | File /usr/include/rpc/auth.h from /usr/include/rpc/rpc.h from
    include/includes.h from /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
    7 user errors 3 warnings
    The following command failed:
    cc -Xc -D__EXTENSIONS__ -O -D_SAMBA_BUILD_=3
    -I/home/laiptc6/samba-3.0.28a/source/popt
    -I/home/laiptc6/samba-3.0.28a/source/iniparser/src -Iinclude -I./include
    -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns
    -I./librpc -DHAVE_CONFIG_H -I/home/laiptc6/samba-3.0.28a/source/lib
    -D_SAMBA_BUILD_=3 -DCONFIGFILE="/usr/local/samba/lib/smb.conf"
    -DSBINDIR="/usr/local/samba/sbin" -DBINDIR="/usr/local/samba/bin"
    -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
    -DSWATDIR="/usr/local/samba/swat" -DLOCKDIR="/usr/local/samba/var/locks"
    -DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib"
    -DLOGFILEBASE="/usr/local/samba/var"
    -DSHLIBEXT="shared_libraries_disabled"
    -DCONFIGDIR="/usr/local/samba/lib"
    -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
    -DPRIVATE_DIR="/usr/local/samba/private" -fPIE -c
    /home/laiptc6/samba-3.0.28a/source/dynconfig.c -o dynconfig.o
    *** Error code 7 (bu21) make: fatal error.
    4980-laiptc6:/home/laiptc6/samba-3.0.28a/source>


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


  2. Re: [Samba] Samba v2.2.12 NTLM versions?

    On Sun, Jul 13, 2008 at 03:41:36PM -0400, Horder, Philip wrote:
    > >I'm not aware that we actually depend on those.

    > Needed to patch Makefile to set "AWK=nawk"
    >
    > >If you have autotools around, you might want to comment out...

    > No such luck. So I went for it. The following is the result. As you can
    > see it didn't get very far, and I don't understand why. For some reason,
    > Make complains that I haven't run configure, and also complains about
    > "hostname: not found". Then it completely dies trying to compile
    > dynconfig.h. I've looked at most of these errors & warnings, and can't
    > find a single thing wrong with the source code at the lines mentioned.
    > It looks like there is still some configuration stuff missing, but I
    > don't know what. Here's the compiler output. Any suggestions, 'cos this
    > is looking pretty hopeless to me, as I haven't even got to the c99
    > initialiser errors yet?! phil.


    Well, without good C knowledge you're probably a bit lost
    then. Sorry for pointing you at this...

    Volker

    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.5 (GNU/Linux)

    iD8DBQFIeunlUzqjrWwMRl0RAogfAJ0aAT2Knd8TBQifZS0W3k SxFVGDcQCgmK77
    MkBwmejMBjXpfw3n5qAQXFA=
    =kl52
    -----END PGP SIGNATURE-----


  3. RE: [Samba] Samba v2.2.12 NTLM versions?

    > Well, without good C knowledge you're probably a bit lost then

    Apart from the software engineering degree, 18 years in the industry, and 10 years C & C++ experience.
    It seems that what I'm lacking here is experience with the oh-so-clever configuration scripts used by the Samba build system.

    Thanks for your time Volker, but I'm going to have to give up, as I can't afford to spend weeks picking through the source and header hierarchies.

    phil

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


  4. Re: [Samba] Samba v2.2.12 NTLM versions?

    On Mon, Jul 14, 2008 at 05:46:57AM -0400, Horder, Philip wrote:
    > > Well, without good C knowledge you're probably a bit lost then

    >
    > Apart from the software engineering degree, 18 years in
    > the industry, and 10 years C & C++ experience.
    > It seems that what I'm lacking here is experience with the
    > oh-so-clever configuration scripts used by the Samba build
    > system.
    >
    > Thanks for your time Volker, but I'm going to have to give
    > up, as I can't afford to spend weeks picking through the
    > source and header hierarchies.


    Again, I can only apologize for wasting your time with
    giving you the hint to try Samba 3.

    I do believe that we can make Samba 3 run on almost every
    platform that is Posixy, but it takes time going through the
    indiviual compile problems.

    Volker

    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.5 (GNU/Linux)

    iD8DBQFIeyT6UzqjrWwMRl0RAhZXAJkBQz8EWYO6xw0cwsp8K8 QPV0Ng+gCfXqpy
    PqRo6R8HVDV4XlCvrXgF6d4=
    =4fqJ
    -----END PGP SIGNATURE-----


+ Reply to Thread