[parsec-users] vips and fluidanimate on Solaris/SPARC

Major B mbb45 at cornell.edu
Thu Jul 3 03:17:32 EDT 2008


OK, I finally got vips working with parsec.

originally this would fail:

/home/user/gcc/bin/gcc -std=gnu99 -O3 -funroll-loops 
-fprefetch-loop-arrays -DPARSEC_VERSION=1.0 -o vips vips.o -D_REENTRANT 
-D_PTHREADS 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/glib-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/glib-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/include/libxml2 
-I/usr/include/libpng12  -L/usr/lib64 -L/usr/lib 
-L/mnt/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
../../libsrc/.libs/libvips.a 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
-L/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/lib 
-lpng12 -lgthread-2.0 -lpthread -lthread -lrt -lgmodule-2.0 -lxml2 
-lgobject-2.0 -lglib-2.0 -lm

since its picking up other lib paths before the parsec glib one, so I 
moved the 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
path before the others and it works.
i.e. this:

/home/user/gcc/bin/gcc -std=gnu99 -O3 -funroll-loops 
-fprefetch-loop-arrays -DPARSEC_VERSION=1.0 -o vips vips.o -D_REENTRANT 
-D_PTHREADS 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/glib-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/include/glib-2.0 
-I/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib/glib-2.0/include 
-I/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/include/libxml2 
-I/usr/include/libpng12 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib  
-L/usr/lib64 -L/usr/lib 
-L/mnt/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
../../libsrc/.libs/libvips.a 
-L/home/user/parsec-1.0/bin/../pkgs/libs/glib/inst/sparc-solaris.gcc/lib 
-L/home/user/parsec-1.0/bin/../pkgs/libs/libxml2/inst/sparc-solaris.gcc/lib 
-lpng12 -lgthread-2.0 -lpthread -lthread -lrt -lgmodule-2.0 -lxml2 
-lgobject-2.0 -lglib-2.0 -lm


to get it to occur automatically via the parsec script, I added 
following to the build_env variable in  gcc.bldconfig in vips directory 
(file ../pkgs/apps/vips/parsec/gcc.bldconf), and removed it from the 
main /config/gcc.bldconfig file in the parsec root directory:
-L${CC_HOME}/lib64 -L${CC_HOME}/lib

Vips than compiled cleanly and worked with sample inputs.

Perhaps parsec maintainers can change the script so that system libs get 
added to the path after the parsec paths, so parsec paths show up 
sooner, and older system libs don't get picked up instead.


jcupitt at gmail.com wrote:
> 2008/7/2 Major <mbb45 at cornell.edu>:
>   
>> I forgot to export the variable after setting it, doing that gave me the
>> proper ouput via the pkg-config command.
>>     
>
> Great!
>
>   
>> However, after doing that, and getting the output you've described below, I
>> still get the same error with the parsec output:
>>     
>
> The undefeined symbols are the things that were added in glib 2.6, so
> it sounds like you are still seeing the system glib ahead of the
> parsec glib.
>
> If these errors are happening at link-time, you need to see where the
> parsec build system is injecting the output of pkg-config --libs, and
> check that the values are correct. If it's at run-time, look for a
> missing --rpath, or missing lib areas from LD_LIBRARY_PATH.
>
>   
>> When I tried compiling vips standalone, it has issues during the make
>> process:
>>     
>
> It sounds like (perhaps) your ImageMagick install is old or messed up.
> Try configuring vips standalone with
>
>   ./configure --without-magick ... etc.
>
> and see if that fixes it.
>
> John
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
>   



More information about the parsec-users mailing list