Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Ubununtu 12.04 linking error - dlopen()

Cable
2013-07-23
2013-07-24
  • Cable
    Cable
    2013-07-23

    Hi,
    I've been racking my brain trying to figure this one out so I thought I'd try here to see if anyone has come across this. This error occurs during 'make test'. Anyone have any ideas? I don't know what library it's trying to open so I can't test for it. I'm not really sure where to find on the code what library it's looking for. I've tried.

    I'm getting 'undefined reference to 'dlopen' in aaflibsgi.cpp in function AAFLoadLibrary.

    Thanks for any assistance with this. This is the third error I've gotten during the make process but this one has me stuck. I'm familiar with dlopen but can't trace the library it's trying to open.

    Thanks.

    Building ModuleTests

    cd ModuleTests && make
    make[4]: Entering directory /home/parallels/development/AAF/test/com/ComModTestAAF/ModuleTests' make[4]: Nothing to be done forall'.
    make[4]: Leaving directory /home/parallels/development/AAF/test/com/ComModTestAAF/ModuleTests' g++ -ldl -rdynamic ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/AAFWideString.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFModuleTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/ComModTestAAF.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/ModuleTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/utf8.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFAES3PCMDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFAIFCDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFAuxiliaryDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFBWFImportDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFCachePageAllocatorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFCDCIDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFClassDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFCodecDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFCommentMarkerTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFComponentTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFCompositionMobTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFConstantValueTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFContainerDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFContentStorageTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFControlPointTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDataDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDataEssenceDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDefObjectTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDescriptiveClipTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDescriptiveFrameworkTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDescriptiveMarkerTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDescriptiveObjectTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDictionaryTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFDigitalImageDescripTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEdgecodeTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEssenceAccessTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEssenceDataTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEssenceDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEssenceFormatTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEssenceGroupTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEssencePluginTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEventMobSlotTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFEventTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFFileDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFFileEncodingTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFFileTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFFillerTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFFilmDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFFindSourceInfoTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFGetFileBitsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFGPITriggerTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFHeaderTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFHTMLClipTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFHTMLDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFIdentificationTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFImportDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFInterpolationDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFKLVDataDefinitionTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFKLVDataTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFLocatorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFMasterMobTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFMetaDefinitionTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFMobSlotTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFMobTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFMPEGVideoDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFMultipleDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFNestedScopeTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFNetworkLocatorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFObjectTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFOperationDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFOperationGroupTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFParameterDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFParameterTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPCMDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPhysicalDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPlainEssenceDataTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPlainStreamDataTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPluginDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPluginManagerTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPropertyDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPropertyTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPropertyValueTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFPulldownTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFRandomFileTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFRandomRawStorageTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFRawStorageTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFRecordingDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFRGBADescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFRIFFChunkTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFScopeReferenceTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSegmentTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSelectorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSequenceTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSetFileBitsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSoundDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSourceClipTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSourceMobTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFSourceReferenceTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFStaticMobSlotTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTaggedValueDefinitionTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTaggedValueTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTapeDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTextClipTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTextLocatorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTIFFDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTimecodeStream12MTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTimecodeStreamTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTimecodeTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTimelineMobSlotTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTransitionTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefCharacterTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefEnumTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefExtEnumTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefFixedArrayTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefIndirectTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefIntTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefObjectRefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefOpaqueTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefRecordTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefRenameTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefSetTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefStreamTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefStringTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefStrongObjRefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefVariableArryTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFTypeDefWeakObjRefTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFVaryingValueTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CAAFWAVEDescriptorTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFClassDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFCodecDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFCodecFlavoursTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFComponentsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFContainerDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFControlPointsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFDataDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFEssenceDataTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFFileDescriptorsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFFileEncodingsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFIdentificationsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFInterpolateDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFKLVDataDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFKLVDataTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFLoadedPluginsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFLocatorsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFMobSlotsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFMobsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFOperationDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFParameterDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFParametersTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFPluginDescTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFPluginLocatorsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFPropertiesTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFPropertyDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFPropertyValuesTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFRIFFChunksTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFSegmentsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFTaggedValueDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFTaggedValuesTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/CEnumAAFTypeDefsTest.o ../../../AAFx86_64LinuxSDK/g++/ComModAAF/debug/ModuleTestsCommon.o -L../../../AAFx86_64LinuxSDK/g++/lib/debug -laaflib -laafiid -Xlinker -rpath -Xlinker ../../../AAFx86_64LinuxSDK/g++/bin/debug -o ../../../AAFx86_64LinuxSDK/g++/bin/debug/ComModAAF ../../../AAFx86_64LinuxSDK/g++/lib/debug/libaaflib.a(aaflibsgi.o): In functionAAFLoadLibrary':
    /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:96: undefined reference to dlopen' /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:100: undefined reference todlerror'
    ../../../AAFx86_64LinuxSDK/g++/lib/debug/libaaflib.a(aaflibsgi.o): In function AAFFindSymbol': /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:131: undefined reference todlsym'
    collect2: ld returned 1 exit status
    make[3]: [../../../AAFx86_64LinuxSDK/g++/bin/debug/ComModAAF] Error 1
    make[3]: Leaving directory /home/parallels/development/AAF/test/com/ComModTestAAF' make[2]: *** [ComModTestAAF] Error 2 make[2]: Leaving directory/home/parallels/development/AAF/test/com'
    make[1]:
    [com] Error 2
    make[1]: Leaving directory `/home/parallels/development/AAF/test'
    make: *** [test] Error 2

     
    • Cable
      Cable
      2013-07-23

      Here is a shorter example. I'm wondering if it can't find aaflib and aafiid. I made a link to them in /usr/lib but that didn't help.

      Generating dependencies for CreateSequence.cpp
      g++ -c -g -Wall -Wundef -Wno-non-virtual-dtor -Werror -Wno-reorder -Wno-unused -D_DEBUG -DOM_DEBUG -DOM_STACK_TRACE_ON_ASSERT -fsigned-char -DOM_NO_STRUCTURED_STORAGE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -fPIC -I../../../AAFx86_64LinuxSDK/g++/include CreateSequence.cpp -o ../../../AAFx86_64LinuxSDK/g++/Test/debug/CreateSequence.o
      g++ -ldl -rdynamic ../../../AAFx86_64LinuxSDK/g++/Test/debug/CreateSequence.o -L../../../AAFx86_64LinuxSDK/g++/lib/debug -laaflib -laafiid -Xlinker -rpath -Xlinker ../../../AAFx86_64LinuxSDK/g++/bin/debug -o ../../../AAFx86_64LinuxSDK/g++/bin/debug/CreateSequence
      ../../../AAFx86_64LinuxSDK/g++/lib/debug/libaaflib.a(aaflibsgi.o): In function AAFLoadLibrary': /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:96: undefined reference todlopen'
      /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:100: undefined reference to dlerror' ../../../AAFx86_64LinuxSDK/g++/lib/debug/libaaflib.a(aaflibsgi.o): In functionAAFFindSymbol':
      /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:131: undefined reference to `dlsym'
      collect2: ld returned 1 exit status
      make: *** [../../../AAFx86_64LinuxSDK/g++/bin/debug/CreateSequence] Error 1

       
  • Cable
    Cable
    2013-07-23

    Sorry for too much information here. Here is the result of running:

    g++ -v -ldl -rdynamic ../../../AAFx86_64LinuxSDK/g++/Test/debug/CreateSequence.o -L../../../AAFx86_64LinuxSDK/g++/lib/debug -laaflib -laafiid -Xlinker -rpath -Xlinker ../../../AAFx86_64LinuxSDK/g++/bin/debug -o ../../../AAFx86_64LinuxSDK/g++/bin/debug/CreateSequence

    I've added the -v flag so I can see where it is looking for libraries. Everything looks right but still no luck.

    Using built-in specs.
    COLLECT_GCC=g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
    COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/
    LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../:/lib/:/usr/lib/
    COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-L../../../AAFx86_64LinuxSDK/g++/lib/debug' '-o' '../../../AAFx86_64LinuxSDK/g++/bin/debug/CreateSequence' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/collect2 --sysroot=/ --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o ../../../AAFx86_64LinuxSDK/g++/bin/debug/CreateSequence /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.6/crtbegin.o -L../../../AAFx86_64LinuxSDK/g++/lib/debug -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../.. -ldl ../../../AAFx86_64LinuxSDK/g++/Test/debug/CreateSequence.o -laaflib -laafiid -rpath ../../../AAFx86_64LinuxSDK/g++/bin/debug -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.6/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crtn.o
    ../../../AAFx86_64LinuxSDK/g++/lib/debug/libaaflib.a(aaflibsgi.o): In function AAFLoadLibrary': /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:96: undefined reference todlopen'
    /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:100: undefined reference to dlerror' ../../../AAFx86_64LinuxSDK/g++/lib/debug/libaaflib.a(aaflibsgi.o): In functionAAFFindSymbol':
    /home/parallels/development/AAF/ref-impl/aaflib/aaflibsgi.cpp:131: undefined reference to `dlsym'
    collect2: ld returned 1 exit status

     
  • Cable
    Cable
    2013-07-24

    OK. A lot of searching online I discovered this:
    You must put the -ldl flag at the end of the g++ statement. This solved this.