0 Members and 2 Guests are viewing this topic.
You have to add -lcrypto in the LDFLAGS line in the Makefile.GCC is apparently awesome enough to tell which library is missing, it was like, hey this function is undefined but you'll find it in this lib, so add it in LDFLAGS and it'll work
Mac-Pro-Adrien:src adrien$ sudo make allgcc -W -Wall -c -o luna.o luna.cluna.c: In function ‘doccrypt’:luna.c:288: warning: ‘DES_set_key_checked’ is deprecated (declared at /usr/include/openssl/des.h:227)luna.c:289: warning: ‘DES_set_key_checked’ is deprecated (declared at /usr/include/openssl/des.h:227)luna.c:290: warning: ‘DES_set_key_checked’ is deprecated (declared at /usr/include/openssl/des.h:227)luna.c:304: warning: ‘DES_ecb3_encrypt’ is deprecated (declared at /usr/include/openssl/des.h:135)gcc -W -Wall -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 -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 -lcryptoUndefined symbols for architecture x86_64: "_fopen64", referenced from: _fopen64_file_func in ioapi.o (maybe you meant: _fill_fopen64_filefunc) "_ftello64", referenced from: _ftell64_file_func in ioapi.o "_fseeko64", referenced from: _fseek64_file_func in ioapi.old: symbol(s) not found for architecture x86_64collect2: ld returned 1 exit statusmake: *** [luna] Error 1
miku:src julien$ make allgcc -W -Wall -c -o luna.o luna.cluna.c:21:14: error: invalid suffix "b10000000" on integer constantluna.c:25:13: error: invalid suffix "b11100000" on integer constantluna.c:25:28: error: invalid suffix "b11000000" on integer constantluna.c:26:15: error: invalid suffix "b00011111" on integer constantluna.c:28:22: error: invalid suffix "b00111111" on integer constantluna.c:31:13: error: invalid suffix "b111100000" on integer constantluna.c:31:29: error: invalid suffix "b11100000" on integer constantluna.c:32:15: error: invalid suffix "b00011111" on integer constantluna.c:34:23: error: invalid suffix "b00111111" on integer constantluna.c:36:22: error: invalid suffix "b00111111" on integer constantluna.c:39:13: error: invalid suffix "b111110000" on integer constantluna.c:39:29: error: invalid suffix "b11110000" on integer constantluna.c:40:15: error: invalid suffix "b00011111" on integer constantluna.c:42:23: error: invalid suffix "b00111111" on integer constantluna.c:44:23: error: invalid suffix "b00111111" on integer constantluna.c:46:22: error: invalid suffix "b00111111" on integer constantluna.c:71:12: error: invalid suffix "b10000001" on integer constantluna.c:75:12: error: invalid suffix "b00001000" on integer constantmake: *** [luna.o] Error 1
The trick is to compile it with GCC 4.7.1..^^Download Luna v0.3 for Mac OS X (Binaries for x86 and x86_64, source and makefile):http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX03Here are some older versions for Mac OS X:http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02b (0.2b)http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02a (0.2a)http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02 (0.2)http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX (0.1)TIACuervo