0 Members and 2 Guests are viewing this topic.
@ExtendeD:Please try if my Makefile also works on Windows, if it does, please use it instead of your Makefile. It's the only thing that needs to be changed to compile Luna on Mac OS X.
Do you plan to include a Linux and a Mac build the next time (or does this one already feature it)? For people who can't build one themselves, it'd be neat.
OS ?= `uname -s`ifeq ($(OS),Windows_NT) EXEEXT = .exeelse CFLAGS=$(CFLAGS) -Dfopen64=fopen -Dfseeko64=fseeko -Dftello64=ftello LDFLAGS=$(LDFLAGS) -lcryptoendif
OS ?= `uname -s`ifeq ($(OS),Windows_NT) EXEEXT = .exeelse CFLAGS = -W -Wall -m32 -Dfopen64=fopen -Dfseeko64=fseeko -Dftello64=ftello LDFLAGS = -lssl -lz -m32 -lcryptoendif
Mac:src username$ make distrm -rf *.o luna distMakefile:10: *** Recursive variable `CFLAGS' references itself (eventually). Stop.
CFLAGS += -Dfopen64=fopen -Dfseeko64=fseeko -Dftello64=ftelloLDFLAGS += -lcrypto
OS ?= `uname -s`ifeq ($(OS),Windows_NT) EXEEXT = .exeelse CFLAGS += -Dfopen64=fopen -Dfseeko64=fseeko -Dftello64=ftello LDFLAGS += -lcryptoendif
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE
-Dfopen64=fopen -Dfseeko64=fseeko -Dftello64=ftello
rm -rf *.o luna distgcc -W -Wall -m32 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE -c -o luna.o luna.cgcc -W -Wall -m32 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE -c -o zip.o minizip-1.1/zip.cIn file included from minizip-1.1/zip.c:196:minizip-1.1/crypt.h:35: warning: unused parameter ‘pcrc_32_tab’gcc -W -Wall -m32 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE -c -o ioapi.o minizip-1.1/ioapi.cminizip-1.1/ioapi.c:83: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c: In function ‘fopen64_file_func’:minizip-1.1/ioapi.c:115: warning: implicit declaration of function ‘fopen64’minizip-1.1/ioapi.c:115: warning: assignment makes pointer from integer without a castminizip-1.1/ioapi.c: At top level:minizip-1.1/ioapi.c:101: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:120: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:127: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:134: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c: In function ‘ftell64_file_func’:minizip-1.1/ioapi.c:145: warning: implicit declaration of function ‘ftello64’minizip-1.1/ioapi.c: At top level:minizip-1.1/ioapi.c:142: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:149: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c: In function ‘fseek64_file_func’:minizip-1.1/ioapi.c:191: warning: implicit declaration of function ‘fseeko64’minizip-1.1/ioapi.c: At top level:minizip-1.1/ioapi.c:172: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:198: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:205: warning: unused parameter ‘opaque’gcc -o luna luna.o zip.o ioapi.o -lssl -lz -m32 -lcryptoUndefined symbols: "_fopen64", referenced from: _fopen64_file_func in ioapi.o (maybe you meant: _fill_fopen64_filefunc) "_fseeko64", referenced from: _fseek64_file_func in ioapi.o "_ftello64", referenced from: _ftell64_file_func in ioapi.old: symbol(s) not foundcollect2: ld returned 1 exit statusmake: *** [luna] Error 1
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
gcc -W -Wall -m32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o luna.o luna.cgcc -W -Wall -m32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o zip.o minizip-1.1/zip.cIn file included from minizip-1.1/zip.c:196:minizip-1.1/crypt.h:35: warning: unused parameter ‘pcrc_32_tab’gcc -W -Wall -m32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o ioapi.o minizip-1.1/ioapi.cminizip-1.1/ioapi.c:83: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c: In function ‘fopen64_file_func’:minizip-1.1/ioapi.c:115: warning: implicit declaration of function ‘fopen64’minizip-1.1/ioapi.c:115: warning: assignment makes pointer from integer without a castminizip-1.1/ioapi.c: At top level:minizip-1.1/ioapi.c:101: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:120: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:127: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:134: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c: In function ‘ftell64_file_func’:minizip-1.1/ioapi.c:145: warning: implicit declaration of function ‘ftello64’minizip-1.1/ioapi.c: At top level:minizip-1.1/ioapi.c:142: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:149: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c: In function ‘fseek64_file_func’:minizip-1.1/ioapi.c:191: warning: implicit declaration of function ‘fseeko64’minizip-1.1/ioapi.c: At top level:minizip-1.1/ioapi.c:172: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:198: warning: unused parameter ‘opaque’minizip-1.1/ioapi.c:205: warning: unused parameter ‘opaque’gcc -o luna luna.o zip.o ioapi.o -lssl -lz -m32 -lcryptoUndefined symbols: "_fopen64", referenced from: _fopen64_file_func in ioapi.o (maybe you meant: _fill_fopen64_filefunc) "_fseeko64", referenced from: _fseek64_file_func in ioapi.o "_ftello64", referenced from: _ftell64_file_func in ioapi.old: symbol(s) not foundcollect2: ld returned 1 exit statusmake: *** [luna] Error 1
Welcome to the world of software porting, where every operating system is different and often in ways that the author of the software you want didn't know were important. There's no fopen64 function on OS X because the standard fopen function includes the added 64-bit functionality that is only present in the *64 symbols on other machines. Try passing -Dfopen64=fopen in CPPFLAGS.