LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compilation Failure success Rate 1500% (https://www.linuxquestions.org/questions/linux-newbie-8/compilation-failure-success-rate-1500-a-277156/)

drache777 01-12-2005 10:48 PM

Compilation Failure success Rate 1500%
 
I'm a recent Linux switchover, I've grown bored of Windows and Mr. Gates' antics of making me oodles for his software and hardware. So I decided to switch to Linux. My dad first brought home Suse 9.0 a lovely little distro, complete with no development packages. So for hours I spent trying to find out what "make" was and how to use it and such. I've gone through two versions of SuSE, one of RedHat(9.1) and I finally found one I'm rather content with... Mandrake 10.1.

I'm a very experienced computer user and I'm no dummy to coding and such, I'm the trial and error master because this is how I'm learning Linux, I'm incredibly sick of these compilation problems and ANY help would be appreciated. -On and off note

Now I've heard many disagreements about this distro, buggy,crashy, iffty. I find all of these to be false. However I find it impossible to compile ANYTHING. I have NEVER compiled one single thing successfully or without ONE error. I have about a million compilation problems waiting in line. My newest projects are:
-Updating to KDE 3.3.2 from 3.2
-Installing the latest Qt so that I can INSTALL KDE
-Installing gcc/cpp/G++ so that I can install Qt
- Under root, when I hold down backspace, it just deletes one character instead of continuing to delete in a series, so I want to fix that as well.

Currently i'm working on the GCC, now I've gone through much of this before, I've configured my urpmi, followed readme's and such. However I seem to be missing the neccessary files for everyday operation. I decide that Linux hates after it returns this during a comilation of gcc. I do my norm, cd on over to the directory, notice there is a configure file and ./configure it. Well it appears to have worked, hooray, that doesn't happen often. It says that it created a makefile. Fan freakin tastic. So I type "make" my favorite words because I know it will NEVER work. Here's what I get:
Quote:

Configuring in fastjar
configure: loading cache ./config.cache
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for style of include used by make... GNU
checking dependency style of gcc... (cached) none
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for cp... (cached) /bin/cp
checking for strip... (cached) /usr/bin/strip
checking for chmod... (cached) /bin/chmod
checking whether to enable maintainer-specific portions of Makefiles... no
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for limits.h... (cached) yes
checking for off_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking if mkdir takes one argument... (cached) no
checking size of char... (cached) 1
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking for long long... (cached) yes
checking size of long long... (cached) 8
checking whether byte ordering is bigendian... (cached) no
checking whether to place generated files in the source directory... no
grep: ./version.c: No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating install-defs.sh
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make[1]: Entering directory `/home/sparks/gcc-3.4.3/fastjar'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" all-am
make[2]: Entering directory `/home/sparks/gcc-3.4.3/fastjar'
make[2]: *** No rule to make target `fastjar.texi', needed by `fastjar.info'. Stop.
make[2]: Leaving directory `/home/sparks/gcc-3.4.3/fastjar'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sparks/gcc-3.4.3/fastjar'
make: *** [all-fastjar] Error 2
To me, it appears as if it has a confrontation with it's own files. This isn't the first time this kind of nonsense has happened. Let's take a look at our next excuse with Qt!
Qt decides that it hates me, in all aspects, it won't even let me KIND of configure it.

Quote:

Creating qmake. Please wait...
g++ -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/sparks/qt-x11-free-3.3.3/include/qmake -I/home/sparks/qt-x11-free-3.3.3/include -I/home/sparks/qt-x11-free-3.3.3/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/sparks/qt-x11-free-3.3.3/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP project.cpp
gmake: g++: Command not found
gmake: *** [project.o] Error 127
qmake failed to build. Aborting.
Wow. it does so appear that I don't have anything on Mandrake, including a basic g++ or c++ compiler. Any thoughts? This just starts some of the problems, if its fixed by the help I may recieve, I will continue to post more of the problems I'm having. You get the automatic genius label if you can figure these kinds of things out. (Willing to post anything else in relation to specs, usage, and other needed information)

SPECS: Compaq Presario (better then you think) AMD ATHLON XP 2.16GHZ 512 RAM

scuzzman 01-12-2005 10:56 PM

First off - You don't have g++ installed. Install it.

Secondly, it's best to install G++, GCC, etc through URPMI - they are very hard to compile from source.

Third: The biggest reason people use Mandrake is for URPMI - if you want to compile everything from source might I suggest Slackware?

Most of the big-name RPM-based distros, in an affor to make everything uniform, tweak everything until it's no longer recognisable. Slackware is, simply, stability through simplicity.

drache777 01-12-2005 11:10 PM

That's an excellent point, if it weren't for the fact that I HAVE it already installed. Or so says my urpmi, let me show you.
Quote:

[root@cableone root]# urpmi gcc
Everything already installed
[root@cableone root]# urpmi g++
no package named g++
[root@cableone root]# urpmi gnu-gcc
no package named gnu-gcc
According to Mr.Urpmi I have everything the configurer wants, but maybe it's magically not there. It seems to think that I already have all this GNU,GCC,G++,GTK, and C++ stuff installed.

I definitely mind compiling, in fact I love doing it, if it would just WORK. Nothing ever seems to compile correctly. Or if I need something for the compile, I have to go compile a compiler to compile, or that compiler needs compiling. In the end I HAVE to compile something!

As well, if I use rpmdrake (the GUI one) it fails to find any packages under the names aforementioned (GCC,G++,CPP,C++).

EDIT: Upon a deep investigation of urpmi, after capitilizing gcc
Quote:

urpmi GCC
it appeared to have found the package it needed, QT has CONFIGURED fine, the results of make are pending...

drache777 01-13-2005 12:18 AM

Now that I've configured i try to run make. Here's the error :
Quote:

make[1]: Entering directory `/usr/local/qt'
cd qmake && make
make[2]: Entering directory `/usr/local/qt/qmake'
make[2]: `qmake' is up to date.
make[2]: Leaving directory `/usr/local/qt/qmake'
cd src/moc && make
make[2]: Entering directory `/usr/local/qt/src/moc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `/usr/local/qt/src/moc'
cd src && make
make[2]: Entering directory `/usr/local/qt/src'
g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_SHAPE -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/usr/local/qt/mkspecs/linux-g++ -I. -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qtaddons_x11.o kernel/qtaddons_x11.cpp
In file included from kernel/qtaddons_x11.cpp:25:
kernel/qt_x11_p.h:66:22: X11/Xlib.h: No such file or directory
kernel/qt_x11_p.h:71:23: X11/Xutil.h: No such file or directory
kernel/qt_x11_p.h:72:21: X11/Xos.h: No such file or directory
kernel/qt_x11_p.h:73:23: X11/Xatom.h: No such file or directory
make[2]: *** [.obj/release-shared-mt/qtaddons_x11.o] Error 1
make[2]: Leaving directory `/usr/local/qt/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/usr/local/qt'
make: *** [init] Error 2
Any ideas?

cs-cam 01-13-2005 12:28 AM

Probably don't have the x11 devel files installed, not sure of a package name for you to urpmi for but it's all the header files for apps to link against :)

scuzzman 01-13-2005 12:35 AM

GCC is typically for compiling C
G++ is for C++
Open Add/Remove software (I assume you still have KDE 3.2) and install everyhting that is in "Development"

Sepero 01-13-2005 12:46 AM

Re: Compilation Failure success Rate 1500%
 
Quote:

Originally posted by drache777
My dad first brought home Suse 9.0
Your dad rules!

Anyway, I also recommend dual booting to Slackware. It's a good distro if you like compiling. Personally, I can't stand compiling, so I quit using Slackware in favor of Debian.

__J 01-13-2005 04:25 AM

depending on how you configured it, you will have to have libmng-devel (and libmng ), libjpeg-devel, zlib-devel, libpng-devel, etc... due to the way Mandrake splits its packages. Also, might I suggest you look here if you need to compile something as it will tell you what is required to build certain packages and what is optional.

drache777 01-13-2005 06:41 PM

Thanks for all your help guys! However, I've encountered a new problem.
What DID work for this problem though.
Through a rexamination of the urpmi, there were necessary files in there that were downloaded and used to ammend the problem.
For those who wish to see the newest dilemma, my newest post is up.


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