Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -lnetpbm
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -lnetpbm" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -lnetpbm'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-ZPce9R.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
mv os-features-config.h.tmp os-features-config.h
Config results:
------------------------------
cat os-features-config.h
#define NEED_CANONICALIZE_FILE_NAME 1
#define NEED_DECLARE_QSORT_R 1
#define NEED_QSORT_R 0
#define NEED_SWAP_QSORT_R 0
#define HAVE_NETPBM 0
------------------------------
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib/libnetpbm.a
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib/libnetpbm.a" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: path '/opt/local/lib/libnetpbm.a' following -L not a directory
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-UVO3wf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
mv os-features-config.h.tmp os-features-config.h
Config results:
------------------------------
cat os-features-config.h
#define NEED_CANONICALIZE_FILE_NAME 1
#define NEED_DECLARE_QSORT_R 1
#define NEED_QSORT_R 0
#define NEED_SWAP_QSORT_R 0
#define HAVE_NETPBM 0
------------------------------
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -libnetpbm.a
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -libnetpbm.a" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -libnetpbm.a'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-BAhNDj.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -lnetpbm
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -lnetpbm" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -lnetpbm'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-ZPce9R.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
ls -d $PWD/*pbm*/opt/local/lib/libnetpbm.11.61.dylib /opt/local/lib/libnetpbm.dylib/opt/local/lib/libnetpbm.11.dylib /opt/local/lib/libpbm.dylib/opt/local/lib/libnetpbm.aon the website: http://oldforum.astrometry.net/index.php?p=/discussion/10/problem-with-netpbm-on-mac-osx/#Item_10you suggested: NETPBM_LIB="/lib/libnetpbm.a"so I actually also tried:>>NETPBM_LIB="-L/opt/local/lib/libnetpbm.a"then make returned:
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib/libnetpbm.a
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib/libnetpbm.a" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: path '/opt/local/lib/libnetpbm.a' following -L not a directory
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-UVO3wf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
mv os-features-config.h.tmp os-features-config.h
Config results:
------------------------------
cat os-features-config.h
#define NEED_CANONICALIZE_FILE_NAME 1
#define NEED_DECLARE_QSORT_R 1
#define NEED_QSORT_R 0
#define NEED_SWAP_QSORT_R 0
#define HAVE_NETPBM 0
------------------------------
I guess that doesn't work because NETPBM_LIB="-L .... specifies a directory in which libnetpbm lives? (Sorry, I don't have a very strong background in this!)I also tried (just in case... though it probably doesn't make sense... )>>NETPBM_LIB="-L/opt/local/lib -libnetpbm.a"then make returned:
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -libnetpbm.a
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -libnetpbm.a" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -libnetpbm.a'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-BAhNDj.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
-libnetpbm.a I guess is not an option!>>NETPBM_LIB="-L/opt/local/lib -lnetpbm"then make returned:
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -lnetpbm
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -lnetpbm" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -lnetpbm'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-ZPce9R.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
What does -lnetpbm actually do?
ls -d $PWD/*pbm*/opt/local/lib/libnetpbm.11.61.dylib /opt/local/lib/libnetpbm.dylib/opt/local/lib/libnetpbm.11.dylib /opt/local/lib/libpbm.dylib/opt/local/lib/libnetpbm.aon the website: http://oldforum.astrometry.net/index.php?p=/discussion/10/problem-with-netpbm-on-mac-osx/#Item_10you suggested: NETPBM_LIB="/lib/libnetpbm.a"so I actually also tried:>>NETPBM_LIB="-L/opt/local/lib/libnetpbm.a"then make returned:
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib/libnetpbm.a
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib/libnetpbm.a" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: path '/opt/local/lib/libnetpbm.a' following -L not a directory
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-UVO3wf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
mv os-features-config.h.tmp os-features-config.h
Config results:
------------------------------
cat os-features-config.h
#define NEED_CANONICALIZE_FILE_NAME 1
#define NEED_DECLARE_QSORT_R 1
#define NEED_QSORT_R 0
#define NEED_SWAP_QSORT_R 0
#define HAVE_NETPBM 0
------------------------------
I guess that doesn't work because NETPBM_LIB="-L .... specifies a directory in which libnetpbm lives? (Sorry, I don't have a very strong background in this!)I also tried (just in case... though it probably doesn't make sense... )>>NETPBM_LIB="-L/opt/local/lib -libnetpbm.a"then make returned:
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -libnetpbm.a
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -libnetpbm.a" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -libnetpbm.a'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-BAhNDj.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
-libnetpbm.a I guess is not an option!>>NETPBM_LIB="-L/opt/local/lib -lnetpbm"then make returned:
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is -L/opt/local/lib -lnetpbm
((cc -o os-features-test-netpbm \
-I/opt/local/include -I/opt/local/include -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I./util -I/usr/local/netpbm/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM "-I/opt/local/include/netpbm" os-features-test.c -L/opt/local/lib -L/opt/local/lib -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline "-L/opt/local/lib -lnetpbm" >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
ld: warning: directory not found for option '-L/opt/local/lib -lnetpbm'
Undefined symbols for architecture x86_64:
"_pm_init", referenced from:
_main in os-features-test-ZPce9R.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------- End of expected error messages -----------------
What does -lnetpbm actually do?
Testing netpbm...
NETPBM_INC is -I/opt/local/include/netpbm
NETPBM_LIB is /opt/local/lib/libnetpbm.a
((cc -o os-features-test-netpbm \
-I/usr/local/scisoft/include/ -I/usr/local/scisoft/include/ -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/scisoft/packages/freetype-2.4.2/include/freetype2 -I/usr/local/scisoft/packages/freetype-2.4.2/include -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/usr/local/scisoft/Packages/libpng-1.2.42/include/libpng12 -I../gsl-an -I../qfits-an/include -I../libkd -I. -DTEST_NETPBM -I/opt/local/include/netpbm os-features-test.c -L/usr/local/scisoft/lib/ -L/usr/local/scisoft/lib/ -g -Wall -ffinite-math-only -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline /opt/local/lib/libnetpbm.a >> os-features.log && \
./os-features-test-netpbm >> os-features.log && \
echo "#define HAVE_NETPBM 1") \
|| echo "#define HAVE_NETPBM 0") >> os-features-config.h.tmp
--------------- End of expected error messages -----------------
mv os-features-config.h.tmp os-features-config.h
Config results:
------------------------------
cat os-features-config.h
#define NEED_CANONICALIZE_FILE_NAME 1
#define NEED_DECLARE_QSORT_R 1
#define NEED_QSORT_R 0
#define NEED_SWAP_QSORT_R 0
#define HAVE_NETPBM 1
Reading input file 1 of 1: "demo/apod2.jpg"...
Base: "demo/apod2", basefile "apod2.jpg", basedir "demo", suffix "jpg"
Checking if file "demo/apod2.jpg" is xylist or image: image
(not xyls because: Failed to open FITS table demo/apod2.jpg: Failed to read primary FITS header from demo/apod2.jpg: error: qfits_get_hdrinfo failed.: error: error adding file "demo/apod2.jpg" to cache: error: file "demo/apod2.jpg" is not FITS (does not start with "SIMPLE ="))
Running: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.SAX87A --fix-sdss --infile demo/apod2.jpg --uncompressed-outfile /tmp/tmp.uncompressed.lN4Ft0 --outfile /tmp/tmp.ppm.ZmEb3W --ppm
ERROR: Image type not recognized: Could not determine file type (does the file exist?): demo/apod2.jpg
augment-xylist.c:586:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.SAX87A --fix-sdss --infile demo/apod2.jpg --uncompressed-outfile /tmp/tmp.uncompressed.lN4Ft0 --outfile /tmp/tmp.ppm.ZmEb3W --ppm
ioutils.c:669:run_command_get_outputs Command failed: return value 255
Reading input file 1 of 1: "83F010612_57_light.fits"...
Base: "./83F010612_57_light", basefile "83F010612_57_light.fits", basedir ".", suffix "fits"
Checking if file "83F010612_57_light.fits" is xylist or image: image
(not xyls because: Missing required columns: : FITS extension 1 in file 83F010612_57_light.fits is not a table (or there was an error opening the file): error: cannot find data start in [83F010612_57_light.fits]:[1])
Running: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.hxY1R8 --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.nU1pDa --outfile /tmp/tmp.ppm.B8j14Q --ppm
ERROR: Image type not recognized: Could not determine file type (does the file exist?): 83F010612_57_light.fits
augment-xylist.c:586:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.hxY1R8 --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.nU1pDa --outfile /tmp/tmp.ppm.B8j14Q --ppm
ioutils.c:669:run_command_get_outputs Command failed: return value 255
Reading input file 1 of 1: "demo/apod2.xyls"...Base: "demo/apod2", basefile "apod2.xyls", basedir "demo", suffix "xyls"Checking if file "demo/apod2.xyls" is xylist or image: xylsRunning: /usr/local/astrometry/bin/fits2fits.py --verbose demo/apod2.xyls /tmp/tmp.sanexyls.cqCLgqFilename: demo/apod2.xylsNo. Name Type Cards Dimensions Format0 PRIMARY PrimaryHDU 19 () uint81 SOURCES BinTableHDU 24 232R x 3C [E, E, E]Traceback (most recent call last):File "/usr/local/astrometry/bin/fits2fits.py", line 119, in <module>sys.exit(main())File "/usr/local/astrometry/bin/fits2fits.py", line 112, in mainverbose=options.verbose)File "/usr/local/astrometry/bin/fits2fits.py", line 44, in fits2fitslogging.info('Header has %i cards' % len(hdr))AttributeError: Header instance has no attribute '__len__'augment-xylist.c:600:run Failed to run command: /usr/local/astrometry/bin/fits2fits.py --verbose demo/apod2.xyls /tmp/tmp.sanexyls.cqCLgqioutils.c:669:run_command_get_outputs Command failed: return value 1
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Reading input file 1 of 1: "demo/apod2.xyls"...
Header has 19 cards
Header has 24 cards
(null): Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
(null): Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
solve-field.c:332:plot_source_overlay Plotting command failed
solve-field.c:138:run_command Command was: "/usr/local/astrometry/bin/plotxy -I /tmp/tmp.ppm.rcEKtx -i demo/apod2.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i demo/apod2.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > demo/apod2-objs.png"
solve-field.c:137:run_command Command exited with exit status 1
Solving...
Reading file "demo/apod2.axy"...
Field 1 did not solve (index index-4210.fits, field objects 1-10).
Field 1 did not solve (index index-4209.fits, field objects 1-10).
Field 1 did not solve (index index-4208.fits, field objects 1-10).
Field 1 did not solve (index index-4210.fits, field objects 11-20).
Field 1 did not solve (index index-4209.fits, field objects 11-20).
Field 1 did not solve (index index-4208.fits, field objects 11-20).
Field 1 did not solve (index index-4210.fits, field objects 21-30).
log-odds ratio 312.484 (5.12738e+135), 143 match, 7 conflict, 62 distractors, 270 index.
RA,Dec = (84.5763,-2.75371), pixel scale 20.255 arcsec/pix.
Hit/miss: Hit/miss: ++++++++++++++++++++++++-++++++++++-++++++--++++++-++++-+++++++++++++++++-+-++++-+++++-++-++++++-+-+
Field 1: solved with index index-4209.fits.
Field 1 solved: writing to file demo/apod2.solved to indicate this.
Field: demo/apod2.xyls
Field center: (RA,Dec) = (84.58, -2.755) deg.
Field center: (RA H:M:S, Dec D:M:S) = (05:38:18.524, -02:45:19.089).
Field size: 4.50137 x 3.3791 degrees
Field rotation angle: up is 90.2125 degrees E of N
Now I go onto run in /astrometrysourcefolder>> solve-field --verbose util/apod2.jpgReading input file 1 of 1: "demo/apod2.jpg"...
>> solve-field --verbose 83F010612_57_light.fitsReading input file 1 of 1: "83F010612_57_light.fits"...
Base: "./83F010612_57_light", basefile "83F010612_57_light.fits", basedir ".", suffix "fits"
Checking if file "83F010612_57_light.fits" is xylist or image: image
(not xyls because: Missing required columns: : FITS extension 1 in file 83F010612_57_light.fits is not a table (or there was an error opening the file): error: cannot find data start in [83F010612_57_light.fits]:[1])
Running: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.hxY1R8 --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.nU1pDa --outfile /tmp/tmp.ppm.B8j14Q --ppm
ERROR: Image type not recognized: Could not determine file type (does the file exist?): 83F010612_57_light.fits
augment-xylist.c:586:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.hxY1R8 --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.nU1pDa --outfile /tmp/tmp.ppm.B8j14Q --ppm
ioutils.c:669:run_command_get_outputs Command failed: return value 255
Reading input file 1 of 1: "demo/apod2.xyls"...
File "/usr/local/astrometry/bin/fits2fits.py", line 119, in <module>
sys.exit(main())File "/usr/local/astrometry/bin/fits2fits.py", line 112, in mainverbose=options.verbose)File "/usr/local/astrometry/bin/fits2fits.py", line 44, in fits2fitslogging.info('Header has %i cards' % len(hdr))AttributeError: Header instance has no attribute '__len__'augment-xylist.c:600:run Failed to run command: /usr/local/astrometry/bin/fits2fits.py --verbose demo/apod2.xyls /tmp/tmp.sanexyls.cqCLgqioutils.c:669:run_command_get_outputs Command failed: return value 1
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Reading input file 1 of 1: "demo/apod2.xyls"...
Header has 19 cards
Header has 24 cards
(null): Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
(null): Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
solve-field.c:332:plot_source_overlay Plotting command failed
solve-field.c:138:run_command Command was: "/usr/local/astrometry/bin/plotxy -I /tmp/tmp.ppm.rcEKtx -i demo/apod2.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i demo/apod2.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > demo/apod2-objs.png"
solve-field.c:137:run_command Command exited with exit status 1
Solving...
Reading file "demo/apod2.axy"...
Field 1 did not solve (index index-4210.fits, field objects 1-10).
demo/apod2.jpg: JPEG image data, JFIF standard 1.02, comment: "Adobe ImageReady"
ERROR: line 5: regexec error 17, (illegal byte sequence)
"file" command failed. Command: "file -b -N -L -k -r demo/apod2.jpg"
ERROR: line 5: regexec error 17, (illegal byte sequence)
Could not determine file type of "demo/apod2.jpg"
"file" command failed. Command: "file -b -N -L -k -r demo/apod2.jpg"
ERROR: line 5: regexec error 17, (illegal byte sequence)
ERROR: Image type not recognized: Could not determine file type (does the file exist?): demo/apod2.jpg
HDU #1 Array: NAXIS = 2, BITPIX = 16
NAXIS1 = 3352
NAXIS2 = 2532
2.3.1
/usr/local/scisoft/packages/python/lib/python2.6/site-packages/pyfits/__init__.py
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
3.0.7
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyfits/__init__.pyc
>>file -b -N -L -k -r demo/apod2.jpgERROR: line 5: regexec error 17, (illegal byte sequence)
>>/usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile sane.fits --fix-sdss --infile demo/apod2.jpg --uncompressed-outfile uncomp --outfile out.pnm --ppm --verbose"file" command failed. Command: "file -b -N -L -k -r demo/apod2.jpg"
ERROR: line 5: regexec error 17, (illegal byte sequence)
>>liststruc 83F010612_57_light.fitsHDU #1 Array: NAXIS = 2, BITPIX = 16
NAXIS1 = 3352
NAXIS2 = 2532>>python -c "import pyfits; print pyfits.__version__; print pyfits.__file__"2.3.1
/usr/local/scisoft/packages/python/lib/python2.6/site-packages/pyfits/__init__.py>>sudo python -c "import pyfits; print pyfits.__version__; print pyfits.__file__"dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
3.0.7
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyfits/__init__.pyc
oh! How did that happen?
If I shouldn't use sudo, which makes sense, does that mean the /usr/local/scisoft/packages/python/lib/python2.6/ is not working properly?
| <base>-ngc.png | an annotation of the image. |
| <base>.wcs | a FITS WCS header for the solution. |
| <base>.new | a new FITS file containing the WCS header. |
| <base>-objs.png | a plot of the sources (stars) we extracted from the image. |
| <base>-indx.png | sources (red), plus stars from the index (green), plus the skymark (“quad”) used to solve the image. |
| <base>-indx.xyls | a FITS BINTABLE with the pixel locations of stars from the index. |
| <base>.rdls | a FITS BINTABLE with the RA,Dec of sources we extracted from the image. |
| <base>.axy | a FITS BINTABLE of the sources we extracted, plus headers that describe the job (how the image is going to be solved). |
| <base>.solved | exists and contains (binary) 1 if the field solved. |
| <base>.match | a FITS BINTABLE describing the quad match that solved the image. |
| <base>.kmz | (optional) KMZ file for Google Sky-in-Earth. You need to have “wcs2kml” in your PATH. See http://code.google.com/p/wcs2kml/downloads/list http://code.google.com/p/google-gflags/downloads/list |
Reading input file 1 of 1: "83F010612_57_light.fits"...
Base: "./83F010612_57_light", basefile "83F010612_57_light.fits", basedir ".", suffix "fits"
Checking if file "83F010612_57_light.fits" is xylist or image: image
(not xyls because: Missing required columns: : FITS extension 1 in file 83F010612_57_light.fits is not a table (or there was an error opening the file): error: cannot find data start in [83F010612_57_light.fits]:[1])
Running: /usr/local/astrometry/bin/image2pnm.py --no-fits2fits --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.faxOoa --outfile /tmp/tmp.ppm.G51c1g --ppm
ERROR: Image type not recognized: Could not determine file type (does the file exist?): 83F010612_57_light.fits
augment-xylist.c:586:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --no-fits2fits --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.faxOoa --outfile /tmp/tmp.ppm.G51c1g --ppm
ioutils.c:669:run_command_get_outputs Command failed: return value 255
>>/usr/local/astrometry/bin/image2pnm.py --no-fits2fits --fix-sdss --infile 83F010612_57_light.fits --uncompressed-outfile /tmp/tmp.uncompressed.faxOoa --outfile /tmp/tmp.ppm.G51c1g --ppm --verbose
"file" command failed. Command: "file -b -N -L -k -r 83F010612_57_light.fits"
ERROR: line 5: regexec error 17, (illegal byte sequence)
Could not determine file type of "83F010612_57_light.fits"
"file" command failed. Command: "file -b -N -L -k -r 83F010612_57_light.fits"
ERROR: line 5: regexec error 17, (illegal byte sequence)
ERROR: Image type not recognized: Could not determine file type (does the file exist?): 83F010612_57_light.fits
>>which python/opt/local/bin/python>>sudo which pythondyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgidPassword:/opt/local/bin/python
>>solve-field --no-fits2fits demo/apod2.xylsworks in that it now solves for WCS without needing sudo... but it means I don't get the <base>ngc.png nor the <base>.new files and the <base>-objs.png is zero bytes.
Reading input file 1 of 1: "demo/apod2.jpg"...
Base: "demo/apod2", basefile "apod2.jpg", basedir "demo", suffix "jpg"
Checking if file "demo/apod2.jpg" is xylist or image: image
(not xyls because: Failed to open FITS table demo/apod2.jpg: Failed to read primary FITS header from demo/apod2.jpg: error: qfits_get_hdrinfo failed.: error: error adding file "demo/apod2.jpg" to cache: error: file "demo/apod2.jpg" is not FITS (does not start with "SIMPLE ="))
Running: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.Rek1Ko --fix-sdss --infile demo/apod2.jpg --uncompressed-outfile /tmp/tmp.uncompressed.c8wxmu --outfile /tmp/tmp.ppm.zBjwyH --ppm
ERROR: Image type not recognized: Could not determine file type (does the file exist?): demo/apod2.jpg
augment-xylist.c:586:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.Rek1Ko --fix-sdss --infile demo/apod2.jpg --uncompressed-outfile /tmp/tmp.uncompressed.c8wxmu --outfile /tmp/tmp.ppm.zBjwyH --ppm
ioutils.c:669:run_command_get_outputs Command failed: return value 255
"file" command failed. Command: "file -b -N -L -k -r demo/apod2.jpg"
ERROR: line 5: regexec error 17, (illegal byte sequence)
Could not determine file type of "demo/apod2.jpg"
"file" command failed. Command: "file -b -N -L -k -r demo/apod2.jpg"
ERROR: line 5: regexec error 17, (illegal byte sequence)
ERROR: Image type not recognized: Could not determine file type (does the file exist?): demo/apod2.jpg
JPEG image data, JFIF standard 1.02, comment: "Adobe ImageReady??"