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

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  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):

clang: \cf4 warning: \cf2 argument unused during compilation: '-pthread' [-Wunused-command-line-argument]\

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):

ld: warning: directory not found for option '-L../../lib'
ld: warning: directory not found for option '-L../lib'

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


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.9