At 13:11 08.05.01 -0400, you wrote:

Just a hint from own experience: are there any includes or libs from old
php installations in /usr/local/include or /usr/local/lib? You could try
to mv /usr/local/include/php and usr/local/lib/php and do "make install"
from php-source-dir. Then make clean in midgard-php4, configure etc.
again.

Good luck
Ingo



>Here's my linker line:
>gcc -shared  mgd_errno.lo midgard.lo article.lo parameter.lo
>attachment.lo
>oop.lo topic.lo element.lo mail.lo group.lo file.lo host.lo image.lo
>member.lo calendar.lo event.lo eventmember.lo page.lo pageelement.lo
>pagelink.lo person.lo preferences.lo snippet.lo snippetdir.lo style.lo
>sitegroup.lo preparser-parser.lo preparser-scanner.lo preparser.lo
>-Wl,-soname -Wl,midgard.so -o .libs/midgard.so
>
>Obviously, this looks broken compared to yours (-lmidgard is missing).
>I fixed this by adding -lmidgard into the makefile. After
>recompiling, and copying midgard.so into /usr/local/lib,
>I still get the same error.
>
>ldd midgard.so:
>libmidgard.so.3 => /usr/local/lib/libmidgard.so.3 (0x40053000)
>libc.so.6 => /lib/libc.so.6 (0x4006d000)
>libexpat.so.0 => /usr/local/lib/libexpat.so.0 (0x40177000)
>libmysqlclient.so.10 => /usr/local/lib/mysql/libmysqlclient.so.10
>(0x40193000)
>libm.so.6 => /lib/libm.so.6 (0x401ae000)
>libz.so.1 => /usr/lib/libz.so.1 (0x401cb000)
>libcrypt.so.1 => /lib/libcrypt.so.1 (0x401da000)
>libglib-1.2.so.0 => /usr/local/lib/libglib-1.2.so.0 (0x40207000)
>/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
>libnsl.so.1 => /lib/libnsl.so.1 (0x4022a000)
>
>apachectl configtest
>PHP Warning:  Unable to load dynamic library '/usr/local/lib/midgard.so'
>-
>/usr/local/lib/midgard.so: undefined symbol: midgard_user_call_func in
>Unknown on line 0
>Syntax OK
>
>I've had just about enough of this :)
>
>I'm going to try the cvs snapshot, if that doesn't work
>then I suppose I'll scrap everything and try again
>with another fresh install.
>
>Emiliano wrote:
> >
> > [EMAIL PROTECTED] wrote:
> >
> > > midgard-php4-1.4.1-7
> > > ./mkall
> > > (seems to work, although I had a bitch of a time figuring out why
> > > autoconf was complaining. Seems you must have libtools 1.4 or
> > > phpize will fail with an autoconf error)
> >
> > Feel free to report that to the PHP team.
> >
> > > I copied midgard.so into /usr/local/lib (where php expects to find
> > > it's extensions,
> >
> > make install should have doen this for you.
> >
> > > edited php.ini and added extension=midgard.so).
> > >
> > > apachectl configtest:
> > > PHP Warning:  Unable to load dynamic library './midgard.so' -
> > >       ./midgard.so: undefined symbol: midgard_user_call_func in 
> Unknown on
> > > line 0
> > > Syntax OK
> >
> > That's because:
> >
> > > ldd midgard.so:
> > > libc.so.6 => /lib/libc.so.6 (0x4005c000)
> > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
> >
> > For me this gives:
> >
> > $ ldd midgard.so
> >         libmidgard.so.3 => /usr/local/lib/libmidgard.so.3 (0x40061000)
> >         libc.so.6 => /lib/libc.so.6 (0x40073000)
> >         libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40186000)
> >         libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10 (0x401a3000)
> >         libm.so.6 => /lib/libm.so.6 (0x401d7000)
> >         libz.so.1 => /usr/lib/libz.so.1 (0x401fa000)
> >         libcrypt.so.1 => /lib/libcrypt.so.1 (0x40209000)
> >         libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40237000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >         libnsl.so.1 => /lib/libnsl.so.1 (0x4025a000)
> >
> > To achieve this, the linker line for php4 looked like this on my
> > system:
> >
> > gcc -shared  mgd_errno.lo midgard.lo article.lo parameter.lo
> > attachment.lo oop.lo topic.lo element.lo mail.lo group.lo file.lo
> > host.lo image.lo member.lo calendar.lo event.lo eventmember.lo page.lo
> > pageelement.lo pagelink.lo person.lo preferences.lo snippet.lo
> > snippetdir.lo style.lo sitegroup.lo preparser-parser.lo
> > preparser-scanner.lo preparser.lo  -lmidgard -lc  -Wl,-soname
> > -Wl,midgard.so -o .libs/midgard.so
> >
> > What's different in yours?
> >
> > Emile
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>--
>Mark Steele
>Vice president research and development
>Inet Technologies Inc.
>[EMAIL PROTECTED]
>
>010110010110111101110101001000000110000101110010011001010010000001100100011101010110110101100010
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to