[MacPorts] #66385: SoapyRTLSDR fails to build with GCC: ld: unknown option: --no-undefined

MacPorts noreply at macports.org
Fri Dec 2 21:43:39 UTC 2022


#66385: SoapyRTLSDR fails to build with GCC: ld: unknown option: --no-undefined
--------------------------+-------------------------
 Reporter:  barracuda156  |      Owner:  ra1nb0w
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.0
 Keywords:                |       Port:  SoapyRTLSDR
--------------------------+-------------------------
 {{{
 [100%] Linking CXX shared module librtlsdrSupport.so
 /opt/local/bin/cmake -E cmake_link_script
 CMakeFiles/rtlsdrSupport.dir/link.txt --verbose=ON
 /opt/local/bin/g++-mp-12 -pipe -Os -DNDEBUG -I/opt/local/include
 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -std=c++11 -Wc++11-extensions -O3
 -DNDEBUG -arch ppc -mmacosx-version-min=10.6 -bundle
 -Wl,-headerpad_max_install_names -L/opt/local/lib
 -Wl,-headerpad_max_install_names -o librtlsdrSupport.so
 CMakeFiles/rtlsdrSupport.dir/Registation.cpp.o
 CMakeFiles/rtlsdrSupport.dir/Settings.cpp.o
 CMakeFiles/rtlsdrSupport.dir/Streaming.cpp.o
 CMakeFiles/rtlsdrSupport.dir/Version.cpp.o  -Wl,-rpath,/opt/local/lib
 /opt/local/lib/librtlsdr.dylib -pthread
 /opt/local/lib/libSoapySDR.0.8.1.dylib -Wl,--no-undefined -pthread
 -flat_namespace
 ld: unknown option: --no-undefined
 collect2: error: ld returned 1 exit status
 make[2]: *** [librtlsdrSupport.so] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SoapyRTLSDR/SoapyRTLSDR/work/build'
 make[1]: *** [CMakeFiles/rtlsdrSupport.dir/all] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SoapyRTLSDR/SoapyRTLSDR/work/build'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SoapyRTLSDR/SoapyRTLSDR/work/build'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SoapyRTLSDR/SoapyRTLSDR/work/build"
 && /usr/bin/make -j6 -w all VERBOSE=ON
 Exit code: 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66385>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list