Hi Stuart,
> What package are you trying to build?
Quite a few actually by calling $ ./ltib, but it is failing at glib, in pkg-config.
>The pkg-config in LTIB is setup to work with cross compile. It's a
>"special" patched version in /opt/ltib/usr/bin/pkg-config that is able
>to use a relative path to figure out include/libs.
ok so I reverted to the version in LTIB, which is 0.21. I can see a glib copy with it, version 1.2.8.
> Am I right in thinking the problem you have is you're trying to build a
> package and are getting this error:
Yes, and here is a longer part of the message :
(...)
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: /bin/bash './configure' failed for glib-1.2.8
error: Bad exit status from /home/fbouchard/ltib/ltib-modelo-20100709/tmp/rpm-tmp.88102 (%build)
RPM build errors:
Bad exit status from /home/fbouchard/ltib/ltib-modelo-20100709/tmp/rpm-tmp.88102 (%build)
Build time for pkgconfig: 16 seconds
Failed building pkgconfig
---------------------------------------------------
> If so, then I don't think pkg-config (being called from configure) is
> the problem. As I tried to say before you need to fix the configure
> script in the package you are adding so that it does not have to run the
> cross compiled test.
Yes. There is some FIXME labels in it, and there is the variable 'cross_compiling' in there that I have assigned to 'no'. That made it work, the error is gone. Now there is a different one in the same module, but it is progressing:)
checking size of char... configure: error: cannot compute sizeof (char), 77
See `config.log' for more details.
configure: error: /bin/bash './configure' failed for glib-1.2.8
-------------------------------------------
Got to continue fixing the configure script I guess. Thanks.