mainGNU Core Utilities - Support: sr #108676, coreutils 8.23 doesn't build on...

 
 

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

sr #108676: coreutils 8.23 doesn't build on static only system

Submitter:  Alan Hourihane <alanh>
Submitted:  Fri 31 Oct 2014 09:51:25 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Wed 11 Feb 2015 10:32:12 AM UTC, comment #2: 

For the archives, there's this error on powerpc-ibm-aix:
    CCLD     src/libstdbuf.so
  ld: 0711-317 ERROR: Undefined symbol: .rpl_malloc
  ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
  collect2: error: ld returned 8 exit status
  Makefile:7718: recipe for target 'src/libstdbuf.so' failed

rpl_malloc() defined in lib/malloc.c is in libcoreutils.a, but there's this comment in src/local.mk:
  # Ensure we don't link against libcoreutils.a as that lib is
  # not compiled with -fPIC which causes issues on 64 bit at least
  src_libstdbuf_so_LDADD = $(LIBINTL)

But the solution is the same: Fix configure check to detect ELF systems without false positives.

(file #33052)

Michael Haubenwallner <haubi>
Fri 31 Oct 2014 12:58:21 PM UTC, comment #1: 

It's o.k, just needed to not install stdbuf.

Can close this.

Alan Hourihane <alanh>
Fri 31 Oct 2014 09:51:25 AM UTC, original submission:  

Get this build error with coreutils 8.23 because the system doesn't have shared libraries.

  CC       src/src_libstdbuf_so-libstdbuf.o
src/libstdbuf.c:1:0: error: -fPIC is not supported on this target
Makefile:10791: recipe for target 'src/src_libstdbuf_so-libstdbuf.o' failed

I can't see any easy way to stop building libstdbuf.so

Alan Hourihane <alanh>

 

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

Attached Files
file #33052:  0001-stdbuf-build-for-ELF-systems-only-sr-108676.patch added by haubi (678B - text/x-patch - patch: Avoid false positive when checking for ELF system.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haubi (Updated the item)
  • -email is unavailable- added by alanh (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-11 haubi Attached File- Added 0001-stdbuf-build-for-ELF-systems-only-sr-108676.patch, #33052

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code