Opened 12 years ago

Closed 12 years ago

#5345 closed bug (invalid)

VirtualBox 3.1: 'configure' script failure, gcc segv

Reported by: Adek336 Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


Problem occurs in VirtualBox 3.1 with recent hrev35350 and older hrev34722. Problem does not occur in VirtualBox 3.0 with hrev34722.

Symptoms: when running a configure script from a package, for example less, 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"
| /* 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


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.

Change History (1)

comment:1 by mmadia, 12 years ago

Resolution: invalid
Status: newclosed
Version: R1/alpha1R1/Development

Seeing as 34722 works in VB 3.0, but not VB 3.1, closing this as an issue local to VirtualBox.

Note: See TracTickets for help on using tickets.