From: Alan W. I. <ir...@be...> - 2002-07-24 14:36:54
|
I don't have the problem here. I am confused by your result since libplplot has no references (I believe, although perhaps I am missing something here?) to libgd when dynamic drivers are enabled. Instead, the gd driver (which itself is linked to libgd et al) is dlopened at run time. Did you forget to configure --enable-dyndrivers? The current CVS won't work without it although I intend to address that issue once any problems with the --enable-dyndrivers case are sorted out. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Tue, 23 Jul 2002, Maurice LeBrun wrote: > At least one problem so far. If enable_png or enable_jpeg are set, nothing > links because the -lgd flag is nowhere to be found. Here's my output: > > cd shared; \ > gcc -shared -fPIC -o ../libplplot.so.5.1.0 \ > -Wl,-soname -Wl,libplplot.so.5 \ > pdfutils.o plargs.o plbox.o plbuf.o plcont.o plcore.o plctrl.o plcvt.o pldtik.o plfill.o plhist.o plline.o plmap.o plot3d.o plpage.o plsdef.o plshade.o plsym.o pltick.o plvpor.o plwind.o plstripc.o plimage.o plmeta.o null.o gd.o ps.o tk.o pbm.o pstex.o -L.. -ltclmatrix -lpltcl > ln -sf libplplot.so.5.1.0 libplplot.so.5 > ln -sf libplplot.so.5 libplplot.so > > gcc -g plrender.o -L. -lplplot -o plrender \ > -Wl,-rpath -Wl,/home/mjl/dev/plplot/latest/tmp > ./libplplot.so: undefined reference to `gdImageColorAllocate' > ./libplplot.so: undefined reference to `gdImageColorDeallocate' > ./libplplot.so: undefined reference to `gdImageDestroy' > ./libplplot.so: undefined reference to `gdImageLine' > ./libplplot.so: undefined reference to `gdImagePng' > ./libplplot.so: undefined reference to `gdImageJpeg' > ./libplplot.so: undefined reference to `gdImageCreate' > ./libplplot.so: undefined reference to `gdImageFilledPolygon' > collect2: ld returned 1 exit status > make: *** [plrender] Error 1 > > and ditto for x01c, etc. I suppose it's an easy fix but I don't see it. > Since you did the change maybe you'll find it quicker than I.. > > Will let you know if any other problems arise. > > -- > Maurice LeBrun mj...@ga... > Research Organization for Information Science and Technology of Japan (RIST) > |