building apr1 fails

2010-05-18 Thread DA Forsyth
Hiya all

Going round in circles here tryign to update apache 2.0 to 2.2
I have read UPDATING and it says to uninstall apache before updating 
apr.

However, apr will not build, giving

===  Building for apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.9_1
cd /usr/ports/devel/apr1/work/apr-1.4.2; /usr/bin/env SHELL=/bin/sh 
NO_LINT=YES ACLOCAL=/usr/local/bin/aclocal-1.9 
AUTOMAKE=/usr/local/bin/automake-1.9 AUTOMAKE_VERSION=19 
AUTOCONF=/usr/local/bin/autoconf-2.62 
AUTOHEADER=/usr/local/bin/autoheader-2.62 
AUTOIFNAMES=/usr/local/bin/ifnames-2.62 
AUTOM4TE=/usr/local/bin/autom4te-2.62 
AUTORECONF=/usr/local/bin/autoreconf-2.62 
AUTOSCAN=/usr/local/bin/autoscan-2.62 
AUTOUPDATE=/usr/local/bin/autoupdate-2.62 AUTOCONF_VERSION=262 
LIBTOOL=/usr/local/bin/libtool LIBTOOLIZE=/usr/local/bin/libtoolize 
LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4 PREFIX=/usr/local  
LOCALBASE=/usr/local X11BASE=/usr/local  MOTIFLIB=-L/usr/local/lib -
lXm -lXp LIBDIR=/usr/lib  CC=cc CFLAGS=-O -pipe CXX=c++ 
CXXFLAGS=-O -pipe  MANPREFIX=/usr/local 
BSD_INSTALL_PROGRAM=install  -s -o root -g wheel -m 555  
BSD_INSTALL_SCRIPT=install  -o root -g wheel -m 555  
BSD_INSTALL_DATA=install  -o root -g wheel -m 444  
BSD_INSTALL_MAN=install  -o root -g wheel -m 444 make
/bin/sh /usr/ports/devel/apr1/work/apr-1.4.2/libtool --silent --
mode=compile cc -g -O2   -DHAVE_CONFIG_H-I./include -
I/usr/ports/devel/apr1/work/apr-1.4.2/include/arch/unix -
I./include/arch/unix -I/usr/ports/devel/apr1/work/apr-
1.4.2/include/arch/unix -I/usr/ports/devel/apr1/work/apr-
1.4.2/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c  
touch passwd/apr_getpass.lo
X--mode=compile: not found
*** Warning: inferring the mode of operation is deprecated.: not 
found
*** Future versions of Libtool will require --mode=MODE be 
specified.: not found
Xcc: not found
X-g: not found
X-O2: not found
X-DHAVE_CONFIG_H: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-I./include: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-
I/usr/ports/devel/apr1/work/apr-1.4.2/include/arch/unix: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-I./include/arch/unix: 
not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-
I/usr/ports/devel/apr1/work/apr-1.4.2/include/arch/unix: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-
I/usr/ports/devel/apr1/work/apr-1.4.2/include: not found
X-c: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: Xpasswd/apr_getpass.lo: 
not found
libtool: compile: cannot determine name of library object from `': 
not found
*** Error code 1

Stop in /usr/ports/devel/apr1/work/apr-1.4.2.
*** Error code 1

Stop in /usr/ports/devel/apr1/work/apr-1.4.2.
*** Error code 1

Stop in /usr/ports/devel/apr1.
*** Error code 1

Stop in /usr/ports/devel/apr1.
==

I've tried a bunch of stuff, including rebuilding libtool22, 
upgrading to python26 and a few other things I cannot recall now.

Please help.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: building apr1 fails

2010-05-18 Thread Michael Powell
DA Forsyth wrote:

 Hiya all
 
 Going round in circles here tryign to update apache 2.0 to 2.2
 I have read UPDATING and it says to uninstall apache before updating
 apr.

Yes - the presence of 2.0 conflicts with 2.2 so it is necessary to remove 
first.
 
 However, apr will not build, giving
 
 ===  Building for apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.9_1
 cd /usr/ports/devel/apr1/work/apr-1.4.2; /usr/bin/env SHELL=/bin/sh
 NO_LINT=YES ACLOCAL=/usr/local/bin/aclocal-1.9
 AUTOMAKE=/usr/local/bin/automake-1.9 AUTOMAKE_VERSION=19
 AUTOCONF=/usr/local/bin/autoconf-2.62
 AUTOHEADER=/usr/local/bin/autoheader-2.62
[snip]
 /usr/ports/devel/apr1/work/apr-1.4.2/libtool: Xpasswd/apr_getpass.lo:
 not found
 libtool: compile: cannot determine name of library object from `':
 not found
 *** Error code 1
 
 Stop in /usr/ports/devel/apr1/work/apr-1.4.2.
 *** Error code 1
 
 Stop in /usr/ports/devel/apr1/work/apr-1.4.2.
 *** Error code 1
 
 Stop in /usr/ports/devel/apr1.
 *** Error code 1
 
 Stop in /usr/ports/devel/apr1.
 ==
 
 I've tried a bunch of stuff, including rebuilding libtool22,
 upgrading to python26 and a few other things I cannot recall now.
 

I have seen before reports concerning problems with building Apache 
utilizing the devel/apr port (the recommended default). Since the variables 
controlling the Apache version have changed over time you should look at 
your make.conf and ensure there is no left over cruft of the WITH_APACHE=xx 
or USE_APACHE=xx variety. In the beginning of the move towards 2.0 and the 
subsequent introduction of 2.2 it was necessary to set these, but that is no 
longer true.

When you do 'make config' for the Apache build, deselect the 'APR_FROM_PORTS  
Use devel/apr (recommended)' option. It is ON by default and is the 
recommended selection. It has some kind of problem and this error has been 
reported on these lists before. 

I just updated Apache to 2.2.15_5 yesterday and it builds fine when the 
above mentioned option is turned off.

-Mike


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


re: building apr1 fails

2010-05-18 Thread DA Forsyth
Michael Powell nightrecon at hotmail.com
Tue May 18 09:41:50 UTC 2010

Hi Mike

Yes - the presence of 2.0 conflicts with 2.2 so it is necessary to 
remove first.
 
 However, apr will not build, giving
 
...
 
 Stop in /usr/ports/devel/apr1.
 ==
 
 I've tried a bunch of stuff, including rebuilding libtool22,
 upgrading to python26 and a few other things I cannot recall now.
 

I have seen before reports concerning problems with building Apache 
utilizing the devel/apr port (the recommended default). Since the 
variables controlling the Apache version have changed over time you 
should look at your make.conf and ensure there is no left over cruft 
of the WITH_APACHE=xx or USE_APACHE=xx variety. In the beginning of 
the move towards 2.0 and the subsequent introduction of 2.2 it was 
necessary to set these, but that is no longer true.

I don't have anything like that set

 When you do 'make config' for the Apache build, deselect the 
 'APR_FROM_PORTS  Use devel/apr (recommended)' option. It is ON by
 default and is the recommended selection. It has some kind of
 problem and this error has been reported on these lists before. 

 I just updated Apache to 2.2.15_5 yesterday and it builds fine when
 the above mentioned option is turned off. 

Yes indeed, I upgraded the main server yesterday and it built fine 
except for having to turn 'mod_ssl' off as it kept dying in the ssl 
code.  I don't need ssl anyway.

However, today an update (cvsup) shows that that option has been 
removed entirely, I have just searched the Makefile to confirm it, 
also mentioned in UPDATING.
So now apache HAS to use devel/apr1 but apr1 will not compile with no 
real clue as to why not.

I have just finished upgrading perl to 5.10.1, with a forced 
recompile of everything that depends on it, and of course 
apache22/apr still fails.

sigh.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


re: building apr1 fails

2010-05-18 Thread Michael Powell
DA Forsyth wrote:

[snip] 
 I just updated Apache to 2.2.15_5 yesterday and it builds fine when
 the above mentioned option is turned off.

It was actually the day before yesterday, when it was still 2.2.15_5.
 
 Yes indeed, I upgraded the main server yesterday and it built fine
 except for having to turn 'mod_ssl' off as it kept dying in the ssl
 code.  I don't need ssl anyway.
 
 However, today an update (cvsup) shows that that option has been
 removed entirely, I have just searched the Makefile to confirm it,
 also mentioned in UPDATING.

I see what you mean. I just csup'd and it is now apache-2.2.15_7, with the 
changes you described. So I just #'d out the WITHOUT_APR_FROM_PORTS=true 
line in my /var/db/ports/apache22/options file.

Tried a simple portupgrade -a which usually does the trick for upgrading 
Apache painlessly, but it completely bombed with errors.

 So now apache HAS to use devel/apr1 but apr1 will not compile with no
 real clue as to why not.

So I changed to /usr/ports/devel/apr1, built and installed this port 
manually to see if it would error out. It built and installed OK, pulling in 
some dependencies during the process.

So I then tried to manually upgrade apache-2.2.15_5 with the make deinstall 
 make reinstall dance and it barfed because when apache compiles it builds 
the apr1 ports *again*. OK - so I pkg_deinstalled the apr1 install and did 
make clean for the apache build and started over. This time it built OK, and 
make deinstall  make reinstall succeeded. So now I somehow actually have 
upgraded to apache-2.2.15_7.
 
 I have just finished upgrading perl to 5.10.1, with a forced
 recompile of everything that depends on it, and of course
 apache22/apr still fails.
 

Differences between us are that I am still using perl 5.8.9, and possibly I 
have an WITHOUT_X11= yes entry in my make.conf that you may not.

You might try and see if the apr1 port will build and install by itself. I'm 
also wondering if my installing it, then removing it somehow left behind a 
file that the apache build process was expecting to be present. I recall 
somewhere in the process something complained that apr-1-config could not be 
found. The apr1 port does need to be removed because apache build will 
rebuild it a second time and bomb trying to install it if the port is 
already installed.

As to exactly *why* I eventually succeeded I'm not entirely clear.  :-)

-Mike



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