pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gnuplot compilation problem on 2011Q2
Just a quick note to describe a problem I encountered and worked around...
While compiling gnuplot, it failed with these errors:
cc -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include
-I/usr/X11R7/include/freetype2 -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib
-L/usr/X11R7/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib
-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -pthread
-L/usr/X11R7/lib -o gnuplot_x11 gplt_x11.o gpexecute.o getcolor_x11.o
-L/usr/X11R7/lib -R/usr/X11R7/lib -lX11 -lm -Wl,-R/usr/pkg/lib -pthread
-Wl,-R/usr/X11R7/lib -L/usr/pkg/lib -L/usr/X11R7/lib -lpangocairo-1.0 -lcairo
-lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lz -lfontconfig -lgobject-2.0
-lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
/disks/plain/nobackup/NetBSD-5.0.1/pkgsrc-stuff/all-versions/pkgsrc-stable/graphics/gnuplot/work/.buildlink/lib/libcairo.so:
undefined reference to `pixman_image_set_destroy_function'
/disks/plain/nobackup/NetBSD-5.0.1/pkgsrc-stuff/all-versions/pkgsrc-stable/graphics/gnuplot/work/.buildlink/lib/libcairo.so:
undefined reference to `pixman_image_composite32'
/disks/plain/nobackup/NetBSD-5.0.1/pkgsrc-stuff/all-versions/pkgsrc-stable/graphics/gnuplot/work/.buildlink/lib/libcairo.so:
undefined reference to `pixman_image_fill_boxes'
*** Error code 1
Stop.
make: stopped in
/disks/plain/nobackup/NetBSD-5.0.1/pkgsrc-stuff/all-versions/pkgsrc-stable/graphics/gnuplot/work/gnuplot-4.4.3/src
I figured out that "-lpixman-1" was missing from the "cc" command
above, so I issued this to compile that one file:
( cd /usr/pkgsrc/graphics/gnuplot/work/gnuplot-4.4.3/src && cc -O2
-I/usr/pkg/include -I/usr/include -I/usr/X11R7/include
-I/usr/X11R7/include/freetype2 -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib
-L/usr/X11R7/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib
-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -pthread
-L/usr/X11R7/lib -o gnuplot_x11 gplt_x11.o gpexecute.o getcolor_x11.o
-L/usr/X11R7/lib -R/usr/X11R7/lib -lX11 -lm -Wl,-R/usr/pkg/lib -pthread
-Wl,-R/usr/X11R7/lib -L/usr/pkg/lib -L/usr/X11R7/lib -lpixman-1
-lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lz
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl )
... and was then able to re-issue my usual installation command successfully:
cd /usr/pkgsrc/graphics/gnuplot && make install && make clean
I have no idea why "-lpixman-1" is missing. My installation is
quite "vanilla": I had issued "pkg_delete" until everything (2010Q4)
was gone, and am now installing everything from scratch.
I'm also puzzled because the DESCR file for pixman says it's "for
modular X.org", but I'm using the X that came with the system
(tracking branch "netbsd-5").
In any case, the "gnuplot" program that was installed as a result
of the above intevention seems to work correctly, so this is not
an urgent problem from my point of view, but I think something
needs to be tweaked in the gnuplot Makefile.
Anne.
--
Ms. Anne Bennett, as a private citizen: anne%porcupine.montreal.qc.ca@localhost
Also reachable more officially at work: anne%encs.concordia.ca@localhost
Home |
Main Index |
Thread Index |
Old Index