Re: Welcome to the freebsd-questions mailing list (Digest mode)

2006-02-26 Thread Fred McCann
I'm trying to configure mod_authn_dbd to use a mysql database. I'm  
running MySQL 5.0.18 and Apache 2.2 on FreeBSD 6.0-RELEASE.



Here's what I have for configuration:

# Database Management
DBDriver mysql

#Connection string: database name and login credentials
DBDParams dbname=UserDirectory user=readonly password=moo

#Parameters for Connection Pool Management
DBDMin  1
DBDKeep 2
DBDMax  10
DBDExptime 60

NameVirtualHost 192.168.1.7

VirtualHost 192.168.1.7:*
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/www/apache22/data
ServerName intranet.example.com
ErrorLog logs/intranet.example.com-error_log

Directory /usr/local/www/apache22/data
AuthType Basic
AuthName Intranet
AuthBasicProvider dbd
Require valid-user
AuthDBDUserPWQuery select password from  
user_permissions where username = %s

/Directory
/VirtualHost


When I try to start apache, I'm getting a segfault:

fry# /usr/local/etc/rc.d/apache22.sh onerestart
Performing sanity check on apache22 configuration:
Segmentation fault (core dumped)

I've tried removing each config option one at a time, and the  
offending directive is AuthDBDUserPWQuery. Is there something I'm  
doing wrong here? I've verified that the server is running, the  
username+password is correct, and the query is valid.


Is there anything I got wrong here? Is apr_dbd_mysql incompatible  
with my version of MySQL, FreeBSD, or Apache?


- Fred

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Release 5.4 make buildworld results in segfault

2005-10-19 Thread Fred McCann
I'm having a problem building from source with 5.4 release. I'm  
trying to set up my system (a new build from the 5.4 iso images  
downloaded yesterday) to use CVSup for updates.


Here's my supfile:

*default host=cvsup11.freebsd.org
*default release=cvs tag=RELENG_5_4
*default base=/var/db
*default prefix=/usr
*default delete use-rel-suffix

src-all
ports-archivers
ports-base
ports-databases
ports-devel
ports-dns
ports-editors
ports-ftp
ports-java
ports-lang
ports-mail
ports-misc
ports-net
ports-net-mgmt
ports-security
ports-shells
ports-sysutils
ports-www


I don't think there's anything obviously wrong there. I believe I  
have it set up to grab upates for 5.4 stable. Running cvsup seems to  
work just fine.


After cvsuping, I ran this in /usr/src:

rm -rf /usr/obj/usr/src  make cleandir  make buildworld

This ends in:

...
cc -O -pipe -DINFODIR=\/usr/share/info:/usr/local/info:/usr/X11R6/ 
info:.\ -DHAVE_CONFIG_H -DLOCALEDIR=\/usr/share/locale\  -I/usr/ 
src/gnu/usr.bin/texinfo/info/../../../../contrib/texinfo -I/usr/src/ 
gnu/usr.bin/texinfo/info/../../../../contrib/texinfo/lib  -I/usr/obj/ 
usr/src/i386/legacy/usr/include -c /usr/src/gnu/usr.bin/texinfo/ 
info/../../../../contrib/texinfo/info/search.c
cc -O -pipe -DINFODIR=\/usr/share/info:/usr/local/info:/usr/X11R6/ 
info:.\ -DHAVE_CONFIG_H -DLOCALEDIR=\/usr/share/locale\  -I/usr/ 
src/gnu/usr.bin/texinfo/info/../../../../contrib/texinfo -I/usr/src/ 
gnu/usr.bin/texinfo/info/../../../../contrib/texinfo/lib  -I/usr/obj/ 
usr/src/i386/legacy/usr/include -c /usr/src/gnu/usr.bin/texinfo/ 
info/../../../../contrib/texinfo/info/session.c
/usr/src/gnu/usr.bin/texinfo/info/../../../../contrib/texinfo/info/ 
session.c: In function `info_search_1':
/usr/src/gnu/usr.bin/texinfo/info/../../../../contrib/texinfo/info/ 
session.c:3780: internal compiler error: Segmentation fault

Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/texinfo/info.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/texinfo.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


What's strange about my issue is that buildworld always ends in an  
internal compiler error, but it's not always the same error. I tried  
running rm -rf /usr/obj/usr/src  make cleandir  make buildworld  
again and I get this:


...
cc -O -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\/usr/obj/usr/src/i386/ 
usr\ -I/u
sr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/ 
src/gnu/usr
.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/ 
cc_int/../../../../contrib/
gcc -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config - 
DHAVE_CONFI
G_H -DTARGET_NAME=\i386-fbsdproj-freebsd\ -DIN_GCC  -I/usr/obj/usr/ 
src/i386/le
gacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_int/../../../../ 
contrib/gcc/expr.

c
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/expr.c: In  
function `expa

nd_expr_real':
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/expr.c:9128:  
internal com

piler error: in remove_insn, at emit-rtl.c:3729
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc/cc_int.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


Another attempt at buildworld and the machine dumped core and stopped  
responding. I'm at a loss here. I'm following the instructions for  
setting up cvsup from the BSD Handbook and Absolute BSD. I'm not sure  
if I have a bad supfile and I'm missing something or if something  
more sinister is occuring. I can't figure out why I'm getting  
different errors when running the same commands. I've tried looking  
at the FAQs and some web forums, but I've got nothing. I would  
appreciate any suggestions.


Thanks

- Fred McCann
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]