I can't compile anything please help
Ok here is my problem. I can only use programs that are already pre-installed in the system or things like bin files or run (limewire, Enemy Territory etc) Whenever I download source to build programs it just never works. I can get past ./configure most of the time but when it comes to make it usually gives me an error here is an example
make[2]: Entering directory `/root/Desktop/Evan/angelwars/angelwars' c++ -g -O2 -o angelwars mixer.o main.o main-menu.o main-helper.o imagecache.o font.o event.o enemy.o enemy-slave.o enemy-morte.o enemy-fatboy.o enemy-bat.o display.o bullet.o bullet-minibolt.o bullet-lightning.o bullet-firebolt.o boundingbox.o behavior.o behavior-sinewave.o behavior-quadratic.o behavior-periodic.o behavior-linear.o behavior-from-keyboard.o behavior-follow.o background.o audiocache.o anim.o actorlist.o actor.o actor-player.o actor-destructible.o IMG_png.o IMG_jpg.o IMG_bmp.o IMG.o -lSDL_mixer -lpng -ljpeg -lSDL_mixer -lSDL /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `deflate' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `inflate' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `inflateInit_' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `crc32' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `deflateInit2_' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `inflateReset' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `deflateReset' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `inflateEnd' /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../libpng.so: undefined reference to `deflateEnd' collect2: ld returned 1 exit status make[2]: *** [angelwars] Error 1 make[2]: Leaving directory `/root/Desktop/Evan/angelwars/angelwars' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Desktop/Evan/angelwars' make: *** [all-recursive-am] Error 2 In this case this is the output for make with angelwars, I did install the libpng correctly and libjpeg but I cant quite figure why this doesnt work and basically anything else I try to install. It is a %95 on make too |
You sometimes have to make as root ( and even ./configure ) so the script can gain access to root owned directories. You always have to 'make install' as root.
Have you had the system long? I think maybe you tried to work as root and therefore left root permissions on a lot of files? |
I am always root
|
Well, the fact that you are always root, I can guarantee you is why you have this problem. I did it too, and had to reinstall. How long have you had the system?
|
This explains part of your problem. I just googled.
http://mplayerhq.hu/pipermail/mplaye...il/000975.html |
I have had my system for like a week now just installed it like last friday. Thats for Mplayer but it seems as it could be for the program I am compiling what are your suggestions?
|
Well, if other programs are installing ok, maybe it is just that application. But if you've been trying things out as root without really knowing what youre doing, and the system is acting strange, I'd reinstall. It's only a week old. No big loss. (You're not currently in Ireland by any chance?)
|
Oh no its not just that program its everything that I have to compile, I don't really want to reinstall as this installation went fine everything included in the Slackware 9.1 package is installed so. I am not in Ireland lol try America
|
hehe, ok. I know the install went okay, but I think you might have done damage playing around as root which is pretty hard to undo. It's a lesson you learn.
If the installation went well, then doing it again won't hurt that much :) However, I did notice that ALL errors above concern the same library. I googled http://mail.gnome.org/archives/gnome.../msg01013.html Tell me, is libpng.so always the problem? |
yes libpng is always the problem that is always the problem
|
Ah, well thats a clue. Did you visit the link above? What else have you tried?
|
All times are GMT -5. The time now is 05:24 PM. |