hi everyone, I'm trying to get APE Server compiled on Snow Leopard Server, however I run into a MySQL issue.
Snow Leopard Server doesn't ship with MySQL development library, instead we are forced to download a rather hidden package which, unpacked in the root directory, will copy over the filesystems what's required in order to provide them and there's no going back. To install APE Server the wiki says to port install mysql5-devel packages, and I did that, I was already using ports for postgresql, so no problem here. However I can't create the symlink (btw the wiki command is wrong) sudo ln -s /opt/local/include/mysql5/mysql /usr/include/mysql because /usr/include/mysql is a proper directory, created by unarchiving the tarball that Apple provides. Using the latest APE Server git snapshot: cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o mysac.o mysac.c In file included from mysac.c:25: /usr/include/mysql/mysql/my_global.h:661: error: redefinition of typedef 'my_socket' /usr/include/mysql/mysql/mysql.h:65: error: previous declaration of 'my_socket' was here In file included from mysac.c:25: /usr/include/mysql/mysql/my_global.h:1032: error: redefinition of typedef 'my_ulonglong' /usr/include/mysql/mysql/mysql.h:128: error: previous declaration of 'my_ulonglong' was here /usr/include/mysql/mysql/my_global.h:1097: error: redefinition of typedef 'my_bool' /usr/include/mysql/mysql/mysql.h:51: error: previous declaration of 'my_bool' was here make[1]: *** [mysac.o] Error 1 make: *** [build] Error 2 gcc -D_GNU_SOURCE -Wall -g -bundle -undefined suppress -flat_namespace -o lib/libmod_spidermonkey.so libape-spidermonkey.c -I../deps/js/src/ dist/include/ -L../deps/js/src/ -ljs_static -lstdc++ -L./deps/mysac/ - I./deps/mysac/ -lmysac -L/opt/local/lib/mysql5/mysql/ -lmysqlclient_r ld: library not found for -lmysac collect2: ld returned 1 exit status make: *** [modules] Error 1 I suspect there's a version clash, is there anything I can do in order to fix this issue? Since I already compiled what I needed with Apple-provided libraries I'm gonna try move them in another directory and create the symlink. Will post back my results. cheers -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
