Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2011 02:49:40 +0200
From:      olli hauer <ohauer@gmx.de>
To:        "Edwin L. Culp W." <edwinlculp@gmail.com>
Cc:        Greg Larkin <glarkin@FreeBSD.org>, freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: I could sure use a way around the strange error I get when trying to update devel/apr on 7.4-STABLE FreeBSD
Message-ID:  <4DDC5224.500@gmx.de>
In-Reply-To: <BANLkTikDyVyaneq49HcUN4EE386XDuKyFA@mail.gmail.com>
References:  <BANLkTikDyVyaneq49HcUN4EE386XDuKyFA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2011-05-24 17:56, Edwin L. Culp W. wrote:
> The compile finishes during configuration with:
> 
> checking for minix/config.h... no
> checking whether it is safe to define __EXTENSIONS__... yes
> checking for library containing strerror... none required
> checking whether system uses EBCDIC... no
> performing libtool configuration...
> ./configure: 9904: Syntax error: word unexpected (expecting ")")
> *** Error code 2
> 
> Stop in /new/usr/local/ports/devel/apr1.
> *** Error code 1
> 
> I posted this about 10 days ago but thought that it would be fixec
> with portgrading but it hasn't and the error makes me think there is a
> conflict with one of my ports that is out of date or . . . .?
> 
> This is the result of my make showconfig
> 
> /usr/ports/devel/apr1 # make showconfig
> ===> The following configuration options are available for
> apr-ipv6-devrandom-gdbm-db46-ldap24-1.4.5.1.3.12:
>      THREADS=on (default) "Enable Threads in apr"
>      IPV6=on (default) "Enable IPV6 Support in apr"
>      BDB=on (default) "Enable Berkley BDB support in apr-util"
>      GDBM=on (default) "Enable GNU dbm support in apr-util"
>      LDAP=off (default) "Enable LDAP support in apr-util"
>      MYSQL=off (default) "Enable MySQL suport in apr-util"
>      NDBM=off (default) "Enable NDBM support in apr-util"
>      PGSQL=off (default) "Enable Postgresql suport in apr-util"
>      SQLITE=off (default) "Enable SQLite3 support in apr-util"
>      DEVRANDOM=on (default) "Use /dev/random or compatible in apr"
> 
> I originally had ldap enabled but removed it for doubts.  I obviously
> can't compile a new apache22, I'm usinging the older package for now.
> 
> Sorry to post this again but I have spent hours without finding a ray of light.
> 

I think the issue is not apr it's apr-util (both are build togehter in apr1)

To verify this.

edit the apr1/Makefile so it looks this

around line 241:
do-build:
        cd ${APR_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE}
#       cd ${APU_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE}


Then use the commands

$> make configure
 If you see no error, then
$> make

I suspect also here no errors, now change this lines to

do-build:
#        cd ${APR_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE}
       cd ${APU_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE}


delete only the file .build_done.apr._usr_local
$> rm work/.build_done.apr._usr_local

and fire the command
$> make

If the build breaks here it is the configure script of apr-util.
Maybe the configure script finds some leftover libs.

# head -n 9912 work/apr-util-1.3.12/configure | tail -n 10
fi

        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in
-l${ldaplib}" >&5
$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
if eval \${$as_ac_Lib+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l${ldaplib} ${extralib} $LIBS"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DDC5224.500>