Results 1 to 6 of 6

Thread: problem compiling source

  1. #1
    Junior Member registered user
    Join Date
    Nov 2004
    Posts
    13

    problem compiling source

    I'm trying to compile some apps from source, and ./configure fails on everything I try with the following:

    ...
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... /lib/cpp
    configure: error: C preprocessor "/lib/cpp" fails sanity check


    What files/libraries am I missing? This is knoppix 4 (with a debian type install to the hdd).

    Thanks

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Do you have cpp installed?
    markus@mrk-fujibox:~$ ls -l /usr/bin/cpp*
    lrwxrwxrwx 1 root root 16 Jul 13 20:54 /usr/bin/cpp -> /usr/bin/cpp-3.3
    -rwxr-xr-x 1 root root 80748 Dec 23 2003 /usr/bin/cpp-3.2
    -rwxr-xr-x 1 root root 88828 Jun 21 01:03 /usr/bin/cpp-3.3
    -rwxr-xr-x 1 root root 90232 Jul 12 07:25 /usr/bin/cpp-4.0
    markus@mrk-fujibox:~$ dpkg -l|grep cpp
    ii cpp 4.0.0-2 The GNU C preprocessor (cpp)
    ii cpp-3.2 3.2.3-9 The GNU C preprocessor
    ii cpp-3.3 3.3.6-7 The GNU C preprocessor
    ii cpp-4.0 4.0.1-2 The GNU C preprocessor

    Best to use the same cpp and gcc versions.

  3. #3
    Junior Member registered user
    Join Date
    Nov 2004
    Posts
    13
    Yes, it's installed:

    wayne@erin:~$ ls -l /usr/bin/cpp*
    lrwxrwxrwx 1 root root 7 Jul 11 21:08 /usr/bin/cpp -> cpp-3.3
    -rwxr-xr-x 1 root root 88876 May 14 19:34 /usr/bin/cpp-3.3
    -rwxr-xr-x 1 root root 86124 May 5 19:16 /usr/bin/cpp-3.4
    -rwxr-xr-x 1 root root 90188 May 28 09:50 /usr/bin/cpp-4.0
    wayne@erin:~$ dpkg -l|grep cpp
    ii cpp 3.3.5-3 The GNU C preprocessor (cpp)
    ii cpp-3.3 3.3.6-5 The GNU C preprocessor
    ii cpp-3.4 3.4.3-13 The GNU C preprocessor
    ii cpp-4.0 4.0.0-9 The GNU C preprocessor

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    And gcc is pointing to the same version?
    markus@mrk-fujibox:~$ ls -l /usr/bin/gcc*
    lrwxrwxrwx 1 root root 16 Jul 13 20:53 /usr/bin/gcc -> /usr/bin/gcc-3.3
    -rwxr-xr-x 1 root root 85244 Jun 21 01:05 /usr/bin/gcc-3.3
    -rwxr-xr-x 1 root root 89112 Jul 12 07:29 /usr/bin/gcc-4.0
    lrwxrwxrwx 1 root root 19 Jul 16 11:59 /usr/bin/gccbug -> /usr/bin/gccbug-3.3
    -rwxr-xr-x 1 root root 16059 Jun 21 00:51 /usr/bin/gccbug-3.3
    -rwxr-xr-x 1 root root 16245 Jul 12 07:15 /usr/bin/gccbug-4.0
    markus@mrk-fujibox:~$ dpkg -l|grep gcc
    ii gcc 4.0.0-2 The GNU C compiler
    ii gcc-3.2-base 3.2.3-9 The GNU Compiler Collection (base package)
    ii gcc-3.3 3.3.6-7 The GNU C compiler
    ii gcc-3.3-base 3.3.6-7 The GNU Compiler Collection (base package)
    ii gcc-3.4-base 3.4.4-5 The GNU Compiler Collection (base package)
    ii gcc-4.0 4.0.1-2 The GNU C compiler
    ii gcc-4.0-base 4.0.1-2 The GNU Compiler Collection (base package)
    ii libgcc1 4.0.1-2 GCC support library

  5. #5
    Junior Member registered user
    Join Date
    Nov 2004
    Posts
    13
    I'm not sure about that. Here's my output:

    wayne@erin:~$ ls -l /usr/bin/gcc*
    lrwxrwxrwx 1 root root 7 Jul 11 21:09 /usr/bin/gcc -> gcc-3.3
    -rwxr-xr-x 1 root root 85196 May 14 19:36 /usr/bin/gcc-3.3
    -rwxr-xr-x 1 root root 84972 May 5 19:19 /usr/bin/gcc-3.4
    -rwxr-xr-x 1 root root 89068 May 28 09:54 /usr/bin/gcc-4.0
    lrwxrwxrwx 1 root root 10 Jul 11 21:09 /usr/bin/gccbug -> gccbug-3.3
    -rwxr-xr-x 1 root root 16055 May 14 19:31 /usr/bin/gccbug-3.3
    -rwxr-xr-x 1 root root 16198 May 5 19:06 /usr/bin/gccbug-3.4
    -rwxr-xr-x 1 root root 16202 May 28 09:45 /usr/bin/gccbug-4.0
    wayne@erin:~$ dpkg -l|grep gcc
    ii colorgcc 1.3.2.0-4 Colorizer for GCC warning/error messages
    ii gcc 3.3.5-3 The GNU C compiler
    ii gcc-3.3 3.3.6-5 The GNU C compiler
    ii gcc-3.3-base 3.3.6-5 The GNU Compiler Collection (base package)
    ii gcc-3.4 3.4.3-13 The GNU C compiler
    ii gcc-3.4-base 3.4.3-13 The GNU Compiler Collection (base package)
    ii gcc-4.0 4.0.0-9 The GNU C compiler
    ii gcc-4.0-base 4.0.0-9 The GNU Compiler Collection (base package)
    ii libgcc1 4.0.0-9 GCC support library

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Hmm, try reinstalling the packages or switch to 4 with:
    rm /usr/bin/gcc /usr/bin/cpp
    ln -s /usr/bin/gcc-4.0 /usr/bin/gcc
    ln -s /usr/bin/cpp-4.0 /usr/bin/cpp

Similar Threads

  1. Problem with compiling source code
    By Redbeard in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 12-01-2007, 05:35 PM
  2. compiling source code
    By crazy_monkey108 in forum General Support
    Replies: 14
    Last Post: 07-04-2006, 07:52 AM
  3. Compiling kernel from source
    By guyr in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-14-2004, 04:26 PM
  4. Problems compiling hwsetup from source
    By Fang in forum Customising & Remastering
    Replies: 8
    Last Post: 12-01-2003, 05:54 PM
  5. Problem compiling kernel-source-2.4.20-xfs
    By TheCyberDude in forum General Support
    Replies: 3
    Last Post: 06-23-2003, 06:51 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
  •  


PfSense/OPNsense 6x1Gb, Quad Core, 8GB, 128GB SSD, AES-NI, QAT (Lanner FW-7525D) picture

PfSense/OPNsense 6x1Gb, Quad Core, 8GB, 128GB SSD, AES-NI, QAT (Lanner FW-7525D)

$85.00



OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN picture

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN

$258.00



Firewalla Purple Gigabit Firewall  Router  Factory Reset  Excellent Cond G2U picture

Firewalla Purple Gigabit Firewall Router Factory Reset Excellent Cond G2U

$245.00



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F) picture

Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F)

$73.49



10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD picture

10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD

$165.00



PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT picture

PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT

$259.00



Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter picture

Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter

$50.00



SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218 picture

SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218

$199.00