Re: Question about Apache2 Port and FreeBSD 6 kernel options

2006-06-25 Thread Clement Laforet
On Sun, Jun 25, 2006 at 01:41:20PM +0200, FreeBSD-Ports wrote:
> Hi,
> 
> Today I installed a custom kernel from 6.1-RELEASE-p1 source and after
> that Apache2 will not start anymore. It segfaults when starting. After
> making and installing a GENERIC kernel Apache does start and runs fine!
> The Apache errors I got are:
> 
> - in httpd_error.log: Sun Jun 25 12:21:44 2006] [warn] pid file
> /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache
> run?
> - in /var/log/messages: Jun 25 12:21:44 lambda.socruel.nu pid 2608
> (httpd), uid 0: exited on signal 12 (core dumped)

"Exiting on signal 12" means that httpd tryies to use syscalls 
that your kernel doesn't support. I think that the removal of 
"options SYSYV*" is the cause of your problem.
Could you please tries those 2 tests to confirms this?
1.
rebuild a custom kernel, named TEST, which is the same as your custom 
one, except you keep SYSVS* options.
Then boot on it, and test if httpd starts properly.
2. 
Rebuild apache when you run your custom kernel to see if configure 
script catch the lack of SYSVS support.

regards,
clem


pgp6RMilOKKqS.pgp
Description: PGP signature


Re: Question about Apache2 Port and FreeBSD 6 kernel options

2006-06-25 Thread Clement Laforet
> Did the first test, build a custom kernel but now with the 3 SYSV memory
> options, and Apache2 has started ok with this and is running ok now. So
> the SYSV memory options are needed and were causing the problem.
> 
> Is the second test also needed because I have to go back to the wrong
> kernel to test that I guess?

It's just for testing purpose actually, because I'm curious. My 
crashboxes are currently used or dead so I can't investigate right 
now. If you really want to get rid of SysV stuff, you may want to know 
how apache2 lives without it. I'm pretty sure it will be ok, but 
apache must be rebuilt.

clem


pgpHvv1AATvEk.pgp
Description: PGP signature


Re: ap22-mod_auth_pam

2010-08-08 Thread Clement Laforet

On Wed, Aug 04, 2010 at 03:27:50PM +, Philip M. Gollucci wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 08/04/10 10:48, Andrea Venturoli wrote:
> > Hello.
> > I've been using mod_auth_pam everywhere for years.
> > Yet I cannot seem to get it to work on a 7.2/i386 box of mine.
> > 
> > Here's what I get when I try to start it:
> > 
> > httpd: Syntax error on line 104 of /usr/local/etc/apache22/httpd.conf:
> > Cannot load /usr/local/libexec/apache22/mod_auth_pam.so into server:
> > /usr/local/libexec/apache22/mod_auth_pam.so: Undefined symbol "pam_end"
> 
> ldd /usr/local/libexec/apache22/mod_auth_pam.so
> 
> Looks like my
> AP_FAST_BUILD=  yes
> AP_GENPLIST=yes
> 
> sweep broke it.  I'll revert / fix this later today, in the meantime,
> just use the previous version of the port.

here's a patch.

clem
--- Makefile.orig   2010-08-08 17:27:24.0 +0200
+++ Makefile2010-08-08 17:27:47.0 +0200
@@ -28,6 +28,7 @@
 
 AP_FAST_BUILD= yes
 AP_GENPLIST=   yes
+AP_EXTRAS+=-L/usr/lib -lpam
 
 post-install:
 .if !defined(NOPORTEXAMPLES)


pgpX2enOEomz2.pgp
Description: PGP signature


Re: ap22-mod_auth_pam

2010-08-08 Thread Clement Laforet
On Sun, Aug 08, 2010 at 05:32:23PM +0200, Clement Laforet wrote:
> 
> here's a patch.
> 
> clem

oops. "-L/usr/lib" is useless

clem
--- Makefile.orig   2010-08-08 17:27:24.0 +0200
+++ Makefile2010-08-08 18:00:06.0 +0200
@@ -28,6 +28,7 @@
 
 AP_FAST_BUILD= yes
 AP_GENPLIST=   yes
+AP_EXTRAS+=-lpam
 
 post-install:
 .if !defined(NOPORTEXAMPLES)


pgp7f7HxP1NKs.pgp
Description: PGP signature


[CFT] Hadoop preliminary port

2011-08-08 Thread Clement Laforet
Hi,

You can find a preliminary port of hadoop 0.20.203.0 here:
http://people.freebsd.org/~clement/hadoop/

Features:
- Hadoop user creation (UID: 950)
- basic rc scripts for all hadoop services
- native library build for current platform (i.e. 386 or amd64)
- bin/hadoop wrapper

ToDo:
- Work on environment variables
- rc scripts clean up
- test test test
- install contrib
- install c++ stuff in ${PREFIX}

All configuration files live in ${PREFIX}/etc/hadoop, log files in 
/var/log/hadoop, and $HADOOP_HOME is ${PREFIX}/hadoop.


Thanks for your help,

clem


pgp4rGd8pMp6O.pgp
Description: PGP signature


Re: [CFT] Hadoop preliminary port

2011-08-08 Thread Clement Laforet
On Mon, Aug 08, 2011 at 11:14:32AM +0200, Clement Laforet wrote:
> Hi,
> 
> You can find a preliminary port of hadoop 0.20.203.0 here:
> http://people.freebsd.org/~clement/hadoop/

Basic hive and pig ports are available here too.

clem

> Features:
> - Hadoop user creation (UID: 950)
> - basic rc scripts for all hadoop services
> - native library build for current platform (i.e. 386 or amd64)
> - bin/hadoop wrapper
> 
> ToDo:
> - Work on environment variables
> - rc scripts clean up
> - test test test
> - install contrib
> - install c++ stuff in ${PREFIX}
> 
> All configuration files live in ${PREFIX}/etc/hadoop, log files in 
> /var/log/hadoop, and $HADOOP_HOME is ${PREFIX}/hadoop.
> 
> 
> Thanks for your help,
> 
> clem




pgpx4RfFcWEI5.pgp
Description: PGP signature


Re: change in apache port configuration options

2008-01-28 Thread Clement Laforet
Hi,

On Sun, Jan 27, 2008 at 09:36:55PM -0500, Vivek Khera wrote:
> It seems that the recent changes to the apache20 port Makefile.modules  
> has broken how I've been configuring my systems.
> 
> In my make.conf file I have globally set the following:
> 
> WITH_BDB_VER=43
> 
> which instructs many ports to use that version of Berkeley DB.
> 
> Furtnermore, in my apache configuration in make.conf, I have:
> 
> .if ${.CURDIR:M*/www/apache2*}
> WITH_PROXY_MODULES=YES
> WITH_BERKELEYDB=db${WITH_BDB_VER}
> .endif
> 
> Now, this worked just fine for a long time, but as of the latest  
> updates to apache20 port, I get this error:
> 
> Variable WITH_BDB_VER is recursive.
[snip]
 
> The fix seems to be setting WITH_BDB instead of setting  
> WITH_BERKELEYDB with the version.

WITH_BERKELEYDB is now deprecated in favor of WITH_BDB in order to
make BDB support consistent with the rest of the ports tree.

When I add compatibility stuff, I didn't think WITH_BDB_VER could have
been already set (shame on me!). It's now fixed in CVS. Thanks.

clem


pgpEx864gqhvY.pgp
Description: PGP signature


Re: [Fwd: Re: apache22 - package tools out of date?]

2008-09-03 Thread Clement Laforet
On Wed, Sep 03, 2008 at 03:17:57PM -0400, Philip M. Gollucci wrote:
> Philip M. Gollucci wrote:
> > This should fix it, untested --
> > 
> > http://people.freebsd.org/~pgollucci/needs_approval/www_apache22-2.2.9.diff
> Ha!, clement@ beat me to it, its committed.
> 
I just hope it will fix the issue ;)

Thanks,

clem


pgpqGMjZgPmiC.pgp
Description: PGP signature


Re: apache22 - package tools out of date?

2008-09-03 Thread Clement Laforet
On Wed, Sep 03, 2008 at 07:00:37PM +0200, Christer Solskogen wrote:
> Building apache22 works fine, but installing it gives me the following
> output.

Fixed thanks!

clem


pgpyRrNbrLTAk.pgp
Description: PGP signature


Re: full FreeBSD package/port support in CFengine

2007-05-09 Thread Clement Laforet
On Wed, May 09, 2007 at 01:33:13AM -0700, Jo Rhett wrote:
> This is a copy of a posting made to the cfengine list.  I've added 
> freebsd's package manager to the cfengine supported package commands, 
> and actually updated it to handle package removal and upgrades.

Excellent, thanks!

[snip]
> 
> pkg_add really needs a command line option instead of only using the 
> environment variables...

"pkg_add -r http://my.freebsd-repo.com/packages/All/my_packages-1.0.tbz";
works fine ;-)

clem


pgpIW7r0ln2Nn.pgp
Description: PGP signature


Re: apache-2.0.61?

2007-09-09 Thread Clement Laforet
Hi !
On Sun, Sep 09, 2007 at 01:16:41PM +0200, Stefan Bethke wrote:
> is there any particular reason why the port hasn't been updated to  
> 2.0.61 yet?

I'm currently working on it (and apache 2.2.6). It should be committed 
in the next hours.

clem




pgpzgyky1GVam.pgp
Description: PGP signature


Re: cvs commit: ports/www/apache22 Makefile distinfo pkg-plist ports/www/apache22/files apache22.sh.in patch-Makefile.in patch-docs_conf_extra_httpd-ssl.conf.in

2007-09-16 Thread Clement Laforet
On Sun, Sep 16, 2007 at 08:47:18PM +0300, Andrey Slusar wrote:
> Sun, 16 Sep 2007 13:45:07 +1000, Peter Jeremy wrote:
> 
> > On Sun, Sep 09, 2007 at 02:55:17PM +0000, Clement Laforet wrote:
> > >  Log:
> > >  - Update to 2.2.6
> 
> > This breaks if IPv6 support is not compiled in:
> > ...
> > /var/obj/home/ports/www/apache22/work/httpd-2.2.6/srclib/apr/libtool 
> > --silent --mode=link cc   -O2 -fno-strict-aliasing -pipe -march=athlon-xp   
> > -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -L/usr/lib  
> > -rpath=/usr/lib:/usr/local/lib -o htpasswd  htpasswd.lo   -lm 
> > /var/obj/home/ports/www/apache22/work/httpd-2.2.6/srclib/pcre/libpcre.la 
> > /var/obj/home/ports/www/apache22/work/httpd-2.2.6/srclib/apr-util/libaprutil-1.la
> >  -lexpat -liconv 
> > /var/obj/home/ports/www/apache22/work/httpd-2.2.6/srclib/apr/libapr-1.la 
> > -lcrypt -lpthread
> > /var/obj/home/ports/www/apache22/work/httpd-2.2.6/srclib/apr/.libs/libapr-1.so:
> >  undefined reference to `find_if_index'
> > *** Error code 1
> 
> > httpd-2.2.6/srclib/apr/network_io/unix/multicast.c defines find_if_index()
> > only if IPv6 support is enabled.  Unfortunately, one reference to
> > find_if_index() is not protected by APR_HAVE_IPV6.
> 
>  This is patch to fix it error:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/115200

Fix committed, thanks!

clem


pgpSDxzgvwQuN.pgp
Description: PGP signature


Re: apache startup fails

2007-10-11 Thread Clement Laforet
On Wed, Oct 10, 2007 at 12:28:23PM -0400, Vivek Khera wrote:
> I have apache (2.0.59 from the port) configured on a 6.2/amd64 box  
> like this in my rc.conf:

It should be fixed with 2.0.61

clem


pgpMusXqBAHMz.pgp
Description: PGP signature


Re: Apache 2.2 and Postgres

2006-08-19 Thread Clement Laforet
Hi Alan,
On Thu, Aug 17, 2006 at 02:24:31PM -0700, alan bryan wrote:
> Hi,
> 
> I'm trying to get Apache 2.2 and Postgres to work together so that I
> can use mod_authn_dbd.
> 
> I think the problem is that APR is not being passed the correct
> arguments so that it configures with PGSQL support.
> 
> # ldd /usr/local/libexec/apache22/mod_authn_dbd.so
> /usr/local/libexec/apache22/mod_authn_dbd.so:
> # ldd /usr/local/libexec/apache22/mod_dbd.so
> /usr/local/libexec/apache22/mod_dbd.so:
> 
> Shouldn't there be various pgsql things listed here?
No. dbd relies on apr-util.

mod_authn_dbd -> mod_dbd -> libaprutil.so.

> I compiled ports/apache22 with WITH_PGSQL=yes and also tried
> WITH_PGSQL=/usr/local/pgsql with no changes in result.  Am I doing
> something wrong here?
No, except WITH_PGSQL is just a flag, you can't pass a customized 
path to WITH_PGSQL (it uses bsd.databases.mk). 

I don't use pgsql and I tested with gforge sample config file:
here what I got:
# make WITH_PGSQL=yes install clean

## ldd /usr/local/lib/libaprutil-1.so
/usr/local/lib/libaprutil-1.so:
libpq.so.3 => /usr/local/lib/libpq.so.3 (0x8817b000)
libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x88237000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x88255000)
libapr-1.so.2 => /usr/local/lib/libapr-1.so.2 (0x88342000)
libcrypt.so.3 => /lib/libcrypt.so.3 (0x88362000)
libpthread.so.2 => /usr/lib/libpthread.so.2 (0x8837a000)
libintl.so.6 => /usr/local/lib/libintl.so.6 (0x8839f000)
libssl.so.4 => /usr/lib/libssl.so.4 (0x883a8000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x883d6000)
libm.so.4 => /lib/libm.so.4 (0x884c9000)
libz.so.3 => /lib/libz.so.3 (0x884df000)
#cat /usr/local/etc/apache22/Includes/pg.conf 
DBDriver pgsql
DBDParams "dbhost=localhost dbname=gforge user=gforge pass=x"
DBDMin 1
DBDKeep 2
DBDMax 10
DBDExptime 60

# grep _dbd /usr/local/etc/apache22/httpd.conf 
LoadModule authn_dbd_module libexec/apache22/mod_authn_dbd.so
LoadModule dbd_module libexec/apache22/mod_dbd.so

# /usr/local/etc/rc.d/apache22.sh restart

# grep DBD /var/log/httpd-error.log| head -2
[Sat Aug 19 13:20:25 2006] [crit] (20014)Internal error: DBD: Can't connect to 
pgsql
[Sat Aug 19 13:20:25 2006] [crit] (20014)Internal error: DBD: failed to 
initialise

Driver is found.
Please ensure you have all modules activated. When reinstalling 
apache, LoadModule list isn't updated if httpd.conf exists.

regards,
clem


pgpi2FNMlAvk9.pgp
Description: PGP signature