BTW I forgot to mention. The line change mentioned above, regarding the following: $(LD) -o libmysac.so -shared -soname libmysac.so.0.0 libmysac.a Is somewhat of a red herring as it only has any bearing on the shared library (thus the -shared option and the .so in the -soname element). This is because, by default ape links against the static library and could not care less about the shared one, therefore it could be called anything you like and would affect the outcome. instead link against the static version as shown in my previous post.
Thanks, Fin On Monday, 24 November 2014 09:59:33 UTC, Edward Finlayson wrote: > > Hi All, > I realise that this is quite an old thread but I though that I would share > the results of my experiments with you. > I downloaded the latest version of the source code from the git repo, > currently 1.1.3-DEV. Then after placing this code on my server, I cd'd into > the modules/deps directory and got the latest version of the mysac > with: wget http://www.arpalert.org/src/mysac-1.1.1.tar.gz , extracted > with the usual tar zvxf mysac-1.1.1.tar.gz and then when about getting it > to compile. These are my changes: > > modules/deps/mysac-1.1.1/Makefile: > at line 21 change the MYSQL_LIB line to the following (because I'm > running centos) > # Use lib64 in the path below for fedora/centos/redhat type installs > else use lib > MYSQL_LIB := /usr/lib64/mysql > > at line 32 change the CFLAGS line to the following (the warnings being > raised as errors were needless so redacted the -Werror switch) > # Dissabled -Werror flag to silence strict fails. > CFLAGS = -DBUILDVER=$(BUILDVER) -I$(MYSQL_INC) -O0 -g -Wall -fpic > > > modules/Makefile: > at around line 20 changed line beginning with MYSQL_DEP_DIR to (so > that it point at the new version): > MYSQL_DEP_DIR=deps/mysac-1.1.1 > changed the line beginning with MYSQL_LIB_DIR (again because I'm > running centos) to (Make sure this points to the directory containing > lmysqlclient_r): > MYSQL_LIB_DIR := /usr/lib64/mysql > changed the name of the dependancey in the line beginning with > MYSQL_DEP (this has changed within mysac): > MYSQL_DEP=$(MYSQL_DEP_DIR)/libmysac-static > Ensured the MYSQL_FLAGS line pointed to the correct libraries: > MYSQL_FLAGS=-L ./$(MYSQL_DEP_DIR)/ -L$(MYSQL_LIB_DIR) -I > ./$(MYSQL_DEP_DIR)/ -lmysac-static -lmysqlclient_r > > These few changes enabled me to compile ape 1.1.3 with libmysac 1.1.1 by > using the build script alone. > Please test my findings for yourselves as I would love to hear if this can > now be put to bed by adopting these changes into the main build. > > I suppose the acid test would be to drive MySQL via mysac-1.1.1, that is > somehting I must admit I have not done. > > I really hope that some finds this of some help/use and would like to ask > any if they have ever managed to create a c module for libmemcached > > Cheers for now, > > Fin > > On Tuesday, 2 September 2014 18:07:04 UTC+1, Nicolas wrote: >> >> Hi, >> >> I have just installed the latest APE, but got a Mysql error. I strongly >> suspect that this is due to the fact that APE uses an old version of Mysac >> (0.4) when it should use a newer one. >> >> So I recompiled APE with the latest Mysac (1.1.1). >> >> I copied-pasted aped and libmod_spidermonkey.so >> >> When running APE, I get this message: >> >> root@server56405:/etc# [Module] Failed to load >> /ape_staging/modules/libmod_spidermonkey.so [Invalid library] >> (libmysac.so.0.0: cannot open shared object file: No such file or directory) >> >> What should I do? >> > -- -- 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/ --- You received this message because you are subscribed to the Google Groups "APE Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
