Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-26-2004, 11:47 AM
|
#1
|
LQ Newbie
Registered: Mar 2004
Location: Dresden, Germany
Distribution: SuSE 9.1 Pro
Posts: 21
Rep:
|
Special things needed to compile a program?
I downloaded some programs as sourcecode archives cause there was no rpm available for SuSE 9. But unfortunately I am not able to compile one of them :-(
I was able to fix some problems like "command not found". But anytime there comes an error like "Syntax error" or "undeclared", in every progam I try to compile. But I can not imagine that there are really syntax or declaration errors in the source codes, even if they have been download very often and I also downloaded some of them several times. To give some names: GAIM 0.75 or GtkScintilla2.
cd GtkScintilla2-0.1.0
make
runs a while but brakes with
gtkscintilla.c:154: error 'scintilla_marshal_VOID__INT_INT' undeclared
error 1
I had a look into gtkscintilla.c and there is really this expression which is not declared in this file. But there are also some include files I did not take a look in. I think it looks like a constant, but how do I know the value of it? Or mustn't it be declared otherwise?
I ran the compilation as root.
Do I (or my system :-)) need something special to compile a program in general (except a compiler and the make)?
I don't know very much about C/C++ programming, I am just doing my first steps with it...
thx,
thw
|
|
|
03-26-2004, 12:28 PM
|
#2
|
Member
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136
Rep:
|
You need to make sure you have a recent version of glibc, gcc and make. Can you paste the last few lines in your error message? You are probably missing something, but to find out what you need, you have to look at the context. See for an error with an include file.
/meldar
|
|
|
03-27-2004, 01:04 PM
|
#3
|
LQ Newbie
Registered: Mar 2004
Location: Dresden, Germany
Distribution: SuSE 9.1 Pro
Posts: 21
Original Poster
Rep:
|
hello,
That are the last few lines of the make output
---bof---
gcc -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -g -Wall -DGTK -DSCI_LEXER -c -o gtkscintilla.o gtkscintilla.c
gtkscintilla.c: In function `gtk_scintilla_class_init':
gtkscintilla.c:154: error: `scintilla_marshal_VOID__INT_INT' undeclared (first use in this function)
gtkscintilla.c:154: error: (Each undeclared identifier is reported only once
gtkscintilla.c:154: error: for each function it appears in.)
gtkscintilla.c:182: error: `scintilla_marshal_VOID__INT_INT_STRING_INT_INT_INT_INT_INT' undeclared (first use in this function)
gtkscintilla.c:194: error: `scintilla_marshal_VOID__INT_ULONG_LONG' undeclared (first use in this function)
gtkscintilla.c:204: error: `scintilla_marshal_VOID__INT_INT_INT' undeclared (first use in this function)
make: *** [gtkscintilla.o] Fehler 1
---eof---
Something similar to this happens also with other source codes. I don't really see a problem :-(
My glibc/gcc versions shall be okay... (glibc 2.3.2-88, gcc 3.3.1-24, make 3.80-96)
I have absolutely no idea :-(
thw
|
|
|
03-27-2004, 02:40 PM
|
#4
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
You can install Gaim 0.67-47 in the add and remove programs in yast if that will help,david
|
|
|
03-27-2004, 03:43 PM
|
#5
|
LQ Newbie
Registered: Mar 2004
Location: Dresden, Germany
Distribution: SuSE 9.1 Pro
Posts: 21
Original Poster
Rep:
|
no, unfortunately it will not help. i have Gaim 0.67 just installed but Y! does not work in this version (yeah, I have set the correct servername), that's why I want to update... but there are no RPMs available :-/
|
|
|
All times are GMT -5. The time now is 06:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|