Jump to content
  • 0
Sign in to follow this  
baixarnow

Error in ./configure

Question

Hello to all.

 

I'm trying to compile hercules on ubuntu 20.04 to play with some friends, but i'm having trouble when i run ./configure.

 

.


checking whether gcc supports -std=c11... yes
checking whether byte ordering is bigendian... no
./configure: line 5184: syntax error near unexpected token `fi'
./configure: line 5184: `fi'


 

I already tried deleting configure and running autoconf and generate new configure, i tried going to previous hercules to find some old configure, but i think they dont change much... i tried a lot of modifications in the script and I couldn't go beyond this point. If someone has a clue, please let me know. Thanks in advance.

Is around here, somewhere:

 

 


if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 ##THIS IS THE LINE 5184 OF THE ERRORR###
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     as_fn_error $? "bigendian is not supported... stopping" "$LINENO" 5;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine endianess, only little endian is supported" >&5
$as_echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
 ;;
 esac

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

probably you corrupted configure by copy files from windows?

you can regenerate configure by this command

autoreconf

but if this is windows issue, need fix many other files.

 

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, 4144 said:

probably you corrupted configure by copy files from windows?

you can regenerate configure by this command

autoreconf


autoreconf

but if this is windows issue, need fix many other files.

 

Thanks, you're probably right in the reason, I was running localhost windows and we rented an ubuntu vps. But autoreconf didn't work. What worked was using VS Community with this: https://docs.microsoft.com/en-us/cpp/linux/download-install-and-setup-the-linux-development-workload?view=msvc-170

Edited by baixarnow

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.