LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-11-2003, 09:28 PM   #1
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Rep: Reputation: 30
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

Last edited by sovietpower; 11-11-2003 at 09:30 PM.
 
Old 11-12-2003, 01:08 AM   #2
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
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?
 
Old 11-12-2003, 01:11 AM   #3
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Original Poster
Rep: Reputation: 30
I am always root
 
Old 11-12-2003, 01:25 AM   #4
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
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?
 
Old 11-12-2003, 01:26 AM   #5
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
This explains part of your problem. I just googled.

http://mplayerhq.hu/pipermail/mplaye...il/000975.html
 
Old 11-12-2003, 08:40 AM   #6
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Original Poster
Rep: Reputation: 30
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?
 
Old 11-12-2003, 11:13 AM   #7
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
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?)
 
Old 11-12-2003, 04:29 PM   #8
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Original Poster
Rep: Reputation: 30
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
 
Old 11-12-2003, 04:57 PM   #9
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
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?
 
Old 11-12-2003, 06:40 PM   #10
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Original Poster
Rep: Reputation: 30
yes libpng is always the problem that is always the problem
 
Old 11-13-2003, 07:41 AM   #11
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
Ah, well thats a clue. Did you visit the link above? What else have you tried?
 
  


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
How do I compile? icecream33 Programming 3 12-20-2017 11:49 AM
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 04:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 01:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration