bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #50260] Link failed caused by bad linker option -R


From: Yousong Zhou
Subject: [Bug-wget] [bug #50260] Link failed caused by bad linker option -R
Date: Wed, 8 Feb 2017 22:14:17 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?50260>

                 Summary: Link failed caused by bad linker option -R
                 Project: GNU Wget
            Submitted by: yousong
            Submitted on: Thu 09 Feb 2017 03:14:16 AM UTC
                Category: Build/Install
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.19
        Operating System: GNU/Linux
         Reproducibility: Every Time
           Fixed Release: None
         Planned Release: None
              Regression: Yes
           Work Required: None
          Patch Included: None

    _______________________________________________________

Details:

With 1.19


gcc  -I/home/yousong/.usr/include   -I/home/yousong/.usr/include  
-DHAVE_LIBSSL -I/home/yousong/.usr/include   -DNDEBUG -isystem
/home/yousong/.usr/include  -L/home/yousong/.usr/lib
-Wl,-rpath,/home/yousong/.usr/lib -L/home/yousong/.usr/lib64
-Wl,-rpath,/home/yousong/.usr/lib64 -o wget connect.o convert.o cookies.o
ftp.o css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o hsts.o html-parse.o
html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o
res.o retr.o spider.o url.o warc.o xattr.o utils.o exits.o build_info.o  
version.o ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a     -lrt    
-L/home/yousong/.usr/lib -liconv -R/home/yousong/.usr/lib    
-L/home/yousong/.usr/lib -lpcre   -luuid -L/home/yousong/.usr/lib -lssl
-lcrypto   -L/home/yousong/.usr/lib -lz
gcc: error: unrecognized option '-R'


With 1.18


gcc  -I/home/yousong/.usr/include   -I/home/yousong/.usr/include  
-DHAVE_LIBSSL -I/home/yousong/.usr/include   -DNDEBUG -isystem
/home/yousong/.usr/include  -L/home/yousong/.usr/lib
-Wl,-rpath,/home/yousong/.usr/lib -L/home/yousong/.usr/lib64
-Wl,-rpath,/home/yousong/.usr/lib64 -o wget connect.o convert.o cookies.o
ftp.o css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o hsts.o html-parse.o
html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o
res.o retr.o spider.o url.o warc.o utils.o exits.o build_info.o   version.o
ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
/home/yousong/.usr/lib/libiconv.so -Wl,-rpath -Wl,/home/yousong/.usr/lib 
-L/home/yousong/.usr/lib -lpcre   -luuid -L/home/yousong/.usr/lib -lssl
-lcrypto   -L/home/yousong/.usr/lib -lz    -lrt


The problem is that I build my own copy of wget and its dependencies and
install them into a non-standard location.  The build system of wget
incorrectly thought that libtool was used and specified the library location
with -R which gcc did not understand and erred.

The script I am using is available at
https://github.com/yousong/build-scripts/blob/master/build-wget.sh




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50260>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]