Opened 9 years ago

Last modified 9 years ago

#235 assigned defect

build fails on OSX 10.9.5

Reported by: Stacy Mader Owned by: MatthewWhiting
Priority: normal Milestone:
Component: Building/Installation Version: 1.6.1
Severity: normal Keywords:
Cc:

Description (last modified by MatthewWhiting)

./configure --prefix=/usr/local/ --with-wcslib=/usr/local/include --with-pgplot=/usr/local/lib
checking build system type... x86_64-apple-darwin13.4.0
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking whether ln -s works... yes
checking for install... install
checking for log in -lm... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking iostream usability... no
checking iostream presence... no
checking for iostream... no
checking fstream usability... no
checking fstream presence... no
checking for fstream... no
checking sstream usability... no
checking sstream presence... no
checking for sstream... no
checking iomanip usability... no
checking iomanip presence... no
checking for iomanip... no
checking vector usability... no
checking vector presence... no
checking for vector... no
checking string usability... no
checking string presence... no
checking for string... no
checking algorithm usability... no
checking algorithm presence... no
checking for algorithm... no
checking functional usability... no
checking functional presence... no
checking for functional... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ranlib... ranlib
configure:  Using darwin build option
checking for working strtod... yes
checking for floor... yes
checking for pow... yes
checking for sqrt... yes
checking for strtol... yes
checking for log... yes
checking for atan... yes
checking for fabs... yes
configure: LIBDIRS
checking for /usr/lib... yes
checking for /usr/local/lib... yes
checking for /usr/local/pgplot... no
checking for /usr/local/cfitsio... yes
checking for /usr/local/wcslib... yes
checking for /local/lib... no
checking for /local/pgplot... no
checking for /local/cfitsio... no
checking for /opt/SUNWspro/lib... no
checking for /opt/local/lib... no
configure:   -- PGPLOT -- 
configure: Using directory "/usr/local/lib"
checking for /usr/local/lib/cpgplot.h... no
checking for /usr/local/lib/pgplot/cpgplot.h... no
checking for /usr/local/lib/include/cpgplot.h... no
checking for cosd in -lsunmath... no
checking for iand_ in -lM77... no
checking for f77_init in -lF77... no
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: X-library search yielded X_CFLAGS= -I/usr/X11/include, X_LIBS= -L/usr/X11/lib, X_EXTRA_LIBS=, X_PRE_LIBS= -lSM -lICE
checking for deflate in -lz... yes
checking for png_error in -lpng... yes
checking for pgopen in -lpgplot... yes
checking for gerror_ in -lg2c... no
checking for main in -lstdc++... yes
checking for main in -lc++... yes
checking for _gfortran_getenv in -lgfortran... no
checking for cpgopen in -lcpgplot... yes
configure: PGPLOT appears to be available.
checking for /usr/local/lib/libcpgplot.a... yes
configure:   -- CFITSIO -- 
checking for /usr/include/fitsio.h... no
checking for /usr/include/cfitsio/fitsio.h... no
checking for /usr/local/include/fitsio.h... yes
checking for recv in -lsocket... no
checking for ffopen in -lcfitsio... yes
configure: CFITSIO appears to be available.
checking for /usr/lib/libcfitsio.a... no
checking for /usr/lib/cfitsio/libcfitsio.a... no
checking for /usr/local/lib/libcfitsio.a... yes
configure:   -- WCSLIB -- 
configure: Using directory "/usr/local/include"
checking for /usr/local/include... yes
checking for /usr/local/include/lib... no
checking for /usr/local/include/wcslib... yes
checking for /usr/local/include/wcslib/wcs.h... yes
checking for wcss2p in -lwcs... yes
checking for cpgsbox in -lpgsbox... no
configure: WCSLIB appears to be available.
checking for /usr/local/include/libwcs.a... no
checking for /usr/local/include/wcs/libwcs.a... no
checking for /usr/local/include/wcslib/libwcs.a... no
checking for /usr/local/include/lib/libwcs.a... no
checking for /usr/local/include/lib/wcs/libwcs.a... no
checking for /usr/local/include/lib/wcslib/libwcs.a... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
joanne:duchamp mad134$ make
g++ -o Duchamp-1.6.1 ./src/mainDuchamp.o ./src/duchamp.o ./src/param.o ./src/fitsHeader.o ./src/PixelMap/Line.o ./src/PixelMap/Voxel.o ./src/PixelMap/Scan.o ./src/PixelMap/Object2D.o ./src/PixelMap/Object3D.o ./src/ATrous/filter.o ./src/ATrous/B3SplineFilter.o ./src/ATrous/TriangleFilter.o ./src/ATrous/HaarFilter.o ./src/ATrous/FilterFactory.o ./src/ATrous/atrous_1d_reconstruct.o ./src/ATrous/atrous_2d_reconstruct.o ./src/ATrous/atrous_3d_reconstruct.o ./src/ATrous/baselineSubtract.o ./src/ATrous/ReconSearch.o ./src/Detection/detection.o ./src/Detection/ObjectGrower.o ./src/Detection/areClose.o ./src/Detection/lutz_detect.o ./src/Detection/mergeIntoList.o ./src/Detection/outputDetection.o ./src/Detection/sorting.o ./src/Detection/spectrumDetect.o ./src/Cubes/cubes.o ./src/Cubes/cubes_extended.o ./src/Cubes/baseline.o ./src/Cubes/CubicSearch.o ./src/Cubes/detectionIO.o ./src/Cubes/existingDetections.o ./src/Cubes/getImage.o ./src/Cubes/invertCube.o ./src/Cubes/Merger.o ./src/Cubes/momentMap.o ./src/Cubes/smoothCube.o ./src/Cubes/spectraUtils.o ./src/Cubes/trimImage.o ./src/FitsIO/Beam.o ./src/FitsIO/DuchampBeam.o ./src/FitsIO/ReadExisting.o ./src/FitsIO/ReadExistingRecon.o ./src/FitsIO/ReadExistingSmooth.o ./src/FitsIO/WriteArray.o ./src/FitsIO/WriteBaselineArray.o ./src/FitsIO/WriteMaskArray.o ./src/FitsIO/WriteMomentMapArray.o ./src/FitsIO/WriteMomentMaskArray.o ./src/FitsIO/WriteReconArray.o ./src/FitsIO/WriteSmoothArray.o ./src/FitsIO/dataIO.o ./src/FitsIO/headerIO.o ./src/FitsIO/subsection.o ./src/FitsIO/wcsIO.o ./src/Utils/Section.o ./src/Utils/Statistics.o ./src/Utils/feedback.o ./src/Utils/GaussSmooth1D.o ./src/Utils/Hanning.o ./src/Utils/VOField.o ./src/Utils/VOParam.o ./src/Utils/getStats.o ./src/Utils/getNormalStats.o ./src/Utils/getRobustStats.o ./src/Utils/linear_regression.o ./src/Utils/medianBaseline.o ./src/Utils/position_related.o ./src/Utils/sort.o ./src/Utils/string_related.o ./src/Utils/wcsFunctions.o ./src/Utils/zscale.o ./src/Outputs/columns.o ./src/Outputs/CatalogueSpecification.o ./src/Outputs/CatalogueWriter.o ./src/Outputs/FileCatalogueWriter.o ./src/Outputs/ASCIICatalogueWriter.o ./src/Outputs/VOTableCatalogueWriter.o ./src/Outputs/AnnotationWriter.o ./src/Outputs/KarmaAnnotationWriter.o ./src/Outputs/DS9AnnotationWriter.o ./src/Outputs/CasaAnnotationWriter.o ./src/Cubes/drawBlankEdges.o ./src/Cubes/drawMomentCutout.o ./src/Cubes/outputSpectra.o ./src/Cubes/plotting.o ./src/Detection/drawBorders.o ./src/Plotting/DuchampPlot.o ./src/Plotting/MultipleDuchampPlot.o ./src/Plotting/ImagePlot.o ./src/Plotting/SpectralPlot.o ./src/Plotting/SimpleSpectralPlot.o ./src/Plotting/CutoutPlot.o ./src/Utils/mycpgplot.o ./src/Utils/PlottingUtilities.o ./src/Utils/pgplot_related.o -lwcs -L/usr/local/lib  -lcfitsio -L/usr/local/lib -lcpgplot -lpgplot  -L/usr/X11/lib  -lSM -lICE -lX11  -lz -lpng -lc++ -lstdc++ -lm  
Undefined symbols for architecture x86_64:
  "_cpgsbox", referenced from:
      wcsAxes(wcsprm*, unsigned long*, int, int) in PlottingUtilities.o
  "_pgwcsl_", referenced from:
      wcsAxes(wcsprm*, unsigned long*, int, int) in PlottingUtilities.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [duchamp] Error 1

Change History (3)

comment:1 Changed 9 years ago by StacyMader

I have built using the following:

./configure --prefix=/usr/local/Duchamp-1.6.1 --with-cfitsio=/usr/local/cfitsio --with-wcslib=/usr/local/wcslib --with-pgplot=/usr/local/pgplot LIBS="-L/usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.3.0/4.9.1 -lgfortran"

comment:2 Changed 9 years ago by MatthewWhiting

Description: modified (diff)
Status: newassigned

comment:3 Changed 9 years ago by MatthewWhiting

It looks like the cpgsbox part of WCSLIB is not present:

checking for cpgsbox in -lpgsbox... no

This needs to be installed as well, and is a separate step from the base WCSLIB C code. Did you build it from source? The pgsbox code is in a separate directory that may need to be built and/or installed with a separate step.

Note: See TracTickets for help on using tickets.