Hi all,

I have the same problem. I manually linked again with the missing
'-lmidgard -lc' options, then I copied the resulting midgard.so
to /usr/lib/php4/extensions/no-debug-non-zts-20001222/.

Now the files look like this:

root@linuxserver:/# ls -l /usr/local/lib/libmidgard.*
-rw-r--r--    1 root     staff      464438 May 29 14:20
/usr/local/lib/libmidgard.a
-rwxr-xr-x    1 root     staff         733 May 29 14:20
/usr/local/lib/libmidgard.la*
lrwxrwxrwx    1 root     staff          19 May 29 14:20
/usr/local/lib/libmidgard.so -> libmidgard.so.3.1.0*
lrwxrwxrwx    1 root     staff          19 May 29 14:20
/usr/local/lib/libmidgard.so.3 -> libmidgard.so.3.1.0*
-rwxr-xr-x    1 root     staff      231773 May 29 14:20
/usr/local/lib/libmidgard.so.3.1.0*
root@linuxserver:/# ls -l /usr/lib/apache/1.3/mod_mi*
-rwxr-xr-x    1 root     root        31687 May 29 14:40
/usr/lib/apache/1.3/mod_midgard.so*
-rw-r--r--    1 root     root        11416 Mar 26 19:36
/usr/lib/apache/1.3/mod_mime.so
-rw-r--r--    1 root     root        18052 Mar 26 19:36
/usr/lib/apache/1.3/mod_mime_magic.so
ls
root@linuxserver:/# ls -l
/usr/lib/php4/extensions/no-debug-non-zts-20001222/mid*
-rwxr-xr-x    1 root     root      2099803 May 30 17:05
/usr/lib/php4/extensions/no-debug-non-zts-20001222/midgard.so*
-rwxr-xr-x    1 root     root      2099763 May 30 16:12
/usr/lib/php4/extensions/no-debug-non-zts-20001222/midgard.so.broken*

(Sorry about the long lines...)

But unfortunately it gives the same error again. Here are the ldd and
objdump -t outputs:

root@linuxserver:/# ldd
/usr/lib/php4/extensions/no-debug-non-zts-20001222/midgard.so
        libmidgard.so.3 => /usr/local/lib/libmidgard.so.3 (0x4005e000)
        libc.so.6 => /lib/libc.so.6 (0x4006f000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40181000)
        libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10
(0x4019e000)
        libm.so.6 => /lib/libm.so.6 (0x401d2000)
        libz.so.1 => /usr/lib/libz.so.1 (0x401f5000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40204000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40232000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40255000)
root@linuxserver:/# objdump -t
/usr/lib/php4/extensions/no-debug-non-zts-20001222/midgard.so|grep
idgard_user_call_func
00000000         *UND*  00000000              midgard_user_call_func

(Although, the same row is in the midgard.so.broken, which is bound 
only to libc and ldlinux.)

The most interesting is the following:

fery@linuxserver:~/download/midgard/midgard-php4-1.4.1-7$ objdump -t
midgard.o

midgard.o:     file format elf32-i386

SYMBOL TABLE:
00000000 l    df *ABS*  00000000 midgard.c
00000000 l    d  .text  00000000
00000000 l    d  .data  00000000
00000000 l    d  .bss   00000000
00000000 l       .text  00000000 gcc2_compiled.
00000000 l    d  .debug_abbrev  00000000
00000000 l    d  .debug_info    00000000
00000000 l    d  .debug_line    00000000
00000000 l    d  .rodata        00000000
00000000 l    d  .eh_frame      00000000
00000000 l       .eh_frame      00000000 __FRAME_BEGIN__
00000000 l    d  .note  00000000
00000000 l    d  .comment       00000000

fery@linuxserver:~/download/midgard/midgard-php4-1.4.1-7$

And that's all! No errors or warning for compiling, simply empty.

Here are the files to compare:
fery@linuxserver:~/download/midgard/midgard-php4-1.4.1-7$ ls -l
midgard.{c,lo}
-rw-r--r--    1 fery     fery        22906 Apr 14 21:06 midgard.c
-rw-r--r--    1 root     fery        33556 May 30 16:09 midgard.lo

I think I also have to use the CVS version.

Is there anybody who uses this version without any problems?

Bye:
Circum

> > 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to