Midgard under Apple MacOSX/Darwin

Meta: I suggest postings regarding Mac OS X should be titled/contain
MacOSX/Darwin or somrthing similar. Most search engines discard short
strings, and the MARC archive search engine has this problem. It is hard
to find postings related this platform.

Why:
- To prove it can be done
- To learn about the Unix side of OS X
- A future project has OS X as a requirement
- Refine the Midgard-in-a-sandbox Makefile I am working on
- To give my brand new Powerbook something taxing to do besides playing DVDs

Basic principles:
- Use fink to install requirements
- Compile Apache, PHP & Midgard from source
- Keep the process as similar as possible. I want to have one makefile
to do Linux & Darwin setups transparently
- Once the requirements have been satisfied, Apache, PHP & Midgard must
be compiled and run as a non-privileged user. Also, these packages will
not be installed in systemwide locations. This is the
midgard-in-a-sandbox approach that I think is an absolute requirement
for serious midgard development.

Steps:
1 - Use fink to install
      - autoconf25
      - automake
      - bison
      - bzip2
      - cvs
      - cvs2cl
      - daemonic
      - db4-bin
      - db4-doc
      - db4-shlibs
      - db4
      - debianutils
      - diffutils
      - expat
      - flex
      - gdbm-shlibs
      - gdbm
      - gettext
      - glib
      - gzip
      - lesstif
      - libiconv
      - libtool14
      - libxml2
      - lynx
      - m4
      - mysql
      - ncftp
      - ncurses
      - passwd
      - patch
      - readline-shlibs
      - readline
      - tar
      - wget
      - zlib

2 - Obtain and customize/configure makefile (see attached)
3 - make

The whole process works like a charm, everything compiles, and the world
is happy, except that when I hit a midgard page, the page is not
generated, and the errorlog contains

[Wed Jul 17 16:13:47 2002] [error] PHP Warning:  Cannot dynamically load
midgard.so - dynamic modules are not supported in
/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/apache_1.3.26/libexec/midgard-root.php
 

on line 12
[Wed Jul 17 16:13:47 2002] [error] PHP Fatal error:  Call to undefined
function:  mgd_get_midgard() in
/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/apache_1.3.26/libexec/midgard-root.php
 

on line 14

I have found the reason for this: according to Apple, dl() is not
supported, see

     - http://developer.apple.com/internet/macosx/php.html

     - http://www.php.net/release_4_2_0.php

     - http://bugs.php.net/bug.php?id=18383 (filed it as a bug)

The problem is that it is not obvious how to build midgard-php4 first,
to then link it statically into mod_php. I have explored that path,
without much success. I am now about to try the latest PHP snapshot.

So my big question of the day is: Has anyone ever built Midgard
statically linked to PHP? How?

cheers,







m

Attachment: msg11635/bin00000.bin
Description: application/applefile

Attachment: Makefile.conf
Description: Binary data

Attachment: msg11635/bin00001.bin
Description: application/applefile

Attachment: Makefile.ssc
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to