Results 1 to 9 of 9

Thread: Problems compiling hwsetup from source

  1. #1
    Junior Member
    Join Date
    Sep 2003
    Posts
    5

    Problems compiling hwsetup from source

    Thanks to Stephen's help, I managed to obtain the sources for hwsetup from http://developer.linuxtag.net/knoppix/sources/. I untarred them, then installed the debian package for kudzu-dev. However, when I try to compile hwsetup, I receive the following errors:

    Code:
    [root@bog hwsetup-1.0]# make
    gcc -I/usr/include/kudzu -DBLACKLIST -Wall -fPIC -O2 -s -o hwsetup hwsetup.c -lkudzu -lpci
    hwsetup.c: In function `startwheel':
    hwsetup.c:86: warning: implicit declaration of function `exit'
    hwsetup.c: In function `hw_info':
    hwsetup.c:264: error: structure has no member named `type'
    hwsetup.c: In function `writeconfig':
    hwsetup.c:437: error: structure has no member named `type'
    hwsetup.c: In function `hw_setup':
    hwsetup.c:514: error: structure has no member named `type'
    make: *** [hwsetup] Error 1
    [root@bog hwsetup-1.0]#
    I checked to make sure that /usr/include/kudzu is there:
    Code:
    [root@bog hwsetup-1.0]# ls /usr/include/kudzu/
    ddc.h     isapnp.h    misc.h      pci.h        sbus.h    usb.h
    device.h  keyboard.h  modules.h   pciserial.h  scsi.h
    ide.h     kudzu.h     parallel.h  psaux.h      serial.h
    [root@bog hwsetup-1.0]#
    It was my understanding that all hwsetup depended on was kudzu-dev, but it looks like this is not the case. Has anyone else run into this problem before? If so, what is the solution?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    What version of gcc are you using? Knoppix is compiled (well the kernel anyway, not sure about the rest) with gcc-2.95

  3. #3
    Junior Member
    Join Date
    Sep 2003
    Posts
    5
    Quote Originally Posted by eadz
    What version of gcc are you using? Knoppix is compiled (well the kernel anyway, not sure about the rest) with gcc-2.95
    I'm using gcc 2.95.

  4. #4
    Junior Member
    Join Date
    Sep 2003
    Posts
    5
    Bumping.

    Surely someone has compiled hwsetup, either successfully or with the errors I've seen.

  5. #5
    Junior Member
    Join Date
    Oct 2003
    Posts
    2
    Quote Originally Posted by Fang
    Bumping.

    Surely someone has compiled hwsetup, either successfully or with the errors I've seen.
    I did. The problem is the version of kudzu libraries you are using. hwsetup is incompatible with kudzu-libs >0.99

    You must adapt hwsetup to the new version of kudzu-libs or use the apropiate version of kudzu libs, or contact me at [email protected] and a I'll send you my modified version.

  6. #6
    Junior Member
    Join Date
    Oct 2003
    Posts
    2

    Simple Solution

    The problem:

    <pre>
    hwsetup.c: In function `hw_info':
    hwsetup.c:251: structure has no member named `class'
    hwsetup.c: In function `writeconfig':
    hwsetup.c:411: structure has no member named `class'
    hwsetup.c: In function `hw_setup':
    hwsetup.c:488: structure has no member named `class'
    make: *** [hwsetup] Error 1
    </pre>

    The solution;

    Just replace 'class' by 'type' in that lines. That's all;

  7. #7
    Junior Member registered user
    Join Date
    Oct 2003
    Posts
    17

    Sourcecode request

    Hi, @ll

    does anyone of you have the latest source code of hwsetup? Like hwsetup-1.0-13?

    Sourcecode of current source tree (1.0-9) doesnt work for me.

    Thx.

  8. #8
    Junior Member registered user
    Join Date
    Sep 2003
    Location
    North-eastern North America
    Posts
    14
    do ls -l /usr/lib/libkudzu.a to get its size. I was not able to link hwsetup.o to a stripped libkudzu.a . It took me a long time to discover this.
    An unstripped (and therefore sane) libkudzu.a is over 800 KB.

    I am also looking for hwsetup-1.0-13 source. If it were not of that partitions crash, I would have mirrored it.

  9. #9
    Junior Member registered user
    Join Date
    Sep 2003
    Location
    North-eastern North America
    Posts
    14

Similar Threads

  1. New problems when compiling under 3.8.1
    By redss in forum General Support
    Replies: 4
    Last Post: 05-11-2005, 09:19 PM
  2. Compiling kernel from source
    By guyr in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-14-2004, 04:26 PM
  3. Where did the knoppix hwsetup source code go?
    By rexmundi in forum General Support
    Replies: 7
    Last Post: 01-01-2004, 11:13 PM
  4. hwsetup/ash-knoppix, are they open source ?
    By garyng in forum Customising & Remastering
    Replies: 4
    Last Post: 12-01-2003, 05:56 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
  •  


(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$174.99



Intel Core i7-10700K 3.80GHz 8 Core SRH72 16 Thread LGA 1200 picture

Intel Core i7-10700K 3.80GHz 8 Core SRH72 16 Thread LGA 1200

$275.00



Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core i5-1135G7@2.40GHz Laptop picture

Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core [email protected] Laptop

$220.36



Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS picture

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS

$259.98



Intel Core i7-6700 SR2L2 3.40GHz 8 MB 4-Core LGA1151 Socket CPU Processor picture

Intel Core i7-6700 SR2L2 3.40GHz 8 MB 4-Core LGA1151 Socket CPU Processor

$27.99



AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused picture

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused

$395.95



Apple Macbook Pro 13

Apple Macbook Pro 13" M1 8-Core 16GB 512GB - Good

$464.99



AMD Ryzen Threadripper PRO 3945WX 12-Core 4.0GHz sWRX8 CPU NEW Tray Unlocked picture

AMD Ryzen Threadripper PRO 3945WX 12-Core 4.0GHz sWRX8 CPU NEW Tray Unlocked

$79.99



AMD Ryzen 7 9800X3D 8-Core AM5 Desktop Processor 5.2GHz MPN 100-100001084WOF picture

AMD Ryzen 7 9800X3D 8-Core AM5 Desktop Processor 5.2GHz MPN 100-100001084WOF

$400.00



AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1) picture

AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1)

$189.00