#2 got a error when make backlight

open
nobody
None
5
2012-12-05
2007-07-24
yinhm
No

Laptop: Macbook Pro 3rd
OS: Ubuntu 7.04 X86 64
gcc: 4.1.2

see attach for lspci output.

{{{
josh@matrix:~/svn/mactel-linux/tools/backlight$ LC_ALL=C make
gcc -Wall -g -Wextra -DVERSION=\"0.1.1\" backlight.c -o backlight -lpci
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x4c3): undefined reference to `gzopen'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x52d): undefined reference to `gzgets'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x625): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x641): undefined reference to `gzeof'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x6cc): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0xa44): undefined reference to `gzopen'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0xba9): undefined reference to `gzerror'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list':
(.text+0xbc6): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make: *** [backlight] Error 1
}}}

josh@matrix:~/svn/mactel-linux/tools/backlight$ uname -a
Linux matrix 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux

josh@matrix:~/svn/mactel-linux/tools/backlight$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Discussion

  • yinhm
    yinhm
    2007-07-24

     
    Attachments
  • yinhm
    yinhm
    2007-07-24

    Logged In: YES
    user_id=1183458
    Originator: YES

    OK, the build issue can be fixed by adding LD_FLAGS to Makefile, details descript here:
    https://bugs.launchpad.net/ubuntu/+source/pciutils/+bug/87436

    but I got this error msg when running backlight:
    #sudo backlight -10
    Failed to detect ATI X1600, aborting...

    seems NVIDIA card isn't supported?