LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-07-2010, 04:13 AM   #1
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Rep: Reputation: 0
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?
 
Old 06-07-2010, 09:22 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Google says it's libpci. Install libpci?
 
Old 06-08-2010, 06:06 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
#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 ?
..
 
Old 06-08-2010, 11:35 PM   #4
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 06-09-2010, 03:39 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

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

'make pommed OFLIB=1'

???
..

Last edited by knudfl; 06-09-2010 at 03:41 AM.
 
Old 06-09-2010, 05:45 AM   #6
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 06-09-2010, 05:47 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
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.
 
Old 06-10-2010, 08:16 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
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.
.

Last edited by knudfl; 06-11-2010 at 11:11 AM.
 
Old 06-10-2010, 09:25 PM   #9
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
That indeed allowed compilation. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Errors compiling boombastic Linux - Newbie 7 08-04-2004 03:09 PM
compiling errors degraffenried13 Linux - General 1 04-04-2004 01:54 PM
QT compiling errors slackwarefan Slackware 1 03-01-2004 07:45 PM
Errors compiling 2.6.0 plisken Linux - General 3 10-10-2003 05:12 PM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration