LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Errors when compiling pommed (http://www.linuxquestions.org/questions/linux-software-2/errors-when-compiling-pommed-812616/)

kingm1k3 06-07-2010 04:13 AM

Errors when compiling pommed
 
I'm running Slack64 13.1 on a Macbook Pro 5,3 and trying to compile pommed but I keep getting the following error when running 'make pommed':

Code:

make[1]: Entering directory `/home/mike/Downloads/pommed-1.32/pommed'
gcc -pthread -lrt -ldbus-1 -lpthread -lrt  -lasound  -laudiofile -lm  -lconfuse  -lpci -lz -lresolv    pommed.o cd_eject.o evdev.o conffile.o audio.o evloop.o dbus.o power.o beep.o video.o sysfs_backlight.o mactel/x1600_backlight.o mactel/gma950_backlight.o mactel/nv8600mgt_backlight.o mactel/kbd_backlight.o mactel/ambient.o mactel/acpi.o  -o pommed
mactel/x1600_backlight.o: In function `x1600_backlight_probe':
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:252: undefined reference to `pci_alloc'
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:259: undefined reference to `pci_init'
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:260: undefined reference to `pci_scan_bus'
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:260: undefined reference to `pci_scan_bus'
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:265: undefined reference to `pci_fill_info'
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:278: undefined reference to `pci_cleanup'
/home/mike/Downloads/pommed-1.32/pommed/mactel/x1600_backlight.c:278: undefined reference to `pci_cleanup'
mactel/gma950_backlight.o: In function `gma950_backlight_probe':
/home/mike/Downloads/pommed-1.32/pommed/mactel/gma950_backlight.c:319: undefined reference to `pci_alloc'
/home/mike/Downloads/pommed-1.32/pommed/mactel/gma950_backlight.c:326: undefined reference to `pci_init'
/home/mike/Downloads/pommed-1.32/pommed/mactel/gma950_backlight.c:327: undefined reference to `pci_scan_bus'
/home/mike/Downloads/pommed-1.32/pommed/mactel/gma950_backlight.c:333: undefined reference to `pci_fill_info'
/home/mike/Downloads/pommed-1.32/pommed/mactel/gma950_backlight.c:349: undefined reference to `pci_cleanup'
/home/mike/Downloads/pommed-1.32/pommed/mactel/gma950_backlight.c:349: undefined reference to `pci_cleanup'
mactel/nv8600mgt_backlight.o: In function `nv8600mgt_backlight_probe':
/home/mike/Downloads/pommed-1.32/pommed/mactel/nv8600mgt_backlight.c:194: undefined reference to `pci_alloc'
/home/mike/Downloads/pommed-1.32/pommed/mactel/nv8600mgt_backlight.c:201: undefined reference to `pci_init'
/home/mike/Downloads/pommed-1.32/pommed/mactel/nv8600mgt_backlight.c:202: undefined reference to `pci_scan_bus'
/home/mike/Downloads/pommed-1.32/pommed/mactel/nv8600mgt_backlight.c:207: undefined reference to `pci_fill_info'
/home/mike/Downloads/pommed-1.32/pommed/mactel/nv8600mgt_backlight.c:219: undefined reference to `pci_cleanup'
/home/mike/Downloads/pommed-1.32/pommed/mactel/nv8600mgt_backlight.c:219: undefined reference to `pci_cleanup'
collect2: ld returned 1 exit status
make[1]: *** [pommed] Error 1
make[1]: Leaving directory `/home/mike/Downloads/pommed-1.32/pommed'
make: *** [pommed] Error 2

I'm willing to bet it's a dependency issue, but I don't know which one. These are the dependencies from INSTALL:

pommed requires:
- pciutils / libpci (on Intel machines only)
- libofapi aka oflib (PowerMac machines only, see below)
- zlib
- libconfuse
- libdbus
- libasound
- libaudiofile
- eject

Any ideas?

AlucardZero 06-07-2010 09:22 PM

Google says it's libpci. Install libpci?

knudfl 06-08-2010 06:06 AM

#3 , @ AlucardZero : It's Slackware, "everything" is present by default:
libpciaccess-0.11.0-x86_64-1 pciutils-3.1.5-x86_64-1


I can test on Intel / amd64 only, the result :
A Slackware problem ?
Slackware 13 , 13.1 - 32 Bits , Slackware 13.1 - 64 Bits :
same errors, as you show.

Fedora 11 - 64 Bits, PClinuxOS2010 - 32 Bits : no errors.

One would assume, that the command : make pommed OFLIB=1
.. would use the internal OFLIB and not look for pci.h :
No luck with the above tested Slackware, I even removed
pciutils. Error : no pci.h found.

Did you try with the command 'make pommed OFLIB=1' on Mac ?
..

kingm1k3 06-08-2010 11:35 PM

I'm assuming by "on Mac" you mean on my Macbook booted up in Slack64, in which case that make command results in the same errors. I tried going through and installing all the dependencies too. I'm still a bit of a noob so I don't really know where to go from here. Google doesn't really help at all.

knudfl 06-09-2010 03:39 AM

? Did you try using this command, suggested in 'INSTALL' :

'make pommed OFLIB=1'

???
..

kingm1k3 06-09-2010 05:45 AM

Yeah, I tried that and the same errors happened (sorry I was trying to say that in my last post). Also INSTALL says that's only for PPC arch.

knudfl 06-09-2010 05:47 PM

Quote:

Also INSTALL says that's only for PPC arch
Sorry , I overlooked that.

I didn't find out, why Slackware can't handle this software,
also tried to with a later pciutils → 3.1.7. No luck.
All versions of pciutils work with pommed on other Linux.
......... It's a Slackware only issue.

knudfl 06-10-2010 08:16 AM

Building a new "pciutils" : ( started on that yesterday.)
1. Fedora 13 SRC.RPM, the patches used with pciutils-3.1.5 : Success.
'rpmbuild -bb pciutils.spec' ( PCLinuxOS 2010 was used for the build.)
2. First Slackware 13: src2pkg pciutils-3.1.5 + F13 patches: No package.
3. Other Slack 13: src2pkg pciutils-3.1.5 + F13 patches: OK, but no libs.
4. Slackware 13.1 - 32 Bits :
Packages from 1. : rpm2tgz <rpm-packages> : Success, make pommed OK.
5. Slackware 13.1 - 64 Bits : src2pkg failed again to build a package.
....... Conclusion : why not use the original F13 packages then ...
http://download.fedora.redhat.com/pu...c13.x86_64.rpm
> pciutils-3.1.6-4.fc13.x86_64.rpm
http://download.fedora.redhat.com/pu...c13.x86_64.rpm
> pciutils-devel-3.1.6-4.fc13.x86_64.rpm
http://download.fedora.redhat.com/pu...c13.x86_64.rpm
> pciutils-libs-3.1.6-4.fc13.x86_64.rpm

cd <folder>/ && rpm2tgz *
# removepkg pciutils
# installpkg *.tgz
..................... And again : 'make pommed' works OK.
.

kingm1k3 06-10-2010 09:25 PM

That indeed allowed compilation. Thanks!


All times are GMT -5. The time now is 09:25 AM.