Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to compile galculator-2.0.1 but when I run make I get some errors like

galculator-general_functions.o: In function `set_button_color':
/home/user/Downloads/galculator-2.0.1/src/general_functions.c:268: undefined reference to `GTK_COLOR_CHOOSER'

I'm using Lubuntu 11.10. I read something about update to gtk3 but I don't want to install many thins or update almost the whole LXDE.

What should I install to solve the problem?

share|improve this question
Where did you get the source code? – warl0ck Dec 17 '12 at 13:41
From here sourceforge.net/projects/galculator The green button. – Sigur Dec 17 '12 at 14:42
Why compile it from source? Why not use the one provided by ubuntu? – warl0ck Dec 17 '12 at 14:45
You probably need one or more .....-dev packages, but since you didn't include much of the error messages, I cannot tell which. Just search the internet for missing funtion names and related ...-dev packages that will provide you with the related header files. – jippie Dec 17 '12 at 20:56
@Sigur Have you checked how GTK_COLOR_CHOOSER is declared/defined in the header files? – Karlson Dec 19 '12 at 16:00

The simplest solution with Debian-based distributions (like lubuntu) is the use of build-dep action of apt-get.

Run sudo apt-get build-dep galculator and try to compile again. It should compile as intended. Make sure you have your deb-src repositories activated in your sources.list file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.