Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols: "__ZTHN6apache6thrift15ServerInterface14requestParams_E" #30

Open
barracuda156 opened this issue Aug 31, 2022 · 1 comment

Comments

@barracuda156
Copy link

I have been updating folly and others in Macports (to 2022.08.08), and the last port remaining is fb303, which fails for me on:

Undefined symbols:
  "__ZTHN6apache6thrift15ServerInterface14requestParams_E", referenced from:
      __ZN6apache6thrift6detail2si11AsyncTmPrepC4EPNS0_15ServerInterfaceEPNS0_19HandlerCallbackBaseE in BaseService.cpp.o
      __ZN6apache6thrift6detail2si11AsyncTmPrepC4EPNS0_15ServerInterfaceEPNS0_19HandlerCallbackBaseE in BaseService.cpp.o
      __ZN6apache6thrift6detail2si11AsyncTmPrepC4EPNS0_15ServerInterfaceEPNS0_19HandlerCallbackBaseE in BaseService.cpp.o
      __ZN6apache6thrift6detail2si11AsyncTmPrepD1Ev in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor24executeRequest_setOptionIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor24executeRequest_getOptionIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor31executeRequest_getExportedValueIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor37executeRequest_getRegexExportedValuesIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_getCounterIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor31executeRequest_getRegexCountersIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor24executeRequest_getStatusIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor22executeRequest_getNameIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_getVersionIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor31executeRequest_getStatusDetailsIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor26executeRequest_getCountersIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor32executeRequest_getExportedValuesIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_getOptionsIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_aliveSinceIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_aliveSinceIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_getOptionsIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor24executeRequest_getOptionIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor24executeRequest_setOptionIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor31executeRequest_getExportedValueIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor37executeRequest_getRegexExportedValuesIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor32executeRequest_getExportedValuesIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_getCounterIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor31executeRequest_getRegexCountersIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor26executeRequest_getCountersIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor31executeRequest_getStatusDetailsIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor25executeRequest_getVersionIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor22executeRequest_getNameIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor24executeRequest_getStatusIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor40executeRequest_getSelectedExportedValuesIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor34executeRequest_getSelectedCountersIN6apache6thrift20BinaryProtocolReaderENS5_20BinaryProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor40executeRequest_getSelectedExportedValuesIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZN8facebook5fb3034cpp225BaseServiceAsyncProcessor34executeRequest_getSelectedCountersIN6apache6thrift21CompactProtocolReaderENS5_21CompactProtocolWriterEEEvONS5_13ServerRequestE in BaseService.cpp.o
      __ZTHN6apache6thrift15ServerInterface14requestParams_E$non_lazy_ptr in BaseService.cpp.o
     (maybe you meant: __ZTHN6apache6thrift15ServerInterface14requestParams_E$non_lazy_ptr)
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [fb303/thrift/libfb303_thrift_cpp.1.0.0.dylib] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_fb303/fb303/work/build'
make[1]: *** [fb303/thrift/CMakeFiles/fb303_thrift_cpp.dir/all] Error 2

Any suggestion what can be going wrong?

I know old systems are not supported, so I do not expect a fix, just suggestions what to try.
My build is on 10.6.8 for ppc32 using GCC 12.2.0 and Cmake 3.24.1.

@barracuda156
Copy link
Author

Looks like the issue arises from autogenerated files in thrift/gen-cpp2, and it is not quite clear where they come from or why this particular symbol is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant