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

 
 

bug #48000: Static linking of GNU time fails

Submitted by:  Thomas Petazzoni <tpetazzoni>
Submitted on:  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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

    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