Re: Finding options for ports

2004-11-17 Thread Chris Miller

On Mon, 15 Nov 2004, Kris Kennaway wrote:

 If the port has been converted to use OPTIONS, then there's already a
 list ('make showconfig').  If the port hasn't been converted to
 OPTIONS, it would still need to be converted to your proposed 'make
 showconfig', so you might as well just go all the way and make it use
 OPTIONS.

Good info. Below I used showconfig to find the options for php, and
obviously it's been converted as you mentioned. (read on)

%cd /usr/ports/lang/php4
%make showconfig
=== The following configuration options are set for php4-4.3.9:
 APACHE2=off Use apache 2.x instead of apache 1.3.x
 DEBUG=on Enable debug
 IPV6=off Enable ipv6 support

Unfortunately there are numerous other options that are not available.
Even the cat/grep method of searching for WITH doesn't yield the options
I would want to turn on for php. In this case there's a Makefile.ext which
I'm assuming refers to the many php modules from the distribution's ext
directory that I might want to include (see below). Using the grep method
for PHP_MODNAME, I find all the options I'm looking for, but (probably a
stupid question, but) how do I add more than one? Do I define PHP_MODNAME
more than once at the command line?

%make PHP_MODNAME=openssl PHP_MODNAME=xslt

I tried that, but neither of the modules were included in the build :-(

Anyway I think the showconfig method is the right way to go, but it
should include all possible options for a port, not just the popular ones.
Maybe php is a special case since it has a module framework and many other
ports do not. Maybe we need a make showmodules too? Thoughts?

In the short term, how do I get these modules compiled in to my php? :-)

Chris

%grep PHP_MODNAME Makefile.ext
COMMENT=The ${PHP_MODNAME} shared extension for php
PHP_MODNAME=${PKGNAMESUFFIX:S/-//}
WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME}
.if ${PHP_MODNAME} == bcmath
.if ${PHP_MODNAME} == bz2
.if ${PHP_MODNAME} == calendar
.if ${PHP_MODNAME} == crack
.if ${PHP_MODNAME} == ctype
.if ${PHP_MODNAME} == curl
.if ${PHP_MODNAME} == dba
.if ${PHP_MODNAME} == dbase
.if ${PHP_MODNAME} == dbx
.if ${PHP_MODNAME} == dio
.if ${PHP_MODNAME} == domxml
.if ${PHP_MODNAME} == exif
.if ${PHP_MODNAME} == filepro
.if ${PHP_MODNAME} == ftp
.if ${PHP_MODNAME} == gd
.if ${PHP_MODNAME} == gettext
.if ${PHP_MODNAME} == gmp
.if ${PHP_MODNAME} == iconv
.if ${PHP_MODNAME} == imap
.if ${PHP_MODNAME} == interbase
.if ${PHP_MODNAME} == ldap
.if ${PHP_MODNAME} == mbstring
.if ${PHP_MODNAME} == mcal
.if ${PHP_MODNAME} == mcrypt
.if ${PHP_MODNAME} == mcve
.if ${PHP_MODNAME} == mhash
.if ${PHP_MODNAME} == ming
.if ${PHP_MODNAME} == mnogosearch
.if ${PHP_MODNAME} == mssql
.if ${PHP_MODNAME} == mysql
.if ${PHP_MODNAME} == ncurses
.if ${PHP_MODNAME} == odbc
.if ${PHP_MODNAME} == openssl
.if ${PHP_MODNAME} == oracle
.if ${PHP_MODNAME} == overload
.if ${PHP_MODNAME} == pcntl
.if ${PHP_MODNAME} == pcre
.if ${PHP_MODNAME} == pgsql
.if ${PHP_MODNAME} == posix
.if ${PHP_MODNAME} == pspell
.if ${PHP_MODNAME} == readline
.if ${PHP_MODNAME} == recode
.if ${PHP_MODNAME} == session
.if ${PHP_MODNAME} == shmop
.if ${PHP_MODNAME} == snmp
.if ${PHP_MODNAME} == sockets
.if ${PHP_MODNAME} == sybase_ct
.if ${PHP_MODNAME} == sysvmsg
.if ${PHP_MODNAME} == sysvsem
.if ${PHP_MODNAME} == sysvshm
.if ${PHP_MODNAME} == tokenizer
.if ${PHP_MODNAME} == wddx
.if ${PHP_MODNAME} == xml
.if ${PHP_MODNAME} == xmlrpc
.if ${PHP_MODNAME} == xslt
.if ${PHP_MODNAME} == yp
.if ${PHP_MODNAME} == zlib
.if ${PHP_MODNAME} == dba
.if ${PHP_MODNAME} == domxml
.if ${PHP_MODNAME} == gd
.if ${PHP_MODNAME} == imap
.if ${PHP_MODNAME} == mbstring
.if ${PHP_MODNAME} == openssl
.if ${PHP_MODNAME} == snmp
.if ${PHP_MODNAME} == zlib
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Memory leak in Perl?

2004-06-24 Thread Chris Miller

I'm running perl-threaded-5.8.4 from ports to support spf-milter

http://spf.pobox.com/sendmail-milter-INSTALL.txt

Perl seems to eat memory over a few hours and eventually dies. Most
spf-milter users report memory usage of ~25MB, but I've seen memory use in
excess of 110MB. I know there was a memory leak reported in Perl 5.8.2 but
I've found nothing on 5.8.4. Has anyone else experienced this with
threaded perl?

Regards,
Chris

Chris Miller
NetGate Internet
An iStrata Company
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


What makes a driver dynamically loadable? (fwd)

2004-03-17 Thread Chris Miller

I'm working on a custom device driver. I've created my source files in the
/usr/src/sys/dev tree as well as created a corresponding directory in
/usr/src/sys/modules with a Makefile, and updated the parent Makefile. I
can indeed generate a kernel object and load it into the active kernel,
but it doesn't appear to get called when my device (USB in this case) is
attached. If I add my device to the kernel conf file and build a custom
kernel, it works fine.

I've used other device drivers as a template and have included all the
declarations the appear to be necessary :

USB_DECLARE_DRIVER(ulabjack);
DRIVER_MODULE(ulabjack, uhub, ulabjack_driver, ulabjack_devclass,
usbd_driver_load, 0);

During my development it's a lot easier to load/unload/modify the driver
without recompiling the kernel. So what step am I missing?

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


Re: Invalid partition error after install (more info)

2003-02-27 Thread Chris Miller

Upon further investigation I was able to use the default MBR by running
the fixit disk and using disklable -B da0s1. The question is, why must I
take this extra step every time I load FBSD on a scsi drive?

Regards,
Chris

On Tue, 25 Feb 2003, Chris Miller wrote:

 
 It seems everytime I install on a scsi disk without the boot manager
 option (i.e. it's a single OS machine), I cannot boot the system after
 install. I have to create a fixit disk and install the boot manager in
 order to use the system. I've seen various complaints in the email
 archives about boot problems after install, but no definitive explanation
 of this specific problem. Am I doing something wrong or is this something
 that can be fixed. I've had this problem since I started with 4.5, but I
 suspect it's been around longer.
 
 Regards,
 Chris
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Invalid partition error after install

2003-02-25 Thread Chris Miller

It seems everytime I install on a scsi disk without the boot manager
option (i.e. it's a single OS machine), I cannot boot the system after
install. I have to create a fixit disk and install the boot manager in
order to use the system. I've seen various complaints in the email
archives about boot problems after install, but no definitive explanation
of this specific problem. Am I doing something wrong or is this something
that can be fixed. I've had this problem since I started with 4.5, but I
suspect it's been around longer.

Regards,
Chris


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message