ldd httpd
        libm.so.6 => /lib/libm.so.6 (0x40017000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40034000)
        libdb.so.3 => /lib/libdb.so.3 (0x40061000)
        libdl.so.2 => /lib/libdl.so.2 (0x4009b000)
        libc.so.6 => /lib/libc.so.6 (0x4009e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Modified src/makefile as follows:

#LIBS1=  -lm -lcrypt -lndbm -ldb -ldl
LIBS1= -lpthread -lm -lcrypt - ldl

and ran make install in apache_1.3.19

Still fails to start -

(gdb) bt
#0  0x4000a6d1 in _dl_debug_state () at dl-debug.c:56
#1  0x4017b4e6 in _dl_close (map=0x80c5610) at dl-close.c:195
#2  0x4009c0c0 in dlclose_doit (handle=0x80c5610) at dlclose.c:26
#3  0x4000a3eb in _dl_catch_error (errstring=0x4009dd00,
    operate=0x4009c0a8 <dlclose_doit>, args=0x80c5610) at dl-error.c:141
#4  0x4009c549 in _dlerror_run (operate=0x4009c0a8 <dlclose_doit>,
    args=0x80c5610) at dlerror.c:125
#5  0x4009c08e in dlclose (handle=0x80c5610) at dlclose.c:32
#6  0x8070760 in ap_os_dso_unload ()
#7  0x804f4f0 in unload_module ()
#8  0x80512fe in run_cleanups ()
#9  0x804fb2d in ap_clear_pool ()
#10 0x805ff63 in standalone_main ()
#11 0x8060813 in main ()
#12 0x400b61eb in __libc_start_main (main=0x80604cc <main>, argc=4,
    argv=0xbffffd44, init=0x804ea94 <_init>, fini=0x8094f9c <_fini>,
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffd3c)
    at ../sysdeps/generic/libc-start.c:90

and ldd httpd gives..
        libm.so.6 => /lib/libm.so.6 (0x40017000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40034000)
        libdb.so.3 => /lib/libdb.so.3 (0x40061000)
        libdl.so.2 => /lib/libdl.so.2 (0x4009b000)
        libc.so.6 => /lib/libc.so.6 (0x4009e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Looks as though lpthreads not used?

locate lpthreads gave no result.

-----Original Message-----
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 03, 2001 2:37 PM
Subject: PHP 4.0 Bug #9529 Updated: php4_module is garbled

ID: 9529
Updated by: sniper
Status: Feedback
Bug Type: Apache related
Assigned To:

Is apache linked with libpthreads.so?  ( ldd httpd )
If not,  edit the apache makefile:


and add -lpthread into LIBS1:

LIBS1= -lpthread -lm -lcrypt -ldl

and  in apache_1.3.19 direcotory:

# make install


Previous Comments:

[2001-03-03 17:44:00] [EMAIL PROTECTED]
Was apache installed from RPM or compiled from sources?



[2001-03-02 14:51:06] [EMAIL PROTECTED]
After installing php-4.0.4pl1 tarball when starting Apache get the

Syntax error on line 222 of /usr/local/apache/conf/httpd.conf:
API module structure `php4_module' in file
is garbled - perhaps this is not an Apache module DSO?

Line 222 is LoadModule php4_module  libexec/libphp4.so

PHP was configured as follows...

./config --with-mysql=/usr
> --with-apxs=/usr/local/apache/bin/apxs
> --with-xml
> --with-mycrypt
> --with-gd
> --enable-track-vars
> --enable-magic-quotes

No errors reported during configure, make or make install.

Running ldd on libphp4.so gives...

        libpam.so.0 => /lib/libpam.so.0 (0x40121000)
        libdl.so.2 => /lib/libdl.so.2 (0x4012a000)
        libgd.so.1 => /usr/lib/libgd.so.1 (0x4012d000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40163000)
        libm.so.6 => /lib/libm.so.6 (0x40172000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4018e000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x401bb000)
        libmysqlclient.so.6 => /usr/lib/libmysqlclient.so.6 (0x401d2000)
        libc.so.6 => /lib/libc.so.6 (0x401e5000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libz.so.1 => /usr/lib/libz.so.1 (0x402d8000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x402e7000)
undefined symbol: ap_block_alarms       (./libphp4.so)
undefined symbol: ap_unblock_alarms     (./libphp4.so)
undefined symbol: ap_user_id    (./libphp4.so)
undefined symbol: ap_server_root        (./libphp4.so)
undefined symbol: ap_group_id   (./libphp4.so)
undefined symbol: ap_user_name  (./libphp4.so)
undefined symbol: top_module    (./libphp4.so)
undefined symbol: ap_max_requests_per_child     (./libphp4.so)
undefined symbol: ap_table_get  (./libphp4.so)
undefined symbol: ap_update_mtime       (./libphp4.so)
undefined symbol: ap_kill_timeout       (./libphp4.so)
undefined symbol: ap_uudecode   (./libphp4.so)
undefined symbol: ap_setup_client_block (./libphp4.so)
undefined symbol: ap_add_cgi_vars       (./libphp4.so)
undefined symbol: ap_getword    (./libphp4.so)
undefined symbol: ap_getword_nulls_nc   (./libphp4.so)
undefined symbol: ap_destroy_sub_req    (./libphp4.so)
undefined symbol: ap_pstrdup    (./libphp4.so)
undefined symbol: ap_log_error  (./libphp4.so)
undefined symbol: ap_table_add  (./libphp4.so)
undefined symbol: ap_sub_req_lookup_uri (./libphp4.so)
undefined symbol: ap_run_sub_req        (./libphp4.so)
undefined symbol: ap_register_cleanup   (./libphp4.so)
undefined symbol: ap_signal     (./libphp4.so)
undefined symbol: ap_send_http_header   (./libphp4.so)
undefined symbol: ap_block_alarms       (./libphp4.so)
undefined symbol: ap_set_etag   (./libphp4.so)
undefined symbol: ap_rwrite     (./libphp4.so)
undefined symbol: ap_table_set  (./libphp4.so)
undefined symbol: ap_get_client_block   (./libphp4.so)
undefined symbol: ap_add_version_component      (./libphp4.so)
undefined symbol: ap_hard_timeout       (./libphp4.so)
undefined symbol: ap_rflush     (./libphp4.so)
undefined symbol: ap_set_last_modified  (./libphp4.so)
undefined symbol: ap_reset_timeout      (./libphp4.so)
undefined symbol: ap_unblock_alarms     (./libphp4.so)
undefined symbol: ap_add_common_vars    (./libphp4.so)


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9529&edit=2

PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to