LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-26-2004, 12:47 PM   #1
thw
LQ Newbie
 
Registered: Mar 2004
Location: Dresden, Germany
Distribution: SuSE 9.1 Pro
Posts: 21

Rep: Reputation: 15
Question 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
 
Old 03-26-2004, 01:28 PM   #2
meldar
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
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
 
Old 03-27-2004, 02:04 PM   #3
thw
LQ Newbie
 
Registered: Mar 2004
Location: Dresden, Germany
Distribution: SuSE 9.1 Pro
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 03-27-2004, 03:40 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
You can install Gaim 0.67-47 in the add and remove programs in yast if that will help,david
 
Old 03-27-2004, 04:43 PM   #5
thw
LQ Newbie
 
Registered: Mar 2004
Location: Dresden, Germany
Distribution: SuSE 9.1 Pro
Posts: 21

Original Poster
Rep: Reputation: 15
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 :-/
 
  


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
special keys, touchpad, shuttingdown gfx and a little bit more things xmav78 SUSE / openSUSE 5 06-16-2005 05:55 PM
Special case of routing mudule needed! woosting Linux - Networking 5 06-03-2005 07:43 AM
a special imaging program chutsu Linux - Software 2 01-16-2005 06:14 PM
dns for .name domains - anything special needed? flumpydog Linux - Networking 0 03-17-2004 12:26 PM
A very special program bkeating General 3 11-13-2003 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 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