On Sun, Feb 14, 2021 at 11:38:10AM -0800, Larry Gritz wrote:
> I think 'T' means it's defined, in the text section.
> 
> The error message was:
> 
> >>> ld: error: undefined symbol: OpenImageIO_v2_2::ArgParse::abort(bool)
> 
> But there it is:
> 
> > 008d2670 T _ZN16OpenImageIO_v2_28ArgParse5abortEb
> 
> so I don't quite understand what could be going wrong.
> 
The issue is that build uses the system lib even if a
library with a greater major is available in the build
directory. Removing the old libraries solves the problem.

regards,
  Dimitri

> 
> > On Feb 14, 2021, at 5:36 AM, Dimitri Karamazov <deserter...@danwin1210.me> 
> > wrote:
> > 
> > On Sun, Feb 14, 2021 at 01:28:28PM +0000, Dimitri Karamazov wrote:
> >> fca99cc5 seems like the relevant commit. It sure looks like abort() was 
> >> added to both the header and the library. I'm not sure why the new 
> >> ArgParse::abort() would seem to not be found when linking now, when all 
> >> the other methods in the same module were found without trouble before.
> >> 
> >> If you "nm" libOpenImageIO.so, do you see the symbol defined?
> >> 
> >>    -- lg
> >> 
> > The symbols exists but is undefined.
> > 
> > 008d2670 T _ZN16OpenImageIO_v2_28ArgParse5abortEb
> > 008d26a0 T _ZNK16OpenImageIO_v2_28ArgParse7abortedEv
> >         U __cxa_guard_abort
> >         U abort
> >         U jpeg_abort_compress
> > 
> > regards,
> >  Dimitri
> > 
> >> 
> >>> On Feb 13, 2021, at 9:34 AM, Dimitri Karamazov <deserter666 at 
> >>> danwin1210.me> wrote:
> >>> 
> >>> [208/244] : && /usr/ports/pobj/openimageio-2.2.11.1/bin/c++ -O2 -pipe 
> >>> -DNDEBUG  src/iconvert/CMakeFiles/iconvert.dir/iconvert.cpp.o -o 
> >>> bin/iconvert -L/usr/local/lib   
> >>> -L/usr/ports/pobj/openimageio-2.2.11.1/build-amd64/lib   -L/usr/lib 
> >>> -Wl,-z,origin,-rpath,/usr/local/lib:/usr/ports/pobj/openimageio-2.2.11.1/build-amd64/lib:
> >>>   -lOpenImageIO  -lIlmImf-2_5  /usr/lib/libz.so.5.0  -lImath-2_5  
> >>> -lIexMath-2_5  -lHalf-2_5  -lIlmThread-2_5  -lIex-2_5  -lIlmImf-2_5  
> >>> -lImath-2_5  -lIex-2_5  -lHalf-2_5  -lIlmThread-2_5  -lz  -lImath-2_5  
> >>> -lIex-2_5  -lHalf-2_5  -lIlmThread-2_5  -lz  -lpthread  
> >>> -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib && :
> >>> FAILED: bin/iconvert 
> >>> : && /usr/ports/pobj/openimageio-2.2.11.1/bin/c++ -O2 -pipe -DNDEBUG  
> >>> src/iconvert/CMakeFiles/iconvert.dir/iconvert.cpp.o -o bin/iconvert 
> >>> -L/usr/local/lib   -L/usr/ports/pobj/openimageio-2.2.11.1/build-amd64/lib 
> >>>   -L/usr/lib 
> >>> -Wl,-z,origin,-rpath,/usr/local/lib:/usr/ports/pobj/openimageio-2.2.11.1/build-amd64/lib:
> >>>   -lOpenImageIO  -lIlmImf-2_5  /usr/lib/libz.so.5.0  -lImath-2_5  
> >>> -lIexMath-2_5  -lHalf-2_5  -lIlmThread-2_5  -lIex-2_5  -lIlmImf-2_5  
> >>> -lImath-2_5  -lIex-2_5  -lHalf-2_5  -lIlmThread-2_5  -lz  -lImath-2_5  
> >>> -lIex-2_5  -lHalf-2_5  -lIlmThread-2_5  -lz  -lpthread  
> >>> -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib && :
> >>> ld: error: undefined symbol: OpenImageIO_v2_2::ArgParse::abort(bool)
> >>>>>> referenced by iconvert.cpp
> >>>>>>             src/iconvert/CMakeFiles/iconvert.dir/iconvert.cpp.o:(main)
> >>> 
> >>> ld: error: undefined symbol: OpenImageIO_v2_2::ArgParse::aborted() const
> >>>>>> referenced by iconvert.cpp
> >>>>>>             src/iconvert/CMakeFiles/iconvert.dir/iconvert.cpp.o:(main)
> >>> c++: error: linker command failed with exit code 1 (use -v to see 
> >>> invocation)
> >>> ninja: build stopped: subcommand failed.
> >>> *** Error 1 in /usr/ports/graphics/openimageio 
> >>> (/usr/ports/devel/cmake/cmake.port.mk:36 'do-build': @cd 
> >>> /usr/ports/pobj/openimageio-2.2.11.1...)
> >>> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2928 
> >>> '/usr/ports/pobj/openimageio-2.2.11.1/build-amd64/.build_done': @cd 
> >>> /usr/por...)
> >>> *** Error 2 in /usr/ports/graphics/openimageio 
> >>> (/usr/ports/infrastructure/mk/bsd.port.mk:2591 'build': 
> >>> @lock=openimageio-2.2.11.1;  export _...)
> >>> <openimageio.tar.gz>_______________________________________________
> >>> Oiio-dev mailing list
> >>> Oiio-dev at lists.openimageio.org
> >>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
> >> 
> >> --
> >> Larry Gritz
> >> lg at larrygritz.com
> > 
> 
> --
> Larry Gritz
> l...@larrygritz.com
> 
> 
> 
> 
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to