Discussion:
[Openexr-user] error while compiling OpenEXR
Smitha K
2006-11-22 07:10:32 UTC
Permalink
Hi,

I am trying to install OpenEXR on Solaris10 and am facing the following
error when I try to compile it:

bash-3.00$ pwd
/export/home/sungrid/smitha/bf-blender/openexr-1.4.0
bash-3.00$ ./configure
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 style of include used by gmake... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... ./install-sh -c
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... egrep
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 262144
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether gmake sets $(MAKE)... (cached) yes
checking for fltk-config... no
checking for FLTK with GL support... no
*** The fltk test program could not be compiled. Possible reasons:
***
*** - FLTK is not installed.
*** - Your version of FLTK does not support OpenGL.
*** - configure cannot find your 'fltk-config' program (use
*** the --with-fltk-config option to tell configure where
*** to find it).
*** - Your version of FLTK is too old. The exrdisplay
*** program requires FLTK 1.1 or higher.
*** - Your FLTK library was compiled with a different C++
*** compiler than the one you're using to compile OpenEXR.
***
*** The exrdisplay program will not be built because it depends on
*** a working FLTK install with OpenGL support.
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for cc_r... gcc
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking for library containing sem_init... -lposix4
checking whether to use POSIX unnamed semaphores... yes
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for strerror... yes
checking for compress in -lz... yes
checking for complete iomanip support in C++ standard library... yes
checking for gcc optimization flags... -pipe
configure: creating ./config.status
config.status: creating Makefile
config.status: creating OpenEXR.pc
config.status: creating config/Makefile
config.status: creating Half/Makefile
config.status: creating HalfTest/Makefile
config.status: creating Iex/Makefile
config.status: creating IexTest/Makefile
config.status: creating IlmImf/Makefile
config.status: creating IlmImfTest/Makefile
config.status: creating IlmThread/Makefile
config.status: creating Imath/Makefile
config.status: creating ImathTest/Makefile
config.status: creating exrdisplay/Makefile
config.status: creating exrheader/Makefile
config.status: creating exrmaketiled/Makefile
config.status: creating IlmImfExamples/Makefile
config.status: creating doc/Makefile
config.status: creating vc/Makefile
config.status: creating exrstdattr/Makefile
config.status: creating exrmakepreview/Makefile
config.status: creating exrenvmap/Makefile
config.status: creating config/OpenEXRConfig.h
config.status: config/OpenEXRConfig.h is unchanged
config.status: executing depfiles commands

---------------------------------------------
Summary for OpenEXR features:

build exrdisplay FLTK application no
with fragment shader support no
build IlmImf example program no
---------------------------------------------

bash-3.00$ gmake
gmake: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'Making all in config
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake all-am
gmake[2]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[2]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
Making all in Half
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake all-am
gmake[2]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2 -D_REENTRANT
-pthread -o libHalf.la -rpath /usr/local/lib -version-info 4:0:0
-no-undefined half.lo -lposix4
libtool: link:
`/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la' is
not a valid libtool archive
gmake[2]: *** [libHalf.la] Error 1
gmake[2]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake: *** [all-recursive] Error 1
gmake: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'
bash-3.00$

bash-3.00$ gmake install
gmake: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'Making install in
config
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[2]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/OpenEXR" || /bin/bash ../mkinstalldirs
"/usr/local/include/OpenEXR"
.././install-sh -c -m 644 'OpenEXRConfig.h'
'/usr/local/include/OpenEXR/OpenEXRConfig.h'
gmake[2]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
Making install in Half
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake install-am
gmake[2]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2 -D_REENTRANT
-pthread -o libHalf.la -rpath /usr/local/lib -version-info 4:0:0
-no-undefined half.lo -lposix4
libtool: link:
`/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la' is
not a valid libtool archive
gmake[2]: *** [libHalf.la] Error 1
gmake[2]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake: *** [install-recursive] Error 1
gmake: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'
bash-3.00$

Any help would be appreciated...

Thanks
Smitha
Greg Ercolano
2006-11-22 08:23:36 UTC
Permalink
Post by Smitha K
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2 -D_REENTRANT
-pthread -o libHalf.la -rpath /usr/local/lib -version-info 4:0:0
-no-undefined half.lo -lposix4
`/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la' is not a valid libtool archive
gmake[2]: *** [libHalf.la] Error 1
Do a 'make clean' first, before doing the 'make' and 'make install'.

Looks like there's a left over lib file from a previous compile
on a different platform or different version of the OS, causing the
above error about an invalid archive.

Another good clue is that it jumped straight into the lib archiving,
without actually running any of the compile commands, indicating the
.o's are probably still left over from the previous compile as well
as the lib.
Smitha K
2006-11-22 10:35:41 UTC
Permalink
Hi Greg,


Even after make clean I am getting the following error:

bash-3.00$ gmake clean
gmake: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'Making clean in
exrenvmap
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrenvmap'
rm -f exrenvmap exrenvmap
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrenvmap'
Making clean in exrmakepreview
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrmakepreview'
rm -f exrmakepreview exrmakepreview
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrmakepreview'
Making clean in exrstdattr
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrstdattr'
rm -f exrstdattr exrstdattr
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrstdattr'
Making clean in vc
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/vc'
rm -rf .libs _libs
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/vc'
Making clean in doc
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/doc'
rm -rf .libs _libs
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/doc'
Making clean in IlmImfExamples
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmImfExamples'
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmImfExamples'
Making clean in exrmaketiled
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrmaketiled'
rm -f exrmaketiled exrmaketiled
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrmaketiled'
Making clean in exrheader
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrheader'
rm -f exrheader exrheader
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrheader'
Making clean in exrdisplay
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrdisplay'
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/exrdisplay'
Making clean in IlmImfTest
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmImfTest'
rm -f IlmImfTest IlmImfTest
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmImfTest'
Making clean in IlmImf
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmImf'
test -z "libIlmImf.la" || rm -f libIlmImf.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmImf'
Making clean in IlmThread
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmThread'
test -z "libIlmThread.la" || rm -f libIlmThread.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IlmThread'
Making clean in ImathTest
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/ImathTest'
rm -f ImathTest ImathTest
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/ImathTest'
Making clean in Imath
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Imath'
test -z "libImath.la" || rm -f libImath.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Imath'
Making clean in IexTest
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IexTest'
rm -f IexTest IexTest
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/IexTest'
Making clean in Iex
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Iex'
test -z "libIex.la" || rm -f libIex.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Iex'
Making clean in HalfTest
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/HalfTest'
rm -f HalfTest HalfTest
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/HalfTest'
Making clean in Half
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
test -z "eLut eLut.h toFloat toFloat.h" || rm -f eLut eLut.h toFloat
toFloat.h
test -z "libHalf.la" || rm -f libHalf.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f eLut eLut
rm -f toFloat toFloat
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
Making clean in config
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
rm -rf .libs _libs
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
Making clean in .
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'
rm -rf .libs _libs
rm -f *.lo
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'
gmake: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'



bash-3.00$ gmake
gmake: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'Making all in config
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake all-am
gmake[2]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[2]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/config'
Making all in Half
gmake[1]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
if g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../config
-I/usr/X11/include -pipe -g -O2 -D_REENTRANT -pthread -MT eLut.o -MD -MP
-MF ".deps/eLut.Tpo" -c -o eLut.o eLut.cpp; \
then mv -f ".deps/eLut.Tpo" ".deps/eLut.Po"; else rm -f
".deps/eLut.Tpo"; exit 1; fi
g++: unrecognized option `-pthread'
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2 -D_REENTRANT
-pthread -o eLut eLut.o -lposix4
mkdir .libs
g++ -pipe -g -O2 -D_REENTRANT -pthread -o eLut eLut.o -lposix4
g++: unrecognized option `-pthread'
./eLut > eLut.h
if g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../config
-I/usr/X11/include -pipe -g -O2 -D_REENTRANT -pthread -MT toFloat.o -MD
-MP -MF ".deps/toFloat.Tpo" -c -o toFloat.o toFloat.cpp; \
then mv -f ".deps/toFloat.Tpo" ".deps/toFloat.Po"; else rm -f
".deps/toFloat.Tpo"; exit 1; fi
g++: unrecognized option `-pthread'
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2 -D_REENTRANT
-pthread -o toFloat toFloat.o -lposix4
g++ -pipe -g -O2 -D_REENTRANT -pthread -o toFloat toFloat.o -lposix4
g++: unrecognized option `-pthread'
./toFloat > toFloat.h
gmake all-am
gmake[2]: Entering directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I../config -I../config -I/usr/X11/include -pipe -g -O2
-D_REENTRANT -pthread -MT half.lo -MD -MP -MF ".deps/half.Tpo" -c -o
half.lo half.cpp; \
then mv -f ".deps/half.Tpo" ".deps/half.Plo"; else rm -f
".deps/half.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../config -I/usr/X11/include
-pipe -g -O2 -D_REENTRANT -pthread -MT half.lo -MD -MP -MF
.deps/half.Tpo -c half.cpp -fPIC -DPIC -o .libs/half.o
g++: unrecognized option `-pthread'
g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../config -I/usr/X11/include
-pipe -g -O2 -D_REENTRANT -pthread -MT half.lo -MD -MP -MF
.deps/half.Tpo -c half.cpp -o half.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2 -D_REENTRANT
-pthread -o libHalf.la -rpath /usr/local/lib -version-info 4:0:0
-no-undefined half.lo -lposix4
libtool: link:
`/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la' is
not a valid libtool archive
gmake[2]: *** [libHalf.la] Error 1
gmake[2]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake: *** [all-recursive] Error 1
gmake: Leaving directory
`/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'
bash-3.00$
Post by Greg Ercolano
Post by Smitha K
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2
-D_REENTRANT -pthread -o libHalf.la -rpath /usr/local/lib
-version-info 4:0:0 -no-undefined half.lo -lposix4
`/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la'
is not a valid libtool archive
gmake[2]: *** [libHalf.la] Error 1
Do a 'make clean' first, before doing the 'make' and 'make install'.
Looks like there's a left over lib file from a previous compile
on a different platform or different version of the OS, causing the
above error about an invalid archive.
Another good clue is that it jumped straight into the lib archiving,
without actually running any of the compile commands, indicating the
.o's are probably still left over from the previous compile as well
as the lib.
_______________________________________________
Openexr-user mailing list
http://lists.nongnu.org/mailman/listinfo/openexr-user
Drew Hess
2006-11-22 11:33:32 UTC
Permalink
Post by Smitha K
g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../config -I/usr/X11/include
-pipe -g -O2 -D_REENTRANT -pthread -MT half.lo -MD -MP -MF
.deps/half.Tpo -c half.cpp -o half.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -g -O2
-D_REENTRANT -pthread -o libHalf.la -rpath /usr/local/lib
-version-info 4:0:0 -no-undefined half.lo -lposix4
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la' is
not a valid libtool archive
gmake[2]: *** [libHalf.la] Error 1
gmake[2]: Leaving directory
/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
/export/home/sungrid/smitha/bf-blender/openexr-1.4.0/Half'
gmake: *** [all-recursive] Error 1
gmake: Leaving directory
/export/home/sungrid/smitha/bf-blender/openexr-1.4.0'
bash-3.00$
What arguments are you passing to configure?

Also, please send me the output of this command:

file /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la

thanks
d
Drew Hess
2006-11-24 09:37:58 UTC
Permalink
I am just saying ./configure
And the result of the command is
bash-3.00$ file
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../..//libstdc++.la
empty file
I believe this means that your GNU libstdc++ is not installed
correctly. That should be a file which contains some text that
describes to the linker how to link the real library.

Can somebody who has g++ installed on a Solaris system please confirm
that? I don't have a Solaris machine to test this.

d

Loading...