Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
Why can't I compile anything?
Hi all,
I am running RH 8.0, and I made sure that I installed all the devel packages when I installed the system. But now I can't seem to compile anything on my box. Just an example - I am trying to compile Qtparted, and this is what I am getting when I do 'make'
<<<<<<<<<<<<<<<<<<<<<long snip coming up
[root@MyBox qtparted-0.1.7]# make
QTDIR=/usr/lib/qt3-gcc3.2 make -C src
make[1]: Entering directory `/root/APPS_Linux/PARTED/qtparted-0.1.7/src'
g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2 -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt3-gcc3.2/include -I/usr/lib/qt3-gcc3.2/mkspecs/default -o main.o main.cpp
In file included from qp_window.h:39,
from main.cpp:32:
qp_libparted.h:34:27: parted/parted.h: No such file or directory
In file included from qp_window.h:39,
from main.cpp:32:
qp_libparted.h:48: 'PedSector' is used as a type, but is not defined as a type.
qp_libparted.h:49: 'PedSector' is used as a type, but is not defined as a type.
qp_libparted.h:50: 'PedSector' is used as a type, but is not defined as a type.
qp_libparted.h:51: 'PedSector' is used as a type, but is not defined as a type.
qp_libparted.h:52: 'PedSector' is used as a type, but is not defined as a type.
qp_libparted.h:67: `PedSector' was not declared in this scope
qp_libparted.h:67: `PedSector' was not declared in this scope
qp_libparted.h:67: invalid data member initialization
qp_libparted.h:67: (use `=' to initialize static data members)
qp_libparted.h:69: parse error before `)' token
qp_libparted.h:98: `PedPartition' was not declared in this scope
qp_libparted.h:98: `part' was not declared in this scope
qp_libparted.h:98: invalid data member initialization
qp_libparted.h:98: variable or field `partition_print_flags' declared void
qp_libparted.h:99: `PedGeometry' was not declared in this scope
qp_libparted.h:99: `geom' was not declared in this scope
qp_libparted.h:99: `PedDisk' was not declared in this scope
qp_libparted.h:99: `disk' was not declared in this scope
qp_libparted.h:99: invalid data member initialization
qp_libparted.h:100: `PedSector' was not declared in this scope
qp_libparted.h:100: parse error before `,' token
qp_libparted.h:101: `PedSector' was not declared in this scope
qp_libparted.h:101: parse error before `,' token
qp_libparted.h:102: `PedSector' was not declared in this scope
qp_libparted.h:102: parse error before `,' token
qp_libparted.h:103: type specifier omitted for parameter `PedSector'
qp_libparted.h:103: type specifier omitted for parameter `PedSector'
qp_libparted.h:109: type specifier omitted for parameter `PedSector'
qp_libparted.h:109: type specifier omitted for parameter `PedSector'
qp_libparted.h:110: type specifier omitted for parameter `PedSector'
qp_libparted.h:110: type specifier omitted for parameter `PedSector'
qp_libparted.h:111: type specifier omitted for parameter `PedSector'
qp_libparted.h:111: type specifier omitted for parameter `PedSector'
qp_libparted.h:115: syntax error before `*' token
qp_libparted.h:119: `PedPartition' was not declared in this scope
qp_libparted.h:119: parse error before `,' token
In file included from qp_window.h:40,
from main.cpp:32:
qp_dlgcreate.h:46: `PedSector' was not declared in this scope
qp_dlgcreate.h:46: parse error before `)' token
qp_dlgcreate.h:51: parse error before `)' token
In file included from qp_dlgresize.h:34,
from qp_window.h:41,
from main.cpp:32:
qp_sizepart.h:20: `PedSector' was not declared in this scope
qp_sizepart.h:20: invalid data member initialization
qp_sizepart.h:20: variable or field `setMaxPartSector' declared void
qp_sizepart.h:21: `PedSector' was not declared in this scope
qp_sizepart.h:21: invalid data member initialization
qp_sizepart.h:21: variable or field `setMinPartSector' declared void
qp_sizepart.h:22: `PedSector' was not declared in this scope
qp_sizepart.h:22: invalid data member initialization
qp_sizepart.h:22: variable or field `setStartPartSector' declared void
qp_sizepart.h:23: `PedSector' was not declared in this scope
qp_sizepart.h:23: invalid data member initialization
qp_sizepart.h:23: variable or field `setEndPartSector' declared void
qp_sizepart.h:24: `PedSector' was not declared in this scope
qp_sizepart.h:24: invalid data member initialization
qp_sizepart.h:24: variable or field `setGrowStartPartSector' declared void
qp_sizepart.h:25: `PedSector' was not declared in this scope
qp_sizepart.h:25: invalid data member initialization
qp_sizepart.h:25: variable or field `setGrowEndPartSector' declared void
qp_sizepart.h:35: 'PedSector' is used as a type, but is not defined as a type.
qp_sizepart.h:36: 'PedSector' is used as a type, but is not defined as a type.
qp_sizepart.h:37: 'PedSector' is used as a type, but is not defined as a type.
qp_sizepart.h:38: 'PedSector' is used as a type, but is not defined as a type.
qp_sizepart.h:39: 'PedSector' is used as a type, but is not defined as a type.
qp_sizepart.h:40: 'PedSector' is used as a type, but is not defined as a type.
qp_sizepart.h:43: `PedSector' was not declared in this scope
qp_sizepart.h:43: invalid data member initialization
qp_sizepart.h:43: variable or field `sigChangedStart' declared void
qp_sizepart.h:44: `PedSector' was not declared in this scope
qp_sizepart.h:44: invalid data member initialization
qp_sizepart.h:44: variable or field `sigChangedEnd' declared void
qp_sizepart.h:45: `PedSector' was not declared in this scope
qp_sizepart.h:45: `PedSector' was not declared in this scope
qp_sizepart.h:45: invalid data member initialization
qp_sizepart.h:45: variable or field `sigChangedPos' declared void
In file included from qp_window.h:41,
from main.cpp:32:
qp_dlgresize.h:48: `PedSector' was not declared in this scope
qp_dlgresize.h:48: invalid data member initialization
qp_dlgresize.h:48: variable or field `setMaxPartSector' declared void
qp_dlgresize.h:49: `PedSector' was not declared in this scope
qp_dlgresize.h:49: invalid data member initialization
qp_dlgresize.h:49: variable or field `setMinPartSector' declared void
qp_dlgresize.h:50: `PedSector' was not declared in this scope
qp_dlgresize.h:50: invalid data member initialization
qp_dlgresize.h:50: variable or field `setStartPartSector' declared void
qp_dlgresize.h:51: `PedSector' was not declared in this scope
qp_dlgresize.h:51: invalid data member initialization
qp_dlgresize.h:51: variable or field `setEndPartSector' declared void
qp_dlgresize.h:52: `PedSector' was not declared in this scope
qp_dlgresize.h:52: invalid data member initialization
qp_dlgresize.h:52: variable or field `setGrowStartPartSector' declared void
qp_dlgresize.h:53: `PedSector' was not declared in this scope
qp_dlgresize.h:53: invalid data member initialization
qp_dlgresize.h:53: variable or field `setGrowEndPartSector' declared void
qp_dlgresize.h:61: 'PedSector' is used as a type, but is not defined as a type.
qp_dlgresize.h:62: 'PedSector' is used as a type, but is not defined as a type.
qp_dlgresize.h:63: 'PedSector' is used as a type, but is not defined as a type.
qp_dlgresize.h:64: 'PedSector' is used as a type, but is not defined as a type.
qp_dlgresize.h:65: 'PedSector' is used as a type, but is not defined as a type.
qp_dlgresize.h:66: 'PedSector' is used as a type, but is not defined as a type.
qp_dlgresize.h:70: `PedSector' was not declared in this scope
qp_dlgresize.h:70: invalid data member initialization
qp_dlgresize.h:70: variable or field `slotChangedStart' declared void
qp_dlgresize.h:71: `PedSector' was not declared in this scope
qp_dlgresize.h:71: invalid data member initialization
qp_dlgresize.h:71: variable or field `slotChangedEnd' declared void
qp_dlgresize.h:72: `PedSector' was not declared in this scope
qp_dlgresize.h:72: `PedSector' was not declared in this scope
qp_dlgresize.h:72: invalid data member initialization
qp_dlgresize.h:72: variable or field `slotChangedPos' declared void
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/root/APPS_Linux/PARTED/qtparted-0.1.7/src'
make: *** [all] Error 2
>>>>>>>>>>>>>>>>>>>>>..end of the snip
Can anyone translate this for me and tell me what I need to do to have my stuff compile?
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
More mature as in more mature code?
I have to admit to being a lazy ass and abusing the wonders of apt-rpm, so I haven't actually installed anything from source yet. But I also tried to compile the audio-over-IDE plugin for XMMS, here is what I get then:
>>>>>>>>>
[root@MyBox xmms-cdread-0.14a]# make
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"xmms-cdread\" -DVERSION=\"0.14a\" -DSTDC_HEADERS=1 -DHAVE_LINUX_CDROM_H=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_GLOBAL_PLAYLIST_DELETE_NODE=1 -I. -I. -O2 -W -Wall -Wno-unused -I. -I. -I/usr/include -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -c cdread.c
gcc -DPACKAGE=\"xmms-cdread\" -DVERSION=\"0.14a\" -DSTDC_HEADERS=1 -DHAVE_LINUX_CDROM_H=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_GLOBAL_PLAYLIST_DELETE_NODE=1 -I. -I. -O2 -W -Wall -Wno-unused -I. -I. -I/usr/include -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -c -fPIC -DPIC cdread.c -o cdread.lo
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
cdread.c:22:25: xmms/plugin.h: No such file or directory
cdread.c:36:23: xmms/util.h: No such file or directory
In file included from /usr/include/linux/cdrom.h:14,
from cdread.c:50:
/usr/include/asm/byteorder.h:11: warning: type qualifiers ignored on function return type
/usr/include/asm/byteorder.h:25: warning: type qualifiers ignored on function return type
In file included from /usr/include/linux/byteorder/little_endian.h:11,
from /usr/include/asm/byteorder.h:42,
from /usr/include/linux/cdrom.h:14,
from cdread.c:50:
/usr/include/linux/byteorder/swab.h:132: warning: type qualifiers ignored on function return type
/usr/include/linux/byteorder/swab.h:145: warning: type qualifiers ignored on function return type
/usr/include/linux/byteorder/swab.h:159: warning: type qualifiers ignored on function return type
cdread.c:68: parse error before "cd_ip"
cdread.c:68: warning: type defaults to `int' in declaration of `cd_ip'
cdread.c:68: warning: data definition has no type or storage class
cdread.c:88: parse error before '*' token
cdread.c:90: warning: return type defaults to `int'
cdread.c: In function `get_iplugin_info':
cdread.c:92: request for member `description' in something not a structure or union
cdread.c:93: request for member `init' in something not a structure or union
cdread.c:94: request for member `configure' in something not a structure or union
cdread.c:95: request for member `is_our_file' in something not a structure or union
cdread.c:96: request for member `scan_dir' in something not a structure or union
cdread.c:97: request for member `play_file' in something not a structure or union
cdread.c:98: request for member `stop' in something not a structure or union
cdread.c:99: request for member `pause' in something not a structure or union
cdread.c:100: request for member `seek' in something not a structure or union
cdread.c:101: request for member `get_time' in something not a structure or union
cdread.c:102: request for member `get_song_info' in something not a structure or union
cdread.c:103: request for member `file_info_box' in something not a structure or union
cdread.c:107: request for member `set_eq' in something not a structure or union
cdread.c: In function `action_wait':
cdread.c:119: warning: implicit declaration of function `xmms_usleep'
cdread.c: In function `cd_read_loop':
cdread.c:281: request for member `output' in something not a structure or union
cdread.c:292: request for member `output' in something not a structure or union
cdread.c:314: request for member `output' in something not a structure or union
cdread.c:316: request for member `add_vis_pcm' in something not a structure or union
cdread.c:316: request for member `output' in something not a structure or union
cdread.c:317: `FMT_S16_LE' undeclared (first use in this function)
cdread.c:317: (Each undeclared identifier is reported only once
cdread.c:317: for each function it appears in.)
cdread.c: In function `cd_play_file':
cdread.c:500: request for member `set_info' in something not a structure or union
cdread.c:515: request for member `get_volume' in something not a structure or union
cdread.c:516: request for member `set_volume' in something not a structure or union
cdread.c:532: request for member `get_volume' in something not a structure or union
cdread.c:533: request for member `set_volume' in something not a structure or union
cdread.c:534: request for member `output' in something not a structure or union
cdread.c:534: `FMT_S16_LE' undeclared (first use in this function)
cdread.c: In function `cd_stop':
cdread.c:593: request for member `output' in something not a structure or union
cdread.c: In function `cd_pause':
cdread.c:609: request for member `output' in something not a structure or union
cdread.c: In function `cd_get_time':
cdread.c:646: request for member `output' in something not a structure or union
cdread.c:647: request for member `output' in something not a structure or union
make: *** [cdread.lo] Error 1
>>>>>>>>>>>>>>
I have that bitter taste in my mouth again, everything was going so well and now this reminds me again how little I know....Well I suppose we all need some humility now and then....
Well without getting into further details about the specific programs you are trying to compile. Both examples are complaining about not being able to find header files. So your first check would be to see if those files exist at all. If they do your second check would be to find out if the compiler is looking for them in the right location. If you look at the compile line just before the place where it says "No such file or directory" you'll see a bunch of -Ipath. The path says in what directory it's looking for the header files. The header file should be found in one of those locations. If no then you should probably pass some extra options to the configure script so it can find the right locations.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.