[haiku-bugs] [Haiku] #5345: VirtualBox 3.1: 'configure' script failure, gcc segv

  • From: "Adek336" <trac@xxxxxxxxxxxx>
  • Date: Mon, 01 Feb 2010 00:30:48 -0000

#5345: VirtualBox 3.1: 'configure' script failure, gcc segv
-----------------------+----------------------------------------------------
 Reporter:  Adek336    |       Owner:  nobody   
     Type:  bug        |      Status:  new      
 Priority:  normal     |   Milestone:  R1       
Component:  - General  |     Version:  R1/alpha1
 Keywords:             |   Blockedby:           
 Platform:  All        |    Blocking:           
-----------------------+----------------------------------------------------
 Problem occurs in VirtualBox 3.1 with recent r35350 and older r34722.
 Problem does not occur in VirtualBox 3.0 with r34722.

 Symptoms: when running a configure script from a package, for example less
 [http://ftp.gnu.org/gnu/less/less-418.tar.gz], entries like this appear in
 `config.log`:
 {{{
 configure:3681: checking for initscr in -lxcurses
 configure:3716: gcc -o conftest -g -O2   conftest.c -lxcurses   >&5
 ./configure: line 3717:   858 Segmentation violation  $CC -o
 conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
 configure:3722: $? = 139
 configure: failed program was:
 | /* confdefs.h.  */
 | #define PACKAGE_NAME "less"
 | #define PACKAGE_TARNAME "less"
 | #define PACKAGE_VERSION "1"
 | #define PACKAGE_STRING "less 1"
 | #define PACKAGE_BUGREPORT ""
 | /* end confdefs.h.  */
 |
 | /* Override any GCC internal prototype to avoid an error.
 |    Use char because int might match the return type of a GCC
 |    builtin and then its argument prototype would still apply.  */
 | #ifdef __cplusplus
 | extern "C"
 | #endif
 | char initscr ();
 | int
 | main ()
 | {
 | return initscr ();
 |   ;
 |   return 0;
 | }
 configure:3740: result: no
 }}}

 and

 {{{
 configure:3614: checking for tgoto in -ltinfo
 configure:3649: gcc -o conftest -g -O2   conftest.c -ltinfo   >&5
 /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-090629/bin/../lib/gcc/i586
 -pc-haiku/4.3.3/../../../../i586-pc-haiku/bin/ld: cannot find -ltinfo
 collect2: ld returned 1 exit status
 configure:3655: $? = 1
 configure: failed program was:
 }}}

 In the second example we see gcc operational (attempt to compile and bail
 on linkage error) which means that the segv in the first example occurs in
 gcc (when no linkage error interferes) and not in sh.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5345>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: