SOLVED: Problem compling apr1 from ports

2013-01-06 Thread Erik Nørgaard

On 06/01/2013 15:56, ill...@gmail.com wrote:


Do you have something funny set in /etc/make.conf or within
your python options?



Yeah, had PYTHON_VERSION=python2.6, removing that solves the problem. 
Apparantly the 2.6 port doesn't create the links as does version 2.7.


Thanks, Erik


--
M: +34 666 334 818
T: +34 915 211 157
___
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: Problem compling apr1 from ports

2013-01-06 Thread ill...@gmail.com
On 6 January 2013 07:52, Erik Nørgaard  wrote:
> On 05/01/2013 19:17, Erik Nørgaard wrote:
>>
>>
>> lt_cv_sys_max_cmd_len=262144 /bin/sh ./buildconf
>> buildconf: checking installation...
>> buildconf: python not found.
>> You need python installed
>> to build APR from SVN.
>> *** [run-autotools] Error code 1
>
>
> I tried to debug a bit more on this, seems that buildconf calls a script
> build/PrintPath which returns the path of a program, i.e.:
>
>   # ./PrintPath perl
>   /usr/bin/perl
>
> But when called by buildconf with parameter "python" it returns nothing,
> there is no "python" binary but a python2.6
>
>   # ln -s /usr/local/bin/python2.6 /usr/local/bin/python
>
> solves the problem, but is it common to create a link for python as with
> perl? Is that a patch or a hack?
>
> Thanks, Erik

Hmm, a bland, un-monkey-ed-with install of python27 here:
% ls -l /usr/local/bin/python*
lrwxr-xr-x  1 root  wheel7 Dec 27 10:50 /usr/local/bin/python -> python2
lrwxr-xr-x  1 root  wheel   14 Dec 27 10:50
/usr/local/bin/python-config -> python2-conf
ig
lrwxr-xr-x  1 root  wheel   14 Dec 27 10:50
/usr/local/bin/python-shared -> python-share
d2
lrwxr-xr-x  1 root  wheel   21 Dec 27 10:50
/usr/local/bin/python-shared-config -> pytho
n-shared2-config
lrwxr-xr-x  1 root  wheel   16 Dec 27 10:50
/usr/local/bin/python-shared2 -> python-shar
ed2.7
lrwxr-xr-x  1 root  wheel   23 Dec 27 10:50
/usr/local/bin/python-shared2-config -> pyth
on-shared2.7-config
-r-xr-xr-x  1 root  wheel 4656 Dec 27 10:50 /usr/local/bin/python-shared2.7
-r-xr-xr-x  1 root  wheel 1659 Dec 27 10:50
/usr/local/bin/python-shared2.7-config
lrwxr-xr-x  1 root  wheel9 Dec 27 10:50 /usr/local/bin/python2
-> python2.7
lrwxr-xr-x  1 root  wheel   16 Dec 27 10:50
/usr/local/bin/python2-config -> python2.7-c
onfig
-r-xr-xr-x  1 root  wheel  1484336 Dec 27 10:49 /usr/local/bin/python2.7
-r-xr-xr-x  1 root  wheel 1652 Dec 27 10:50 /usr/local/bin/python2.7-config

Do you have something funny set in /etc/make.conf or within
your python options?

-- 
--
___
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: Problem compling apr1 from ports

2013-01-06 Thread Erik Nørgaard

On 05/01/2013 19:17, Erik Nørgaard wrote:


lt_cv_sys_max_cmd_len=262144 /bin/sh ./buildconf
buildconf: checking installation...
buildconf: python not found.
You need python installed
to build APR from SVN.
*** [run-autotools] Error code 1


I tried to debug a bit more on this, seems that buildconf calls a script 
build/PrintPath which returns the path of a program, i.e.:


  # ./PrintPath perl
  /usr/bin/perl

But when called by buildconf with parameter "python" it returns nothing, 
there is no "python" binary but a python2.6


  # ln -s /usr/local/bin/python2.6 /usr/local/bin/python

solves the problem, but is it common to create a link for python as with 
perl? Is that a patch or a hack?


Thanks, Erik

--
M: +34 666 334 818
T: +34 915 211 157
___
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"


Problem compling apr1 from ports

2013-01-05 Thread Erik Nørgaard

Hi,

I just rebuilt my system to FBSD91 and updated the ports tree. Now 
builidng apache which depends on apr1 I but fails building because of 
dependency on python. Python is installed, and is found initially.


Full error:

root@alpha:/usr/local/ports/devel/apr1 # make
===>  portaudit database exists, however, portaudit is not installed!
===>  Found saved configuration for apr-1.4.6.1.4.1_3
===>  Extracting for apr-1.4.6.1.4.1_3
=> SHA256 Checksum OK for apr-1.4.6.tar.gz.
=> SHA256 Checksum OK for apr-util-1.4.1.tar.gz.
===>  Patching for apr-1.4.6.1.4.1_3
===>  Applying FreeBSD patches for apr-1.4.6.1.4.1_3
/usr/bin/sed -i.bak -e 's/OSVERSION/901000/g' 
/usr/local/ports/devel/apr1/work/apr-1.4.6/build/apr_hints.m4
/usr/bin/find /usr/local/ports/devel/apr1/work/apr-1.4.6 
/usr/local/ports/devel/apr1/work/apr-util-1.4.1 -name "Makefile.in*" | 
/usr/bin/xargs /usr/bin/sed -i.bak -e 
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
/usr/bin/sed -i.bak -e 's,-lpthread,-pthread,g' 
/usr/local/ports/devel/apr1/work/apr-1.4.6/build/apr_threads.m4 
/usr/local/ports/devel/apr1/work/apr-1.4.6/build/apr_hints.m4 
/usr/local/ports/devel/apr1/work/apr-util-1.4.1/build/apu-conf.m4
/usr/bin/sed -i.bak -e '1 s/python/python2.6/' 
/usr/local/ports/devel/apr1/work/apr-1.4.6/build/gen-build.py
/usr/bin/sed -i.bak -e 's/void main/int main/' 
/usr/local/ports/devel/apr1/work/apr-1.4.6/build/apr_network.m4
/usr/bin/sed -i.bak -e 's|sql = apr_palloc|sql = apr_pcalloc|' 
/usr/local/ports/devel/apr1/work/apr-util-1.4.1/dbd/apr_dbd_freetds.c

===>   apr-1.4.6.1.4.1_3 depends on file: /usr/local/bin/python2.6 - found
===>   apr-1.4.6.1.4.1_3 depends on file: /usr/local/bin/automake-1.12 - 
found
===>   apr-1.4.6.1.4.1_3 depends on file: /usr/local/bin/autoconf-2.69 - 
found

===>   apr-1.4.6.1.4.1_3 depends on package: libtool>=2.4 - found
===>   apr-1.4.6.1.4.1_3 depends on shared library: expat - found
===>   apr-1.4.6.1.4.1_3 depends on shared library: gdbm - found
===>   apr-1.4.6.1.4.1_3 depends on shared library: iconv.3 - found
===>   apr-1.4.6.1.4.1_3 depends on shared library: pq.5 - found
===>   apr-1.4.6.1.4.1_3 depends on shared library: db-4.6.0 - found
===>   apr-1.4.6.1.4.1_3 depends on shared library: sqlite3.8 - found
===>  Configuring for apr-1.4.6.1.4.1_3
cd /usr/local/ports/devel/apr1/work/apr-1.4.6 ;  /usr/bin/env CC="cc" 
ac_cv_path_PGSQL_CONFIG="" PYTHON="/usr/local/bin/python2.6" 
SHELL=/bin/sh CONFIG_SHELL=/bin/sh AUTOMAKE=/usr/local/bin/automake-1.12 
 AUTOMAKE_DIR=/usr/local/share/automake-1.12  AUTOMAKE_VERSION=1.12 
AUTOMAKE_APIVER=1.12.6  ACLOCAL=/usr/local/bin/aclocal-1.12 
ACLOCAL_DIR=/usr/local/share/aclocal-1.12 
AUTOCONF=/usr/local/bin/autoconf-2.69 
AUTOCONF_DIR=/usr/local/share/autoconf-2.69 
AUTOHEADER=/usr/local/bin/autoheader-2.69 
AUTOIFNAMES=/usr/local/bin/ifnames-2.69 
AUTOM4TE=/usr/local/bin/autom4te-2.69 
AUTORECONF=/usr/local/bin/autoreconf-2.69 
AUTOSCAN=/usr/local/bin/autoscan-2.69 
AUTOUPDATE=/usr/local/bin/autoupdate-2.69  AUTOCONF_VERSION=2.69 
LIBTOOL=/usr/local/bin/libtool  LIBTOOLIZE=/usr/local/bin/libtoolize 
LIBTOOL_LIBEXECDIR=/usr/local/libexec/libtool 
LIBTOOL_SHAREDIR=/usr/local/share/libtool 
LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4 
LTMAIN=/usr/local/share/libtool/config/ltmain.sh 
lt_cv_sys_max_cmd_len=262144 /bin/sh ./buildconf

buildconf: checking installation...
buildconf: python not found.
   You need python installed
   to build APR from SVN.
*** [run-autotools] Error code 1

Stop in /usr/local/ports/devel/apr1.
*** [build] Error code 1

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

Any clues?

Thanks, Erik

--
M: +34 666 334 818
T: +34 915 211 157
___
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"