Subject: | v1.11 - linker error - undefined undefined reference to ffgsky / ffgksl / ffeopn |
I have experienced the following error when trying to build Astro::FITS::CFITSIO v1.11
gcc -c -I -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" "-IC:\tmp524\perl\lib\CORE" util.c
"C:\tmp524\perl\bin\perl.exe" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Astro::FITS::CFITSIO\", 'DLBASE' => 'CFITSIO', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
g++.exe CFITSIO.def -o blib\arch\auto\Astro\FITS\CFITSIO\CFITSIO.xs.dll -mdll -s -L"C:\tmp524\perl\lib\CORE" -L"C:\tmp524\c\lib" CFITSIO.o util.o "C:\tmp524\perl\lib\CORE\libperl524.a" "C:\tmp524\c\lib\libcfitsio.a" "C:\tmp524\c\i686-w64-mingw32\lib\libmoldname.a" "C:\tmp524\c\i686-w64-mingw32\lib\libkernel32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libuser32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libgdi32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libwinspool.a" "C:\tmp524\c\i686-w64-mingw32\lib\libcomdlg32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libadvapi32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libshell32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libole32.a" "C:\tmp524\c\i686-w64-mingw32\lib\liboleaut32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libnetapi32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libuuid.a" "C:\tmp524\c\i686-w64-mingw32\lib\libws2_32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libmpr.a" "C:\tmp524\c\i686-w64-mingw32\lib\libwinmm.a" "C:\tmp524\c\i686-w64-mingw32\lib\libversion.a" "C:\tmp524\c\i686-w64-mingw32\lib\libodbc32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libodbccp32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-base
CFITSIO.o:CFITSIO.c:(.text+0x49e35): undefined reference to `ffgsky'
CFITSIO.o:CFITSIO.c:(.text+0x4a1d1): undefined reference to `ffgksl'
CFITSIO.o:CFITSIO.c:(.text+0x7ff82): undefined reference to `ffeopn'
collect2.exe: error: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\Astro\FITS\CFITSIO\CFITSIO.xs.dll'
FAIL
gcc -c -I -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" "-IC:\tmp524\perl\lib\CORE" util.c
"C:\tmp524\perl\bin\perl.exe" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Astro::FITS::CFITSIO\", 'DLBASE' => 'CFITSIO', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
g++.exe CFITSIO.def -o blib\arch\auto\Astro\FITS\CFITSIO\CFITSIO.xs.dll -mdll -s -L"C:\tmp524\perl\lib\CORE" -L"C:\tmp524\c\lib" CFITSIO.o util.o "C:\tmp524\perl\lib\CORE\libperl524.a" "C:\tmp524\c\lib\libcfitsio.a" "C:\tmp524\c\i686-w64-mingw32\lib\libmoldname.a" "C:\tmp524\c\i686-w64-mingw32\lib\libkernel32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libuser32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libgdi32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libwinspool.a" "C:\tmp524\c\i686-w64-mingw32\lib\libcomdlg32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libadvapi32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libshell32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libole32.a" "C:\tmp524\c\i686-w64-mingw32\lib\liboleaut32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libnetapi32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libuuid.a" "C:\tmp524\c\i686-w64-mingw32\lib\libws2_32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libmpr.a" "C:\tmp524\c\i686-w64-mingw32\lib\libwinmm.a" "C:\tmp524\c\i686-w64-mingw32\lib\libversion.a" "C:\tmp524\c\i686-w64-mingw32\lib\libodbc32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libodbccp32.a" "C:\tmp524\c\i686-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-base
CFITSIO.o:CFITSIO.c:(.text+0x49e35): undefined reference to `ffgsky'
CFITSIO.o:CFITSIO.c:(.text+0x4a1d1): undefined reference to `ffgksl'
CFITSIO.o:CFITSIO.c:(.text+0x7ff82): undefined reference to `ffeopn'
collect2.exe: error: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\Astro\FITS\CFITSIO\CFITSIO.xs.dll'
FAIL