I could sure use a way around the strange error I get when trying to update devel/apr on 7.4-STABLE FreeBSD

olli hauer ohauer at gmx.de
Wed May 25 00:49:41 UTC 2011


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"




More information about the freebsd-ports mailing list