bugGNU Astronomy Utilities - Bugs: bug #52674, Correcting extra linking warnings...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #52674: Correcting extra linking warnings during compilation

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Fri 15 Dec 2017 04:55:48 PM UTC  
 
Category:  Installation Severity:  3 - Normal
Item Group:  Addition(s) Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Fri 15 Dec 2017 04:55:48 PM UTC, original submission:

When linking the libraries, currently Gnuastro uses the `-pthread' option two times! This can lead to the following linking warning on some systems (this is from Mac OS X):

Another strange source of linker warning is that the two directories `../lib' and `../../lib' are used with `-L' for both programs and the library. However, only the first is necessary for the library and the second is necessary for the programs. On the system above, we get this linker warning (first when finalizing the libraries, the second after each program):

I can't figure out why it is doing this!?! In `configure.ac', we only add `$(top_builddir)/lib' to `LDFLAGS'!

It would be cleaner if we correct these warnings.

In particular, the second one may be a security issue: Since when building the libraries, it will first look into `../../lib' (outside of Gnuastro) and someone can put a bad library there to link against.

Mohammad Akhlaghi <makhlaghi>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3