From owner-freebsd-questions Tue Jan 9 22: 9:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web11005.mail.yahoo.com (web11005.mail.yahoo.com [216.136.131.55]) by hub.freebsd.org (Postfix) with SMTP id CFFB437B401 for ; Tue, 9 Jan 2001 22:09:32 -0800 (PST) Message-ID: <20010110060932.22635.qmail@web11005.mail.yahoo.com> Received: from [203.186.38.249] by web11005.mail.yahoo.com; Tue, 09 Jan 2001 22:09:32 PST Date: Tue, 9 Jan 2001 22:09:32 -0800 (PST) From: May Chim Subject: Static linking problem on FreeBSD To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am trying to create a static binary for the older version of the FreeBSD machines. But I keep receiving error message of "missing dependency operator" on the mflect part (indicated by <------) no matter where I put the -static option. My Makefile is like this: CFLAGS = -W -Wall -Wbad-function-cast -Wmissing-prototypes -Werror -fsigned-char -DFreeBSD INC = -I/usr/local/include -I../common -I../librtpxr -I../zing CC = gcc CPLUSPLUS = g++ -pipe AR = ar RANLIB = ranlib BINOBJ = mflect_main.o mflect.o ../zing/wire.o SRCS := $(OBJS:%.o=%.c) mflect: <------$(BINOBJ) ../librtpxr/librtpxr.a ../common/libcommon.a $(CPLUSPLUS) $(CFLAGS) $(BINOBJ) -o mflect ../librtpxr/librtpxr.a ../com mon/libcommon.a -lm -lpcap -static .c.o: $(CC) $(CFLAGS) $(INC) -c $< .cc.o: $(CPLUSPLUS) $(CFLAGS) $(INC) -c $< clean: -rm -f $(LIBOBJ) $(BINOBJ) version.h Makefile mflect tags etags: etags *.[ch] ctags: ctags *.[ch] release: cvs tag release-`cat VERSION | sed "s/\./-/g"` depend: $(SRCS) makedepend $(INC) $(SRCS) d: $(SRCS) It will be great if anyone can point me to get more information on this or what exactly the dependency operator means? May __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message