Current-Users archive

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

Re: link problems



In article <524F0C98.4030603%netbsd.org@localhost>,
Frank Kardel  <kardel%netbsd.org@localhost> wrote:
>When bulk building pkgsrc 2013Q3 on -current as of 2013-10-03 I see quit 
>a few link failures like
>
>2013/10/04 18:35:10  1126/11478= 9.8% editors/ce @ x86_64> gcc 
>-L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -O2 -I/usr/include   -o ce 
>basic.o bind.o buffer.o cinfo.o complete.o dir.o  file.o fileio.o fio.o 
>func.o help.o key.o line.o ml.o  paragraph.o paren.o random.o regexp.o 
>region.o rsearch.o  search.o window.o word.o misc.o bug.o cmode.o  
>spawn.o tty.o ttyio.o display.o main.o version.o vers.o -lcurses
>2013/10/04 18:35:10  1126/11478= 9.8% editors/ce @ x86_64> ld: tty.o: 
>undefined reference to symbol 'tgoto'
>2013/10/04 18:35:10  1126/11478= 9.8% editors/ce @ x86_64> ld: note: 
>'tgoto' is defined in DSO /usr/lib/libterminfo.so.1 so try adding it to 
>the linker command line
>2013/10/04 18:35:10  1126/11478= 9.8% editors/ce @ x86_64> 
>/usr/lib/libterminfo.so.1: could not read symbols: Invalid operation
>2013/10/04 18:35:10  1126/11478= 9.8% editors/ce @ x86_64> *** Error code 1
>
>Could this be caused by the new binutils now requiring the DT_NEEDED 
>libraries be explicitly listed at compile time? - this seems to cause 
>many packages to fail.

Does adding: --no-copy-dt-needed-entries to the link line fix the problem
for you? Perhaps we should consider making this the default again...

http://sourceware.org/ml/binutils/2011-08/msg00131.html

christos



Home | Main Index | Thread Index | Old Index