Results 1 to 2 of 2

Thread: BT5R3 x64 How to Install gcc 32 bit

  1. #1
    Just burned his ISO
    Join Date
    Aug 2012

    Question BT5R3 x64 How to Install gcc 32 bit

    I am trying to compile a executable for 32 bit in Backtrack 5R3 x64.

    I do:
    gcc -m file.c

    In file included from /usr/include/features.h:378,
    from /usr/include/string.h:26,
    from bof.c:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

    From Ubuntu 12.04 x64... I originally had the same error... So I did the following, and it works fine now.
    #apt-get install libc6-dev-i386
    #gcc -m32 file.c

    However when I attempt to install libc6-dev-i386 for Backtrack 5R3, I get the following:
    root@bt:~# sudo apt-get install libc6-dev-i386
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libc6-dev-i386: Depends: libc6-i386 (= 2.11.1-0ubuntu7.8) but 2.11.1-0ubuntu7.10 is to be installed
    Depends: libc6-dev (= 2.11.1-0ubuntu7.8) but 2.11.1-0ubuntu7.10 is to be installed
    Recommends: gcc-multilib but it is not going to be installed
    E: Broken packages

  2. #2
    Senior Member
    Join Date
    Jan 2010

    Default Re: BT5R3 x64 How to Install gcc 32 bit

    You should first have gcc multilib installed:
    gcc -m32 -o output32 input.c
    Great minds have purposes, others have wishes

Similar Threads

  1. Replies: 3
    Last Post: 01-26-2011, 04:24 AM
  2. Replies: 0
    Last Post: 05-01-2010, 07:55 AM
  3. Replies: 3
    Last Post: 04-13-2010, 06:42 PM
  4. confusion with BT4 and wiki how to video dual install
    By imported_bulgin in forum OLD Newbie Area
    Replies: 6
    Last Post: 09-01-2009, 01:25 AM
  5. HOWTO: Install Compiz-fusion and Emerald on hardrdrive install
    By toohxc in forum OLD BackTrack3 Howtos
    Replies: 2
    Last Post: 01-28-2009, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts