Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2002 19:49:56 -0700
From:      walt <wa1ter@hotmail.com>
To:        freebsd-current@freebsd.org
Subject:   open-motif compilation problem
Message-ID:  <3DB0C854.203@hotmail.com>

next in thread | raw e-mail | index | archive | help
While compiling the open-motif port on -CURRENT I see this
error during the 'configure' phase.  Anyone else seeing this?

checking for vprintf... yes
checking whether sprintf returns void... Bus error (core dumped)
yes
checking for wcslen... yes

===============================================
This seems to be the code that causes the error:
===============================================
echo $ac_n "checking whether sprintf returns void""... $ac_c" 1>&6
echo "configure:8121: checking whether sprintf returns void" >&5
if eval "test \"`echo '$''{'ac_cv_func_void_sprintf'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
else
   if test "$cross_compiling" = yes; then
   ac_cv_func_void_sprintf=yes
else
   cat > conftest.$ac_ext <<EOF
#line 8129 "configure"
#include "confdefs.h"
#include <stdio.h>
int sprintf(); main() { exit(sprintf(".")); }
EOF
if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s 
conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
   ac_cv_func_void_sprintf=no
else
   echo "configure: failed program was:" >&5
   cat conftest.$ac_ext >&5
   rm -fr conftest*
   ac_cv_func_void_sprintf=yes
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_void_sprintf" 1>&6
if test $ac_cv_func_void_sprintf = no; then
   cat >> confdefs.h <<\EOF
#define VOID_SPRINTF 1
EOF

fi

=================
 From config.log:
=================
configure:8121: checking whether sprintf returns void
configure:8134: cc -o conftest -O -pipe -mcpu=pentiumpro -DCSRG_BASED -DXUSE_MTSAFE_API 
-DXNO_MTSAFE_PWDAPI  conftest.c  1>&5
configure: failed program was:
#line 8129 "configure"
#include "confdefs.h"
#include <stdio.h>
int sprintf(); main() { exit(sprintf(".")); }


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DB0C854.203>