[gobolinux-users] Re: Can you Compile Pkgconfig ?

MJ Ray mjr at phonecoop.coop
Sat Jun 18 01:45:30 GMT 2005


Hisham Muhammad <hisham.hm at gmail.com> wrote:
> Strange, works for me. I just got the recipe for 0.15.0, updated the
> URL and Compile'd. What error are you getting?

The ending was:

gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c gmain.c  -fPIC -DPIC -o .libs/gmain.lo
gmain.c:191: error: `poll' undeclared here (not in a function)
gmain.c: In function `g_get_current_time':
gmain.c:597: warning: implicit declaration of function `gettimeofday'
gmain.c: In function `g_main_poll':
gmain.c:980: warning: implicit declaration of function `pipe'
gmain.c:1079: warning: implicit declaration of function `read'
gmain.c: In function `g_main_wakeup':
gmain.c:1226: warning: implicit declaration of function `write'
make[4]: *** [gmain.lo] Error 1
make[4]: Leaving directory `/Depot/Compile/Sources/pkgconfig-0.15.0/glib-1.2.8'
[...]

Encouraged by your success report, I dug around a bit. It seems that
Pkgconfig thought /lib/cpp was a good idea, despite it not existing!
I set CPP=/bin/cpp and reran the Compile and it worked. Then I tried
to sort out the path problem and the recipe is now:

url="http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.ta>is_compileprogram=yes
configure_options=("--libdir=/System/Links/Libraries")
environment=("CPP=/bin/cpp")

This avoids any PKG_CONFIG_PATH fun and games. Hope it works for you.


-- 
MJ Ray (slef), K. Lynn, England, email see http://mjr.towers.org.uk/


More information about the gobolinux-users mailing list