LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-10-2003, 06:45 PM   #1
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

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

Thanks in advance guys,

Vlad.
 
Old 04-10-2003, 06:50 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What if you try to compile something ... ummm,
more mature? What kind of error messages are
you getting then?

Cheers,
Tink
 
Old 04-10-2003, 07:05 PM   #3
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

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

Thanks for such a swift reply,

Vlad.
 
Old 04-11-2003, 09:37 AM   #4
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Original Poster
Rep: Reputation: 30
Arrow

Just a bump cos its driving me crazy!!!
 
Old 04-11-2003, 09:50 AM   #5
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
 
Old 04-11-2003, 09:56 AM   #6
dfbreyes
LQ Newbie
 
Registered: Apr 2003
Location: Makati, Philippines
Distribution: RedHat, SuSE, Gentoo
Posts: 25

Rep: Reputation: 15
Well for starters, you should have bison, flex, gettext ,patch installed....

Then how about updating glibc.....
try the glibc-2.3.2-4.80 series

ftp://gd.tuwien.ac.at/opsys/linux/

or

http://download.fedora.us/fedora/red.../RPMS.updates/

RH8 is quirky yes....I'm having trouble compiling tar.gz and bz2 files of Gnome 2.2.1 myself.....
 
  


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
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 05:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 05:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 02:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 02:53 AM
How do I compile? icecream33 Programming 2 10-07-2002 07:28 AM


All times are GMT -5. The time now is 06:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration