Tests fail with syntax error on Solaris 9

David Hollenberg dhollen at ISI.EDU
Fri Aug 19 09:48:12 PDT 2005

> | Using pkg-config-0.19.
> | 
> | The glib-1.2.8 tests all passed but the tests in the "check" subdirectory
> | all fail.
> | 
> | SunOS marten.isi.edu 5.9 Generic_118558-10 sun4u sparc SUNW,Sun-Blade-1000
> | Using gcc (GCC) 3.3.2.
> I suspect this is because /bin/sh on Solaris isn't POSIX, can you try
> the tests with /usr/xpg4/bin/sh instead of /bin/sh and see if the
> tests work correctly then?

I manually modified one of the tests (check/check-libs).
I changed the first line from

	#! /bin/sh


	#! /usr/xpg4/bin/sh

Then I ran it manually (after replacing ${srcdir} with ".").
No syntax error.  So your guess seems to be correct.

So it seems that the problem is that these tests assume the
shell to be used is "/bin/sh" rather than allowing it to be
configured in some way.


More information about the pkg-config mailing list