Opened 13 months ago

Closed 8 months ago

#67276 closed defect (worksforme)

gmic-lib @3.2.3: upgrade fails with link error, when previous version active

Reported by: mascguy (Christopher Nielsen) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gmic-lib

Description

Presumably should be a relatively easy fix, by changing the link order:

gmic-lib/work/compwrap/cxx/usr/bin/clang++ -o use_libgmic use_libgmic.cpp -std=c++11 -pedantic -lgmic -L/opt/local/lib -lz -L.
-L/opt/local/lib -Wl,-rpath,. -lpthread -L/opt/local/lib -lfftw3 -lfftw3_threads -L/opt/local/lib -lcurl -L/opt/local/lib -lpng16
-L/opt/local/lib -ljpeg -L/opt/local/lib -ltiff -L/opt/local/lib -lX11 -lpthread -L/opt/local/lib -lIlmImf -lImath -lHalf -lIex
-lIexMath -lIlmThread

Undefined symbols for architecture x86_64:
  "gmic_library::gmic_image<float>::assign(unsigned int, unsigned int, unsigned int, unsigned int)", referenced from:
      _main in use_libgmic-571b94.o
  "gmic_library::gmic_list<float>::assign(unsigned int)", referenced from:
      _main in use_libgmic-571b94.o
  "gmic& gmic::run<float>(char const*, gmic_library::gmic_list<float>&, gmic_library::gmic_list<char>&)", referenced from:
      _main in use_libgmic-571b94.o
  "gmic::gmic<float>(char const*, gmic_library::gmic_list<float>&, gmic_library::gmic_list<char>&, char const*, bool, float*, bool*)", referenced from:
      _main in use_libgmic-571b94.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[1]: *** [use_libgmic] Error 1

Deactivating the current version first works, but not very user-friendly.

Full log attached.

Attachments (1)

gmic-lib-link-failure.log.gz (3.7 KB) - added by mascguy (Christopher Nielsen) 13 months ago.

Download all attachments as: .zip

Change History (4)

Changed 13 months ago by mascguy (Christopher Nielsen)

comment:1 Changed 13 months ago by Schamschula (Marius Schamschula)

We went through that issue several versions ago. Are you upgrading from the previous version, i.e. 3.2.2 or something older?

comment:2 in reply to:  1 Changed 13 months ago by mascguy (Christopher Nielsen)

Replying to Schamschula:

We went through that issue several versions ago. Are you upgrading from the previous version, i.e. 3.2.2 or something older?

I'm upgrading from 3.1.6. But ultimately, if the link order is being set correctly, should that matter...?

comment:3 Changed 8 months ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: assignedclosed

Let's close for now. If this issue reoccurs, we can reopen.

Note: See TracTickets for help on using tickets.