[MacPorts] #42088: pgf to 3.0.0
MacPorts
noreply at macports.org
Sat Jan 11 06:32:17 PST 2014
#42088: pgf to 3.0.0
---------------------+--------------------------------
Reporter: snc@… | Owner: macports-tickets@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: pgf |
---------------------+--------------------------------
Comment (by egall@…):
Replying to [comment:8 mojca@…]:
> Btw: you don't need any `main` function in a library. All that's missing
is probably a `-shared` flag during compilation. After the few additional
patches that I submitted I end up with a different error though:
> {{{
> /usr/bin/clang -Os -arch x86_64 -O2 -Wall -I/opt/local/include
-I../../../.. -shared -L/opt/local/lib -Wl,-headerpad_max_install_names
-llua \
> \
> -o SimpleDemoCPlusPlus.so \
> SimpleDemoCPlusPlus.o ../../interface/c/InterfaceFromC++.o
../../interface/c/InterfaceFromC.o
> Undefined symbols for architecture x86_64:
> "std::terminate()", referenced from:
> FastLayout::declare(scripting::script) in SimpleDemoCPlusPlus.o
> "vtable for __cxxabiv1::__class_type_info", referenced from:
> typeinfo for scripting::declarations in SimpleDemoCPlusPlus.o
> typeinfo for scripting::runner in SimpleDemoCPlusPlus.o
> NOTE: a missing vtable usually means the first non-inline virtual
member function has no definition.
> "vtable for __cxxabiv1::__vmi_class_type_info", referenced from:
> typeinfo for FastLayout in SimpleDemoCPlusPlus.o
> NOTE: a missing vtable usually means the first non-inline virtual
member function has no definition.
> "operator delete(void*)", referenced from:
> FastLayout::~FastLayout() in SimpleDemoCPlusPlus.o
> non-virtual thunk to FastLayout::~FastLayout() in
SimpleDemoCPlusPlus.o
> "operator new(unsigned long)", referenced from:
> _luaopen_pgf_gd_examples_c_SimpleDemoCPlusPlus in
SimpleDemoCPlusPlus.o
> "___gxx_personality_v0", referenced from:
> FastLayout::declare(scripting::script) in SimpleDemoCPlusPlus.o
> Dwarf Exception Unwind Info (__eh_frame) in SimpleDemoCPlusPlus.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
invocation)
> }}}
Looks like it needs to be told which c++ library to use for a standard c++
library. Either that or it needs some compiler blacklisting. Although it
looks like by the filename that this is just a demo, so maybe demos could
be skipped being built...
--
Ticket URL: <https://trac.macports.org/ticket/42088#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list