|
From: | Seventeen |
Subject: | [help-GIFT] Compile error of GIFT 0.1.11 on Mac OS X |
Date: | Fri, 25 Jun 2004 11:05:10 +0800 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040309) |
Dear all,With some modification, the GIFT on Mac can go through the last step of compile. The problem might because of it cannot find the correct expat.h. The GIFT compile on Mac OS is based on the fink install of needed programs, which are installed in /sw. For example, the expat.h is installed in /sw/include. So, is any possible the configure program can add options the define the include path ?
The attache file macgift.htm is the compile log. Of course I'll learn to make a patch. :)
-L/sw/lib -lpthread -lmld: warning -L: directory name (/Users/gift/t/gift-0.1.11/libGIFTQuBayesian/cc/) does not exist
ld: Undefined symbols: _XML_ErrorString _XML_GetCurrentLineNumber _XML_GetErrorCode _XML_Parse _XML_ParserCreate _XML_ParserFree _XML_SetCharacterDataHandler _XML_SetElementHandler _XML_SetUserData
get source from cvs # make Encounter XML... and lack of expat.h error. copy /sw/include/expat.h # make cp /usr/include/malloc/malloc.h libSquirePPM/. These include files are from linux cp /Users/s7n/values.h libSquirePPM/. cp /Users/s7n/features.h libSquirePPM/. cp /Users/s7n/stubs.h libSquirePPM/gnu/. # make In file included from Server.cc:449: CTCPSocket.h:64: error: field `mSocketAddress' has incomplete type Server.cc:508:2: warning: #warning "threading blocked" Server.cc: In member function `virtual bool CSFGift::operator()(int)': Server.cc:475: error: invalid use of undefined type `struct sockaddr_in' CTCPSocket.h:64: error: forward declaration of `struct sockaddr_in' make[3]: *** [Server.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 According to the following url: http://www.macdevcenter.com/pub/a/mac/2002/12/26/cocoa.html?page=3 Add one line in CTCPSocket.h #include <netinet/in.h> # make Encounter CDomain error. #vi Makefile Remove all CDomain releated stuff. g++ -g -O2 -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8 -DEF_FILL=42 -o .libs/gift Server.o CSocket.o CTCPSocket.o processMessage.o CProcessMessageParameters.o CMultiServer.o -lstdc++ -L/Users/gift/cvs/gift/libMRML/cc/ -L/Users/gift/cvs/gift/libGIFTAcPerl/cc/ -L/Users/gift/cvs/gift/libGIFTQuPerl/cc/ -L/Users/gift/cvs/gift/libGIFTAcInvertedFile/cc/ -L/Users/gift/cvs/gift/libGIFTAcHierarchy/cc/ -L/Users/gift/cvs/gift/libGIFTAcDistanceMatrix/cc/ -L/Users/gift/cvs/gift/libGIFTQuInvertedFile/cc/ -L/Users/gift/cvs/gift/libGIFTQuBayesian/cc/ -L/Users/gift/cvs/gift/libGIFTQuHierarchy/cc/ -L/Users/gift/cvs/gift/libGIFTAcURL2FTS/cc/ /Users/gift/cvs/gift/libGIFTQuPerl/cc//.libs/libGIFTQuPerl.0.0.0 /Users/gift/cvs/gift/libGIFTAcPerl/cc//.libs/libGIFTAcPerl.0.0.0 /Users/gift/cvs/gift/libMRML/cc//.libs/libMRML.0.3.0 -ldl -L/usr/local/lib -lpthread -lm ld: Undefined symbols: _XML_ErrorString _XML_GetCurrentLineNumber _XML_GetErrorCode _XML_Parse _XML_ParserCreate _XML_ParserFree _XML_SetElementHandler _XML_SetUserData _XML_SetCharacterDataHandler make[1]: *** [gift] Error 1 make: *** [all-recursive] Error 1 Guess the problem of gcc3.3 #gcc_select 2 Switch to gcc2.95 fink-0.6.2.dimg fink self-update apt-get update apt-get install xml-dom-pm xml-regexp-pm libxml-pm libxml-pm581 xml-parser-pm581 compress-zlib-pm581 dbd-mysql-pm581 dbi-pm581 html-parser-pm581 libnet-pm581 libwww-pm581 mime-base64-pm581 scalar-list-utils-pm581 template-pm581 term-readkey-pm581 text-iconv-pm581 time-hires-pm581 unicode-string-pm581 uri-pm581 imagemagick perl -MCPAN -e 'force install XML::XQL::DOM' perl -MCPAN -e 'force install XML::Writer' http://mail.gnu.org/archive/html/help-gift/2001-10/msg00006.html
|
[Prev in Thread] | Current Thread | [Next in Thread] |