bugGNU Time - Bugs: bug #48000, Static linking of GNU time fails

 
 

bug #48000: Static linking of GNU time fails

Submitter:  Thomas Petazzoni <tpetazzoni>
Submitted:  Tue 24 May 2016 06:04:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 May 2016 06:04:43 PM UTC, original submission:  

Due to the error.c code, apparently imported from gnulib, GNU Time cannot be statically linked, as you get redefined symbols for error() and error_at_line():

/home/thomas/projets/buildroot/output/host/usr/bin/arm-linux-gcc -static -o time time.o getopt.o getopt1.o error.o resuse.o version.o 
/home/thomas/projets/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(error.os): In function `error':
error.c:(.text+0x0): multiple definition of `error'
error.o:error.c:(.text+0x0): first defined here
/home/thomas/projets/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(error.os): In function `error_at_line':
error.c:(.text+0x138): multiple definition of `error_at_line'
error.o:error.c:(.text+0x120): first defined here
collect2: error: ld returned 1 exit status

Thomas Petazzoni <tpetazzoni>

 

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

Attach Files:
   
   
Comment:
   

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 tpetazzoni (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.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code