From owner-freebsd-stable@FreeBSD.ORG Tue Jul 26 17:58:45 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1654816A41F for ; Tue, 26 Jul 2005 17:58:45 +0000 (GMT) (envelope-from chess@tigergroup.org) Received: from mail8.opentransfer.com (mail7.opentransfer.com [69.6.255.178]) by mx1.FreeBSD.org (Postfix) with SMTP id 5035E43D45 for ; Tue, 26 Jul 2005 17:58:43 +0000 (GMT) (envelope-from chess@tigergroup.org) Received: (qmail 29624 invoked by uid 399); 26 Jul 2005 14:06:25 -0000 Received: from unknown (HELO ?192.168.0.100?) (68.47.19.148) by mail.opentransfer.com with SMTP; 26 Jul 2005 14:06:25 -0000 Message-ID: <42E65168.5040502@tigergroup.org> Date: Tue, 26 Jul 2005 10:06:16 -0500 From: Eriq Lamar User-Agent: Mozilla Thunderbird 1.0.5 (X11/20050717) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: multipart/mixed; boundary="------------040106050005080304070205" Subject: need help linking?? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 17:58:45 -0000 This is a multi-part message in MIME format. --------------040106050005080304070205 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit A programmer needs your help to get his program to compile properly on freebsd. Presently he has no problems in Linux and winblows, but I could not get it running in 4.11. This is important to me because it is the strongest free chess program available and he is even giving the source! and so can be made into a port some day. Here is my message and response from him I am including the Makefile as an attachment: Hi Eriq, It refuses to link? Ask BSD users and let me know what the solution is. --- Make sure to add the appropriate include files but I don't think it would have any effect. >book.o(.text+0x83): undefined reference to `__errno_location' #include Maybe BSD has a problem with C++ notation try replacing with the obsolete #include >fen.o(.text+0x29e): undefined reference to `__strtol_internal' Not sure with strtol (try man pages) or ? >protocol.o(.text+0xd55): undefined reference to `stdin' >protocol.o(.text+0xdb1): undefined reference to `stdout' >any help you can give me is great! I have a linux binary of fruit2.1 >running on freebsd just fine but would like to compile a native binary. --- Well it looks like a linking issue specific to BSD to me. Ask in appropriate forum and let me know their answer. Fabien. --------------040106050005080304070205 Content-Type: text/plain; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" # files EXE = fruit OBJS = attack.o board.o book.o eval.o fen.o hash.o list.o main.o material.o \ move.o move_check.o move_do.o move_evasion.o move_gen.o move_legal.o \ option.o pawn.o piece.o posix.o protocol.o pst.o pv.o random.o recog.o \ search.o search_full.o see.o sort.o square.o trans.o util.o value.o \ vector.o # rules all: $(EXE) .depend clean: $(RM) *.o .depend gmon.out # general CXX = g++33 CXXFLAGS = -pipe LDFLAGS = -lm # C++ CXXFLAGS += -fno-exceptions -fno-rtti # optimisation CXXFLAGS += -O3 -fstrict-aliasing CXXFLAGS += -fomit-frame-pointer # CXXFLAGS += -march=athlon-xp # SELECT ME # strip LDFLAGS += -s # dependencies $(EXE): $(OBJS) $(CXX) $(LDFLAGS) -o $@ $(OBJS) .depend: $(CXX) -MM $(OBJS:.o=.cpp) > $@ include .depend --------------040106050005080304070205--