Le 23/05/2012 01:14, Alexander Syed a écrit :
Hi,

so, I'm still trying to get mod_neko2 running with my Apache installation.

With the prebuilt neko-1.8.2-osx binaries I was getting this error.

httpd: Syntax error on line 118 of /opt/local/apache2/conf/httpd.conf:
Cannot load /Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll into server:
dlopen(/Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll, 10): no suitable
image found. Did
find:\n\t/Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll: mach-o, but
wrong architecture


With my own binaries built today from trunk r1882
I am getting this error.

Cannot load
/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll into
server:
dlopen(/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll,
10): no suitable image found. Did
find:\n\t/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll:
no matching architecture in universal wrapper


My apache is:

httpd -V
Server version: Apache/2.2.21 (Unix)
Server built: Dec 5 2011 20:56:38
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)


The error I described earlier (zlib) ...
../bin/neko nekoml -nostd neko/Main.nml nekoml/Main.nml core/*.nml -pack
../bin/nekoml.std
dyld: lazy symbol binding failed: Symbol not found: _deflateInit_
Referenced from:
/Users/a/dev/workspaces/neko/nekovm-read-only/bin/zlib.ndll
Expected in: dynamic lookup

dyld: Symbol not found: _deflateInit_
Referenced from:
/Users/a/dev/workspaces/neko/nekovm-read-only/bin/zlib.ndll
Expected in: dynamic lookup

Called from tools/install.neko line 411
Uncaught exception - Error 5 : aborted
make: *** [libs] Error 1

.......was while trying to build with these settings in the Makefile

# For OSX
#
MACOSX = 1

# For OSX Universal Binaries
#
# OSX_UNIVERSAL = 1


# For 64 bit
#
CFLAGS += -D_64BITS

i.e. Not the universal binaries.



I then did get the build working by un-commenting

OSX_UNIVERSAL = 1

but as stated earlier the mod_neko2 that built still does not play nice
with my macports apache.

Could you try to disable again OSX_UNIVERAL=1, and update latest SVN install.neko ? I disabled static linking of zlib on 64 bits systems, which might be your actual issue.

Best,
Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to