Fwd: php extensions compile error

2005-09-09 Thread Vizion


--  Forwarded Message  --

Subject: php extensions compile error
Date: Friday 09 September 2005 12:21
From: Vizion [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Kevin Kinsey [EMAIL PROTECTED]

Compile error

/usr/ports/lang/php5-extensions
*
dns1# make
===  Vulnerability check disabled, database not found
===  Found saved configuration for php5-extensions-1.0
===  Extracting for php5-extensions-1.0
===  Patching for php5-extensions-1.0
===  Configuring for php5-extensions-1.0
dns1# make
dns1# make install
===  Installing for php5-extensions-1.0
.
/* much cut out */
.
= Checksum OK for PECL/Fileinfo-1.0.tgz.
===  Patching for pecl-fileinfo-1.0
===  Applying FreeBSD patches for pecl-fileinfo-1.0
===   Ignoring
patchfile /usr/ports/sysutils/pecl-fileinfo/files/patch-config.m4,v
===   pecl-fileinfo-1.0 depends on executable: phpize - found
===   pecl-fileinfo-1.0 depends on file: /usr/local/bin/autoconf259 - found
===  PHPizing for pecl-fileinfo-1.0
Configuring for:
PHP Api Version: 20031224
Zend Module Api No:  20041030
Zend Extension Api No:   220040412
===  Configuring for pecl-fileinfo-1.0
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd5.3
checking host system type... i386-portbld-freebsd5.3
checking for i386-portbld-freebsd5.3-gcc... cc
checking for C compiler default output file name... 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 cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/20041030
checking for re2c... exit 0;
checking for gawk... gawk
checking for fileinfo support... yes, shared
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
===  Script configure failed unexpectedly.
Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
/usr/ports/sysutils/pecl-fileinfo/work/Fileinfo-1.0/config.log including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/sysutils/pecl-fileinfo.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
/*OUTPUT OF
/usr/ports/sysutils/pecl-fileinfo/work/Fileinfo-1.0/config.log */

***
dns1# locate libmagic
/usr/lib/libmagic.a
/usr/lib/libmagic.so
/usr/lib/libmagic.so.1
/usr/lib/libmagic_p.a
/usr/share/man/cat3/libmagic.3.gz
/usr/share/man/man3/libmagic.3.gz
/usr/src/contrib/file/libmagic.man
/usr/src/contrib/file/libmagic.man,v
/usr/src/lib/libmagic
/usr/src/lib/libmagic/Makefile
/usr/src/lib/libmagic/Makefile,v
/usr/src/lib/libmagic/config.h
/usr/src/lib/libmagic/config.h,v
**

dns1# cat /usr/ports/sysutils/pecl-fileinfo/work/Fileinfo-1.0/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --with-fileinfo=/usr --prefix=/usr/local
i386-portbld-freebsd5.3

## - ##
## Platform. ##
## - ##

hostname = dns1.vizion2000.net
uname -m = i386
uname -r = 5.3-RELEASE
uname -s = FreeBSD
uname -v = FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/local/libexec/autoconf259
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/X11R6/bin
PATH: /root/bin


## --- ##
## Core tests. ##
## --- ##

configure:1499: checking build system type
configure:1517: result: i386-portbld-freebsd5.3
configure:1525: checking host system type
configure:1539: result: i386-portbld-freebsd5.3
configure:1601: checking for i386-portbld-freebsd5.3-gcc
configure:1627: result: cc
configure:1909: checking for C compiler version
configure:1912: cc --version /dev/null 5
cc (GCC) 3.4.2 [FreeBSD] 20040728
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions

Re: Fwd: php extensions compile error

2005-09-09 Thread Vizion
I also posted the following to freebsd-questions which has some relevance to 
this thread - but I was uncertain about posting my earlier full report t that 
list. 

--  Forwarded Message  --

Subject: libmagic files missing??
Date: Friday 09 September 2005 15:46
From: Vizion [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org

Hi

Here is the listing of:
/usr/src/lib/libmagic
dns1# ls -l
total 1276
-rw-r--r--  1 root  wheel 1619 Dec 16  2004 Makefile
-r--r--r--  1 root  wheel 3859 Apr  2 22:28 Makefile,v
-rw-r--r--  1 root  wheel 5783 Aug  9  2004 config.h
-r--r--r--  1 root  wheel 6277 Apr  2 22:28 config.h,v
-rw-r--r--  1 root  wheel  1236221 Sep  9 15:34 magic
-rwxr-xr-x  1 root  wheel22879 Sep  9 15:34 mkmagic

I am getting compile problems over libmagic and am wondering how I can be
certain that all libmagic files are on the system.

dns1# pwd
/usr/share/misc
dns1# ls -l | grep magic
-r--r--r--  1 root  wheel   360801 Nov  4  2004 magic
-r--r--r--  1 root  wheel   771456 Nov  4  2004 magic.mgc
-r--r--r--  1 root  wheel30231 Nov  4  2004 magic.mime
-r--r--r--  1 root  wheel41728 Nov  4  2004 magic.mime.mgc

/usr/ports/lang/php5-extensions compile reporting it cannot find libmagic

Can anyone please  point a fingure in the right direction

thanks

david

--
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

---

-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


/usr/ports/www/phpbb --? Makefile query

2005-09-08 Thread Vizion
The makefile has the following lines:

PHPBBDIR=   ${WWWDOCROOT}/${PHPBBURL}
PKGOPTS=${FILESDIR}/pkg-opts
EXCEPTFILES=${PREFIX}/${PHPBBDIR}/install/install.php \
${PREFIX}/${PHPBBDIR}/install/upgrade.php \
${PREFIX}/${PHPBBDIR}/install/update_to_latest.php

In my case DocumentRoot is:
WWWDOCROOT?=/usr2/virtualwebs

to which the port is adding ${PREFIX}

which has a local value of /usr/local

producing attempts to install files with problematic paths such as

/usr/local//usr2/virtualwebs/forumkatrina.org/install/install.php
^^   

I wonder, while this is being looked at, whether it might be possible to have 
the option, when installing to virtual webs to install to a file list 
comprising multiple urls?

This would be a most valuable option.

Thanks

David   
-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/ports/www/phpbb --? Makefile query

2005-09-08 Thread Vizion
On Thursday 08 September 2005 17:05,  the author Vizion contributed to the 
dialogue on-
 /usr/ports/www/phpbb --? Makefile query: 

The makefile has the following lines:

PHPBBDIR=  ${WWWDOCROOT}/${PHPBBURL}
PKGOPTS=   ${FILESDIR}/pkg-opts
EXCEPTFILES=   ${PREFIX}/${PHPBBDIR}/install/install.php \
   ${PREFIX}/${PHPBBDIR}/install/upgrade.php \
   ${PREFIX}/${PHPBBDIR}/install/update_to_latest.php

In my case DocumentRoot is:
WWWDOCROOT?=   /usr2/virtualwebs

to which the port is adding ${PREFIX}

which has a local value of /usr/local

producing attempts to install files with problematic paths such as

/usr/local//usr2/virtualwebs/forumkatrina.org/install/install.php
^^

I wonder, while this is being looked at, whether it might be possible to
 have the option, when installing to virtual webs to install to a file list
 comprising multiple urls?

This would be a most valuable option.

Just a small point the makefile includes line

Perform a make options to see a list of available installation options
but
# make options
make: don't know how to make options. Stop

Maybe the Makefile needs to test the difference between
usr2
and
/usr
to distinguish been an absolute path and a path relative to ${PREFIX}

Thanks again

david

-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fwd: Re: /usr/ports/www/phpbb --? Makefile query

2005-09-08 Thread Vizion

--  Forwarded Message  --

Subject: Re: /usr/ports/www/phpbb --? Makefile query
Date: Thursday 08 September 2005 17:34
From: Vizion [EMAIL PROTECTED]
To: Brooks Davis [EMAIL PROTECTED], freebsd-questions@freebsd.org, 
Johann Visagie [EMAIL PROTECTED]

On Thursday 08 September 2005 17:23, you wrote:
On Thu, Sep 08, 2005 at 05:05:41PM -0700, Vizion wrote:
 The makefile has the following lines:

 PHPBBDIR=${WWWDOCROOT}/${PHPBBURL}
 PKGOPTS= ${FILESDIR}/pkg-opts
 EXCEPTFILES= ${PREFIX}/${PHPBBDIR}/install/install.php \
  ${PREFIX}/${PHPBBDIR}/install/upgrade.php \
  ${PREFIX}/${PHPBBDIR}/install/update_to_latest.php

 In my case DocumentRoot is:
 WWWDOCROOT?= /usr2/virtualwebs

 to which the port is adding ${PREFIX}

 which has a local value of /usr/local

 producing attempts to install files with problematic paths such as

 /usr/local//usr2/virtualwebs/forumkatrina.org/install/install.php
 ^^

 I wonder, while this is being looked at, whether it might be possible to
 have the option, when installing to virtual webs to install to a file list
 comprising multiple urls?

 This would be a most valuable option.

Installation outside prefix is not supported.  You could set
prefix to /usr2

Where is ${PREFIX} set?

and WWWDOCROOT to virtualwebs to install the key
files where you want them.

But does that not mean that I would be getting files that properly belong in
the /usr/local/ hierarchy in the virtualwebs hierarchy?

This would cause /usr2 to be populated
with the directories given in BSD.local.dist.  Alternativly,
you could make /usr/local/www/forumkatrina.org a symlike to
/usr2/virtualwebs/forumkatrina.org or something similar.

That would be a good idea but unfortunately there appears to be a bug in the
latest version of apache2 that makes symlinks problematical and it is not a
good idea when the files are networked. The other thing is that /usr2/ is a
different physical device which holds files for replication to duplicate
physical devices for webfarming.

Of course, if
you want to install it more than once, ports won't work as it.
Making phpbb capable of being a slave port and making local ports for each

site could be a good work around for that.

Does anyone know how to fix the Makefile for the port so that it does not
apply ${PREFIX} when presented with an absolute path such as / but does use
${PREFIX} when the path is relative.

That would do as a workaround for the moment.

I am  not familiar with makefiles and I would like to ask if someone who is
used to doing it might be willing to make such a change and commit

thanks

david


--
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after
completing engineroom refit.

---

-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/ports/www/phpbb --? Makefile query

2005-09-08 Thread Vizion

Jst thought I would mention that this is being used for a series of sites to 
support victims of katrina - so if anyone does feel like helping out urgently 
it would really be appreciated --

thanks

On Thursday 08 September 2005 17:34,  the author Vizion contributed to the 
dialogue on-
 Re: /usr/ports/www/phpbb --? Makefile query: 

On Thursday 08 September 2005 17:23, you wrote:
On Thu, Sep 08, 2005 at 05:05:41PM -0700, Vizion wrote:
 The makefile has the following lines:

 PHPBBDIR=   ${WWWDOCROOT}/${PHPBBURL}
 PKGOPTS=${FILESDIR}/pkg-opts
 EXCEPTFILES=${PREFIX}/${PHPBBDIR}/install/install.php \
 ${PREFIX}/${PHPBBDIR}/install/upgrade.php \
 ${PREFIX}/${PHPBBDIR}/install/update_to_latest.php

 In my case DocumentRoot is:
 WWWDOCROOT?=/usr2/virtualwebs

 to which the port is adding ${PREFIX}

 which has a local value of /usr/local

 producing attempts to install files with problematic paths such as

 /usr/local//usr2/virtualwebs/forumkatrina.org/install/install.php
 ^^

 I wonder, while this is being looked at, whether it might be possible to
 have the option, when installing to virtual webs to install to a file
 list comprising multiple urls?

 This would be a most valuable option.

Installation outside prefix is not supported.  You could set
prefix to /usr2

Where is ${PREFIX} set?

and WWWDOCROOT to virtualwebs to install the key
files where you want them.

But does that not mean that I would be getting files that properly belong in
the /usr/local/ hierarchy in the virtualwebs hierarchy?

This would cause /usr2 to be populated
with the directories given in BSD.local.dist.  Alternativly,
you could make /usr/local/www/forumkatrina.org a symlike to
/usr2/virtualwebs/forumkatrina.org or something similar.

That would be a good idea but unfortunately there appears to be a bug in the
latest version of apache2 that makes symlinks problematical and it is not a
good idea when the files are networked. The other thing is that /usr2/ is a
different physical device which holds files for replication to duplicate
physical devices for webfarming.

Of course, if
you want to install it more than once, ports won't work as it.
Making phpbb capable of being a slave port and making local ports for each

site could be a good work around for that.

Does anyone know how to fix the Makefile for the port so that it does not
apply ${PREFIX} when presented with an absolute path such as / but does use
${PREFIX} when the path is relative.

That would do as a workaround for the moment.

I am  not familiar with makefiles and I would like to ask if someone who is
used to doing it might be willing to make such a change and commit

thanks

david

-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


expat with php configuration

2005-09-04 Thread Vizion


Hi
Practical ignorance is driving the following question:

I trying to configure php5 with expat (using latest port expat2 (version
expat-1.95.8_3)) and have no experience with expat. I am also a comparative
newcomer to php.

I have compiled and installed expat2 and about to configuring php.

An example configure command option for php with expat (taken from pro Apache
by Peter Wainwright) is:

--with-expat-dir=/usr/local/expat \

I cannot find any reference to the function of this expat-dir.
Is  this option there to create a working directory?
If it is meant to be a working directory what security issues are involved?

or

Is it intended to point to the expat libraries?
If so would appropriate dir be /usr/local/lib/ where libexpat.a and
libexpat.so.5 are located?

I am also confused because there seems, in the port a need for some clarity
about the role of the files when on considers the following man page entry:
-
NAME
 libbsdxml -- eXpat XML parser library

SYNOPSIS
 #include bsdxml.h

DESCRIPTION
 The libbsdxml library is a verbatim copy of the eXpat XML library
 version 1.95.5.

 To avoid version and autoconfiguration issues, the library has been
 renamed to libbsdxml rather than retain the original eXpat library and
 include file names to prevent confusion and autoconfiguration issues for
 3rd party software.
-
It was only after installing expat that I found the only man pages is the
brief reference page under libbsdxml.

It seems that in addition to the expat libs  I mentioned there are also the
libbsdxml libraries:
dns1# locate libbsdxml
/lib/libbsdxml.so.1
/usr/lib/libbsdxml.a
/usr/lib/libbsdxml.so
/usr/lib/libbsdxml_p.a
/usr/share/man/cat3/libbsdxml.3.gz
/usr/share/man/man3/libbsdxml.3.gz
/usr/src/lib/libexpat/libbsdxml.3
/usr/src/lib/libexpat/libbsdxml.3,v

Can anyone please clarify things for me
thanks
David



-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]