Re: OS X 10.3.2

Anders Boegh Mortensen <[email protected]> Mon, 16 Feb 2004 03:07:39 +0100
Newsgroups gmane.comp.apache.mod-log-sql
Message-ID <[email protected]>
Super!!
This did the trick. Thanx for not bashing the newbie ;-)

//Anders

On 15/2-2004, at 18:53, Edward Rudd wrote:

> you need to specify --with-apxs /Library/Apache2/bin/apxs (or where 
> ever
> the APXS binary is for apache 2) to configure..
>
> ./configure --with-apxs=/Library/Apache2/bin/apxs
>
> The very end of the configure run shows that it found apache 1.3 NOT
> apache 2.0 and compiled an apache 1.3 module.
>
> The warning about -L paths not being found is because your mysql 
> headers
> and libs are in different locations that the default locations I 
> assume,
> but it seems as through they are in the default include path and 
> library
> path so the linker is finding them.
>
> Try passing the parameters to ./configure and see if it find apache 2.
> The end of the configure run should display
>
> Apache version : 20
> SSL Support    : no
>
> You can run ./configure --help to give a list of other parameters to
> pass to configure. (ie --enable-ssl to enable SSL logging support)
>
> On Sat, 2004-02-14 at 20:36, Anders Boegh Mortensen wrote:
>> Thanx for all the feedback! :-) but i had no luck...
>>
>> First of all - configure does not seem to find my Apache2installation
>> witch is: /Library/Apache2/
>> Here is the dump from ./configure:
>> -----------------
>> checking for gcc... gcc
>> checking for C compiler default output... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking build system type... powerpc-apple-darwin7.2.0
>> checking host system type... powerpc-apple-darwin7.2.0
>> checking target system type... powerpc-apple-darwin7.2.0
>> checking for apxs... /usr/sbin/apxs
>> checking for Apache 2.0 version >= 2.0.44... no
>> checking for Apache 1.3 version >= 1.3.20... yes
>> checking for floor in -lm... yes
>> checking for gzclose in -lz... yes
>> checking for mysql_init in -lmysqlclient... yes
>> checking for mysql_real_escape_string... yes
>> checking whether mysql clients can run... yes
>> checking how to run the C preprocessor... gcc -E
>> checking for ANSI C header files... no
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking limits.h usability... yes
>> checking limits.h presence... yes
>> checking for limits.h... yes
>> configure: creating ./config.status
>> config.status: creating stamp-h
>> config.status: creating Makefile
>> config.status: creating Documentation/Makefile
>> config.status: creating config.h
>> ------------------------------------
>> Apache version  : 13
>> SSL Support     : no
>> *** Use --enable-ssl to enable SSL support
>> *** and --with-ssl-inc for the directory for SSL headers
>> -----------------
>>
>>
>> Second - i dont know if make i succeeding:
>> ------------
>> gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os-pipe
>> -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE-I/usr/include/httpd
>> -Wall -Werror -fno-strict-aliasing-I/usr/local/mysql/include
>> -I/usr/include/mysql -I/usr/mysql/include-I/usr/local/include/mysql
>> -I/usr/local/mysql/include/mysql-I/usr/mysql/include/mysql
>> -DHAVE_CONFIG_H -DWITH_APACHE13  -cmod_log_sql.c
>> cc -bundle -undefined suppress -flat_namespace -Wl,-bind_at_load
>> -omod_log_sql.so mod_log_sql.o -L/usr/local/mysql/lib
>> -L/usr/lib/mysql-L/usr/mysql/lib -L/usr/local/lib/mysql
>> -L/usr/local/mysql/lib/mysql-L/usr/mysql/lib/mysql -lmysqlclient -lz
>> -lm
>> ld: warning -L: directory name (/usr/lib/mysql) does not exist
>> ld: warning -L: directory name (/usr/mysql/lib) does not exist
>> ld: warning -L: directory name (/usr/local/lib/mysql) does not exist
>> ld: warning -L: directory name (/usr/mysql/lib/mysql) does not exist
>> Making all in Documentation
>> ------------
>>
>> it outputs the'mod_log_sql.so'but i does'nt seem to work when copied
>> to /Library/Apache2/modules andi apply the Loadmodule:
>> -------
>> LoadModule log_sql_module modules/mod_log_sql.so
>> -------
>>
>> and do a graceful restart i get:
>> ----------
>> Cannot load /Library/Apache2/modules/mod_log_sql.so into server:
>> dyld:/Library/Apache2/bin/httpd Undefined symbols:
>> _ap_array_cat
>> _ap_bgetopt
>> _ap_ctx_get
>> _ap_get_gmtoff
>> _ap_make_array
>> _ap_make_sub_pool
>> _ap_palloc
>> _ap_pcalloc
>> _ap_pfclose
>> _ap_pfopen
>> _ap_psprintf
>> _ap_pstrcat
>> _ap_pstrdup
>> _ap_push_array
>> _ap_signal
>> _ap_snprintf
>> _ap_table_get
>> _ap_unparse_uri_components
>> -----------
>>
>> Maby this ring a bell for someone - well not for me :-)
>>
>> //Anders
>>
>> On 14/2-2004, at 03:02, Edward Rudd wrote:
>>
>>         Is configure failing to complete correctly? Could you providea
>>         little
>>         more information on the errors being given.. That will help
>>         greatly in
>>         tracking down the problem.
>>
>>         On Fri, 2004-02-13 at 10:09, Anders Boegh Mortensen wrote:
>>                 I give up!
>>                 After repeated attempts i have not succeeded in
>>                 compiling the module
>>                 :(
>>
>>                 I there a friendly sole out there that can post a link
>>                 to a
>>                 compiledversion of'mod_log_sql.so' ?
>>
>>                 Im running:
>>                 OS X 10.3.2
>>                 httpd: 2.0.48
>>                 mysql: 4.0.15
>>
>>                 Apache and Mysql is those
>>                 ofhttp://www.serverlogistics.com/software.php
>>
>>                 Kind regards
>>                 Anders
>>
>>                 On 12/2-2004, at 11:27, ian wrote:
>>
>>                         On 12 Feb 2004, at 03:16, Edward Rudd wrote:
>>
>>                                 OK..Thanks for the bug reports..
>>
>>                         After the first 'fix' you sent I thought they
>>                 were myproblems
>>                         and not bug reports :)
>>
>>                                 The next release will have docbook
>>                 documentation
>>                                 instead oflyx.
>>                                 Are you using MassVirtualHosting?
>>
>>                         Yes: so much for me thinking I'd included
>>                 everything in
>>                         myemail !
>>
>>                                 [snip fixes]
>>
>>                         Superb !
>>
>>                         That sorts out *everything* for me, so thank
>>                 you very much for
>>                         thequick patches: I now have no more excuses
>>                 for putting off
>>                         the CSSdesign work...
>>
>>                         I could make a passing reference to the time
>>                 Microsoft take to
>>                         fixproblems compared to OpenSource projects,
>>                 but that would
>>                         indeed be avery cheap shot.
>>
>>                         So I won't.
>>
>>                         TTFN,
>>                         --
>>                         ian.
>>                         GPG Fingerprint: D170 35A3 C858 6E85 9B5B
>>                 1557 4CD5 6F6F E176
>>                         2D0A
>>
>>
>>                 
>> ____________________________________________________________________
>>                         Reminder: to unsubscribe, send email to
>>                         <[email protected]>
>>                         with the words "unsubscribe mod_log_sql" in
>>                 the body (w/o
>>                         quotes).
>>                         The module homepage is
>>                 http://www.grubbybaby.com/mod_log_sql/
>>                         The list archives are here:
>>         
>> http://news.gmane.org/thread.php?group=gmane.comp.apache.mod-log-sql
>>         --
>>         Edward Rudd <[email protected]>
>>         Website http://outoforder.cc/
>>
>>         
>> ____________________________________________________________________
>>         Reminder: to unsubscribe, send email to
>>         <[email protected]>
>>         with the words "unsubscribe mod_log_sql" in the body (w/o
>>         quotes).
>>         The module homepage is http://www.grubbybaby.com/mod_log_sql/
>>         The list archives are here:
> http://news.gmane.org/thread.php?group=gmane.comp.apache.mod-log-sql
> -- 
> Edward Rudd <[email protected]>
> Website http://outoforder.cc/
>
> ____________________________________________________________________
> Reminder: to unsubscribe, send email to <[email protected]>
> with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
> The module homepage is http://www.grubbybaby.com/mod_log_sql/
> The list archives are here:
> http://news.gmane.org/thread.php?group=gmane.comp.apache.mod-log-sql
>