LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I can't compile anything please help (https://www.linuxquestions.org/questions/linux-software-2/i-cant-compile-anything-please-help-115049/)

sovietpower 11-11-2003 09:28 PM

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

unholy 11-12-2003 01:08 AM

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?

sovietpower 11-12-2003 01:11 AM

I am always root

unholy 11-12-2003 01:25 AM

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?

unholy 11-12-2003 01:26 AM

This explains part of your problem. I just googled.

http://mplayerhq.hu/pipermail/mplaye...il/000975.html

sovietpower 11-12-2003 08:40 AM

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?

unholy 11-12-2003 11:13 AM

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?)

sovietpower 11-12-2003 04:29 PM

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

unholy 11-12-2003 04:57 PM

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?

sovietpower 11-12-2003 06:40 PM

yes libpng is always the problem that is always the problem

unholy 11-13-2003 07:41 AM

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.