[parsec-users] Error while compiling VIPS package

Christian Bienia cbienia at CS.Princeton.EDU
Sun Mar 23 14:25:06 EDT 2008

Hello Chetan,

Those are glib functions. We have included a version of glib in the PARSEC 
distribution, but it seems the linker is unable to find it.

Please check the following:

1. The glib library has been compiled successfully. The compilation might have 
failed without you noticing. There should be several libraries for your 
architecture in ${PARSECDIR}/pkgs/libs/glib/inst/${PARSECPLAT}/lib. On my 
computer the directory contains the following entries:

glib-2.0                libgmodule-2.0.la       libgthread-2.0.la
libglib-2.0.a           libgobject-2.0.a        pkgconfig
libglib-2.0.la          libgobject-2.0.la
libgmodule-2.0.a        libgthread-2.0.a

2. Make sure the paths are correct when you link vips. I don't see how this 
could go wrong but who knows?

If you can't find the error and your system has a preinstalled version of glib 
you can also try using that one. Simply go edit the build configuration file 
of vips and remove any references to the PARSEC version of glib. The file you 
have to edit for gcc is ${PARSECDIR}/pkgs/apps/vips/parsec/gcc.bldconf. 
Simply edit the variable 'build_env' and remove the two references to glib.

If that still doesn't get you anywhere it is possible that there is an issue 
not related to the way PARSEC is packaged. Try to compile vips without the 
PARSEC framework: cd to the source directory and to the usual ./configure; 
make; make install. If that fails you know that the issue is independent of 
PARSEC. In that case I would recommend to contact the development team of 
vips directly. The project website with all relevant information is 

- Chris

On Sunday 23 March 2008 10:18 am, Chetan Kale wrote:
> Hello,
> We're getting the following error when we try to compile the VIPS package
> in PARSEC using: parsecmgmt -a build -p vips -c gcc
> vips.o(.text+0x2714): In function `main':
> : undefined reference to `g_option_context_new'
> vips.o(.text+0x2729): In function `main':
> : undefined reference to `g_option_context_add_main_entries'
> vips.o(.text+0x2739): In function `main':
> : undefined reference to `g_option_context_add_group'
> vips.o(.text+0x2750): In function `main':
> : undefined reference to `g_option_context_parse'
> vips.o(.text+0x2760): In function `main':
> : undefined reference to `g_option_context_free'
> ../../libsrc/.libs/libvips.a(dispatch_types.o)(.text+0x19d): In function 
`input_ imagevec_init':
> : undefined reference to `g_strv_length'
> ../../libsrc/.libs/libvips.a(dispatch_types.o)(.text+0x7c1): In function 
`input_ doublevec_init':
> : undefined reference to `g_strv_length'
> ../../libsrc/.libs/libvips.a(dispatch_types.o)(.text+0xa74): In function 
`input_ intvec_init':
> : undefined reference to `g_strv_length'
> ../../libsrc/.libs/libvips.a(im_init_world.o)(.text+0x268): In function 
`im_get_ option_group':
> : undefined reference to `g_option_group_new'
> ../../libsrc/.libs/libvips.a(im_init_world.o)(.text+0x27c): In function 
`im_get_ option_group':
> : undefined reference to `g_option_group_add_entries'
> collect2: ld returned 1 exit status
> make[4]: *** [vips] Error 1
> make[4]: Leaving directory
> `/scratch/cs8803sc/chetanparsec/parsec-1.0/pkgs/apps/
> vips/obj/x86_64-linux-linux.gcc/src/iofuncs' make[3]: *** [all-recursive]
> Error 1
> make[3]: Leaving directory
> `/scratch/cs8803sc/chetanparsec/parsec-1.0/pkgs/apps/
> vips/obj/x86_64-linux-linux.gcc/src/iofuncs' make[2]: *** [all-recursive]
> Error 1
> make[2]: Leaving directory
> `/scratch/cs8803sc/chetanparsec/parsec-1.0/pkgs/apps/
> vips/obj/x86_64-linux-linux.gcc/src' make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/scratch/cs8803sc/chetanparsec/parsec-1.0/pkgs/apps/
> vips/obj/x86_64-linux-linux.gcc' make: *** [all] Error 2
> [PARSEC] Error: 'env CXXFLAGS=-O3 -funroll-loops -fprefetch-loop-arrays
> -fpermis sive -fno-exceptions -DPARSEC_VERSION=1.0 -fexceptions
> LDFLAGS=-L/usr/lib64 -L/u sr/lib
> -L/scratch/cs8803sc/chetanparsec/parsec-1.0/bin/../pkgs/libs/glib/inst/x8
> 6_64-linux-linux.gcc/lib
> PKG_CONFIG_PATH=:/scratch/cs8803sc/chetanparsec/parsec-
> 1.0/bin/../pkgs/libs/glib/inst/x86_64-linux-linux.gcc/lib/pkgconfig:/scratc
> 803sc/chetanparsec/parsec-1.0/bin/../pkgs/libs/libxml2/inst/x86_64-linux-li
>nux.g cc/lib/pkgconfig make' failed.
> What could the problem be?
> Facesim compiles without errors.
> Chetan Kale
> ---------------------------------
> Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

More information about the parsec-users mailing list