Project

General

Profile

Bug #13518

sun_sas: multiply-defined symbols

Added by Toomas Soome about 2 months ago. Updated 13 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 10:

    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_device_disco.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_device_disco.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_device_disco.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_device_disco.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_device_disco.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_device_disco.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_phy_disco.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_phy_disco.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_phy_disco.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_phy_disco.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_phy_disco.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devtree_phy_disco.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devlink_disco.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devlink_disco.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devlink_disco.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devlink_disco.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devlink_disco.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/devlink_disco.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/event.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/event.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/event.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/event.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/event.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/event.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/verify.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/verify.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/verify.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/verify.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/verify.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/verify.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/SMHBA_RegisterLibrary.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/SMHBA_RegisterLibrary.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/SMHBA_RegisterLibrary.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/SMHBA_RegisterLibrary.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/SMHBA_RegisterLibrary.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/SMHBA_RegisterLibrary.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasLoadLibrary.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasLoadLibrary.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasLoadLibrary.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasLoadLibrary.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasLoadLibrary.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasLoadLibrary.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfAdapters.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfAdapters.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfAdapters.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfAdapters.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfAdapters.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfAdapters.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetTargetMapping.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetTargetMapping.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetTargetMapping.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetTargetMapping.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetTargetMapping.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetTargetMapping.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterName.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterName.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterName.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterName.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterName.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterName.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterAttributes.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterAttributes.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterAttributes.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterAttributes.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterPortAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterPortAttributes.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterPortAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterPortAttributes.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterPortAttributes.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetAdapterPortAttributes.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetDiscoveredPortAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetDiscoveredPortAttributes.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetDiscoveredPortAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetDiscoveredPortAttributes.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetDiscoveredPortAttributes.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetDiscoveredPortAttributes.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortAttributesByWWN.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortAttributesByWWN.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortAttributesByWWN.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortAttributesByWWN.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortAttributesByWWN.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortAttributesByWWN.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetSASPhyAttributes.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetSASPhyAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetSASPhyAttributes.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetSASPhyAttributes.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetSASPhyAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetSASPhyAttributes.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortType.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortType.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortType.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortType.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortType.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPortType.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfPorts.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfPorts.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfPorts.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfPorts.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfPorts.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetNumberOfPorts.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVersion.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVersion.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVersion.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVersion.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVersion.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVersion.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPhyStatistics.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPhyStatistics.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPhyStatistics.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPhyStatistics.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPhyStatistics.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPhyStatistics.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVendorLibraryAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVendorLibraryAttributes.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVendorLibraryAttributes.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVendorLibraryAttributes.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVendorLibraryAttributes.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetVendorLibraryAttributes.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasFreeLibrary.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasFreeLibrary.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasFreeLibrary.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasFreeLibrary.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasFreeLibrary.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasFreeLibrary.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasOpenAdapter.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasOpenAdapter.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasOpenAdapter.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasOpenAdapter.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasOpenAdapter.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasOpenAdapter.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasCloseAdapter.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasCloseAdapter.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasCloseAdapter.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasCloseAdapter.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasCloseAdapter.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasCloseAdapter.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshInformation.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshInformation.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshInformation.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshInformation.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshInformation.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshInformation.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshAdapterConfiguration.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshAdapterConfiguration.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshAdapterConfiguration.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshAdapterConfiguration.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshAdapterConfiguration.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasRefreshAdapterConfiguration.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetLUNStatistics.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetLUNStatistics.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetLUNStatistics.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetLUNStatistics.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetLUNStatistics.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetLUNStatistics.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetProtocolStatistics.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetProtocolStatistics.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetProtocolStatistics.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetProtocolStatistics.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetProtocolStatistics.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetProtocolStatistics.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasGetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSetPersistentBinding.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSendSMPPassThru.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSendSMPPassThru.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSendSMPPassThru.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSendSMPPassThru.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSendSMPPassThru.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasSendSMPPassThru.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiInquiry.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiInquiry.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiInquiry.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiInquiry.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiInquiry.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiInquiry.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReportLUNs.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReportLUNs.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReportLUNs.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReportLUNs.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReportLUNs.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReportLUNs.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReadCapacity.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReadCapacity.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReadCapacity.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReadCapacity.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReadCapacity.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/Sun_sasScsiReadCapacity.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/sun_sas.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/sun_sas.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/sun_sas.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/sun_sas.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/sun_sas.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/sun_sas.o type=OBJT);
    ld: fatal: symbol 'global_hba_head' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/log.o type=OBJT);
    ld: fatal: symbol 'open_handle_index' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/log.o type=OBJT);
    ld: fatal: symbol 'hba_count' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/log.o type=OBJT);
    ld: fatal: symbol 'log_file_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/log.o type=OBJT);
    ld: fatal: symbol 'open_handles_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/log.o type=OBJT);
    ld: fatal: symbol 'all_hbas_lock' is multiply-defined:
            (file pics/devtree_hba_disco.o type=OBJT; file pics/log.o type=OBJT);
    ld: fatal: file processing errors. No output written to libsun_sas.so.1
    collect2: error: ld returned 1 exit status

While working out where variables should be defined, it also appeared, the open_handles_lock is not initialized.

Testing done: build/install/boot

#1

Updated by Electric Monk about 2 months ago

  • Gerrit CR set to 1232
#2

Updated by Electric Monk 13 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit c1ba859699f12f01e0a0ae33b874b48f666aac62

commit  c1ba859699f12f01e0a0ae33b874b48f666aac62
Author: Toomas Soome <tsoome@me.com>
Date:   2021-03-30T20:21:10.000Z

    13518 sun_sas: multiply-defined symbols
    Reviewed by: Yuri Pankov <yuripv@yuripv.dev>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF