This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191326

Summary: IDE confuses intel-Linux and intelSolaris binaries
Product: cnd Reporter: Thomas Preisler <thp>
Component: -- Other --Assignee: issues@cnd <issues>
Status: REOPENED ---    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Thomas Preisler 2010-10-25 20:50:14 UTC
From CR 6994038:

At some point some feature of the IDE that automatically searches for
binaries kicked in and chose a binary to populate BuildResult or something
Then when we ran or debugged that project the run failed. 
It turned out to be because the IDE search machinery could not
differentiate between an intel-Solaris and a intel-Linux binary.
In fact the ELF header looks identical for these two.
We needed to solve a similar problem in dbx (see CR 6988833)
and for now will look at the ".interp" section to
distinguish solaris from Linux binaries.
Comment 1 Thomas Preisler 2010-10-29 19:48:10 UTC
Decided to keep the CR open. Will close this one.
Comment 2 Vladimir Voskresensky 2010-11-02 20:41:15 UTC
*** Bug 191576 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Simon 2014-07-30 10:08:12 UTC
Filtration by platform of binary files results in performance problem especially for remote file system (because it requires reading more than 16 first bytes of binary file).
Possible solution is verifying selected file in
org.netbeans.modules.cnd.makeproject.ui.SelectExecutablePanel.
To do this IDE need a way to differ *NIX platform and *NIX binary.