Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: compiling SDDS, libpng.a
From: Patrick Thomas <thomas_p@ligo-wa.caltech.edu>
To: tech-talk@aps.anl.gov
Date: Fri, 14 May 2010 22:05:08 -0700
Hi,

While attempting to compile SDDS 2.8 (not the SDDSepics) with epics base 3-14-11 on 64 bit Centos Linux, I encounter the following error:

/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -D_X86_64_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -I../../../include -I/usr/include/X11 -DzLib -m64 -g -I. -I../O.Common -I. -I.. -I../../../../../include/os/Linux -I../../../../../include -I/src/cds/project/epics/base-3-14-11/include/os/Linux -I/src/cds/project/epics/base-3-14-11/include -I/src/cds/project/epics/extensions/include ../sddsplotGroup.c make[4]: *** No rule to make target `../../../../../lib/linux-x86_64/libpng.a', needed by `sddsplot'. Stop.
make[4]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64'
make[3]: *** [install.linux-x86_64] Error 2
make[3]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots'
make[2]: *** [SDDSaps/sddsplots.install] Error 2
make[2]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS'
make[1]: *** [SDDS.install] Error 2
make[1]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src'
make: *** [src.install] Error 2


Looking in the /extensions/lib/linux-x86_64 directory, libpng.a does not yet exist. Going into extensions/src/SDDS/png/ and running make creates libpng.a and puts it into extensions/lib/linux-x86_64. Running make on SDDS than gives the following error (sorry for the long print out, I'm not sure what isn't relevant):

make -C SDDSaps/sddsplots install make[2]: Entering directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots'
make -C O.linux-x86_64 -f ../Makefile TOP=../../../../.. T_A=linux-x86_64 install
make[3]: Entering directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64'
/usr/bin/g++ -o sddsplot -L/usr/lib -L/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64 -L/usr/lib -Wl,-rpath,/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64 -Wl,-rpath,/usr/lib -m64 SDDSaps.o put_link_date.o sddsplot.o sddsplotAP.o sddsplotConvert.o sddsplotFilter.o sddsplotLabels.o sddsplotMapping.o sddsplotRead.o sddsplotRecord.o sddsplotXfer.o sddsplotGroup.o -lgd -lpng -lmdbplt -lmdbcommon -lmatlib -lfftpack -lSDDS1 -lrpnlib -lmdbmth -lmdblib -lXaw -lXmu -lXt -lXext -lX11 -lfontconfig -lz -lncurses -lrt -lpthread -lreadline -lncurses -lm -lrt -ldl -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/libreadline.a when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/libreadline.a when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_color':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:481: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_fill_box':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:435: undefined reference to `gdImageLine'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:440: undefined reference to `gdImageLine'
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_vector':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:353: undefined reference to `gdImageCreateTrueColor'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:354: undefined reference to `gdImagePaletteCopy'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:356: undefined reference to `gdImageFilledRectangle'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:388: undefined reference to `gdImageSetBrush'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:389: undefined reference to `gdImageLine'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:392: undefined reference to `gdImageDestroy'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:382: undefined reference to `gdImageSetThickness'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:383: undefined reference to `gdImageSetStyle'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:384: undefined reference to `gdImageLine'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:385: undefined reference to `gdImageSetThickness'
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_dot':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:305: undefined reference to `gdImageSetPixel'
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_text':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:247: undefined reference to `gdImagePng'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:257: undefined reference to `gdImageDestroy'
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_graphics':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:206: undefined reference to `gdImageCreateTrueColor'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:208: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:209: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:215: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:216: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:217: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o):/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:218: more undefined references to `gdImageColorAllocate' follow
/hanford2/users/thomas/svn/epics/extensions/lib/linux-x86_64/libmdbplt.a(term.o): In function `PNG_graphics':
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:238: undefined reference to `gdImageFilledRectangle'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:211: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:212: undefined reference to `gdImageColorAllocate'
/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64/../png.trm:234: undefined reference to `gdImageColorAllocate'
collect2: ld returned 1 exit status
make[3]: *** [sddsplot] Error 1
make[3]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots/O.linux-x86_64'
make[2]: *** [install.linux-x86_64] Error 2
make[2]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS/SDDSaps/sddsplots'
make[1]: *** [SDDSaps/sddsplots.install] Error 2
make[1]: Leaving directory `/hanford2/users/thomas/svn/epics/extensions/src/SDDS'
make: *** [SDDS.install] Error 2


At this point I'm not sure how to proceed. Any help would be much appreciated.

Thank you for your time,
Patrick

Replies:
Re: compiling SDDS, libpng.a Robert Soliday
Re: compiling SDDS, libpng.a emmanuel_mayssat

Navigate by Date:
Prev: RE: cygwin 1.7 compatibility Ru Igarashi
Next: ABB SattCon200 Dr. Peter Zumbruch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: RE: cygwin 1.7 compatibility Ru Igarashi
Next: Re: compiling SDDS, libpng.a Robert Soliday
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·