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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-07-2010, 04:13 AM
|
#1
|
|
LQ Newbie
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18
Rep:
|
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?
|
|
|
|
06-07-2010, 09:22 PM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
Google says it's libpci. Install libpci?
|
|
|
|
06-08-2010, 06:06 AM
|
#3
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,618
|
#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 ?
..
|
|
|
|
06-08-2010, 11:35 PM
|
#4
|
|
LQ Newbie
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
|
06-09-2010, 03:39 AM
|
#5
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,618
|
? Did you try using this command, suggested in 'INSTALL' :
'make pommed OFLIB=1'
???
..
Last edited by knudfl; 06-09-2010 at 03:41 AM.
|
|
|
|
06-09-2010, 05:45 AM
|
#6
|
|
LQ Newbie
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
|
06-09-2010, 05:47 PM
|
#7
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,618
|
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.
|
|
|
|
06-10-2010, 08:16 AM
|
#8
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,618
|
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.
|
|
|
|
06-10-2010, 09:25 PM
|
#9
|
|
LQ Newbie
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18
Original Poster
Rep:
|
That indeed allowed compilation. Thanks!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:18 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|