try the diff I have placed in my email (separated by a single = before and
after).
It compiles the smbval library on my openBSD box without using gmake.
however as I don't have the setup to test NTLMSSP YMMV.
feedback appreciated.
Kinkie,
can you test the build and execution of this on your linux box? I had to
change an include order... I'm not 100% positive I haven't broken
anything...
Rob
=
Index: Makefile.in
===================================================================
RCS file:
/cvsroot/squid/squid/ntlm_auth_modules/NTLMSSP/smbval/Attic/Makefile.in,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 Makefile.in
--- Makefile.in 2000/08/03 12:46:24 1.1.2.1
+++ Makefile.in 2000/11/29 21:52:18
@@ -19,30 +19,32 @@
LDFLAGS = @LDFLAGS@
XTRA_LIBS = @XTRA_LIBS@
RM = @RM@
-AR = @AR@
+AR_R = @AR_R@
CFLAGS = $(AC_CFLAGS) $(INCLUDE) $(DEFINES)
# CFLAGS = -fpic -g
INCLUDES = smblib.h smblib-priv.h
-RFCNB = session.o rfcnb-util.o rfcnb-io.o
+#RFCNB = session.o rfcnb-util.o rfcnb-io.o
-OBJS = smblib.o smblib-util.o file.o smb-errors.o exper.o smblib-api.o
smbencrypt.o smbdes.o md4.o
+#OBJS = smblib.o smblib-util.o file.o smb-errors.o exper.o smblib-api.o
smbencrypt.o smbdes.o md4.o
VALIDATE = valid.o session.o rfcnb-util.o \
rfcnb-io.o smblib-util.o smblib.o smbencrypt.o smbdes.o md4.o
-.SUFFIXES: .c .o .h
+#.SUFFIXES: .c .o .h
dummy: all
smbvalid.a: $(VALIDATE)
- $(AR) rcs smbvalid.a $(VALIDATE)
+ $(RM) -f $@
+ $(AR_R) $@ $(VALIDATE)
+ $(RANLIB) $@
all: smbvalid.a
-.c.o: $(INCLUDES)
+#.c.o: $(INCLUDES)
clean:
$(RM) -f *.o smbvalid.a *~
Index: smbencrypt.c
===================================================================
RCS file:
/cvsroot/squid/squid/ntlm_auth_modules/NTLMSSP/smbval/Attic/smbencrypt.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 smbencrypt.c
--- smbencrypt.c 2000/08/03 12:46:25 1.1.2.1
+++ smbencrypt.c 2000/11/29 21:52:18
@@ -21,11 +21,12 @@
*/
#include <string.h>
-#include <arpa/inet.h>
+//#include <arpa/inet.h>
#include <dirent.h>
#include <string.h>
-#include <sys/vfs.h>
+//#include <sys/vfs.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include "smblib-priv.h"
#define uchar unsigned char
=
----- Original Message -----
From: "Chris Ptacek" <ptacek@ptacek.net>
To: <squid-users@ircache.net>
Sent: Tuesday, November 28, 2000 4:49 PM
Subject: [SQU] ntlm branch compile fails (valid.o)
> I am trying to compile the ntlm-squid on FreeBSD 3.5.1 and am having
> problems.
> My procedure and the errors are below.
>
> I have checked out the ntlm brach of squid
>
> >cvs -z3 -d:pserver:anonymous@cvs.squid.sourceforge.net:/cvsroot/squid co
> squid
>
> Then I did
> >autoconf (errors)
> configure.in:881: warning: AC_TRY_RUN called without default to allow
cross
> compiling
> configure.in:977: warning: AC_TRY_RUN called without default to allow
cross
> compiling
> configure.in:978: warning: AC_TRY_RUN called without default to allow
cross
> compiling
> configure.in:979: warning: AC_TRY_RUN called without default to allow
cross
> compiling
> configure.in:1253: warning: AC_TRY_RUN called without default to allow
cross
> compiling
>
> >autoheader
> configure.in:881: warning: AC_TRY_RUN called without default to allow
cross
> compiling
> configure.in:1253: warning: AC_TRY_RUN called without default to allow
cross
> compiling
>
> I then do
> >./configure --enable-ntlm-auth-modules=NTLMSSP
>
> Then,
> >make
>
> The error I get ends with:
> Making all in icons...
> Making all in errors...
> Making all in auth_modules...
> Making all in ntlm_auth_modules...
> gcc -g -02 -Wall -I. -I../../include -I./smbval -I../../include -c
> ntlm_auth.c
> gcc -g -02 -Wall -I. -I../../include -I./smbval -I../../include -c
> libntlmssp.c
> libntlmssp.c: In function 'make_challenge':
> libntlmssp.c:202: warning: assignment discards 'const' from pointer target
> type
> smbval/smblib-priv.h: At top level:
> smbval/smblib-priv.h:513: warning" 'SMD_Types' defined but not used
> make: don't know how to make valid.o Stop
> *** Error code 2
>
> Stop.
> *** Error code 1
>
> Stop.
> *** Error code 1
>
> Stop.
>
>
>
>
>
> --
> To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
>
>
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Wed Nov 29 2000 - 15:01:03 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:39 MST