Modify

Opened 5 years ago

Last modified 3 years ago

#12617 new defect

checklist.o: undefined reference to symbol 'acs_map'

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc:

Description

I'm trying to do a fresh compile on an amazon linux server. its a 64 it red hat derivative.

I get the following error:

~/OpenWrt/trunk$ make V=99 menuconfig
make[1]: Entering directory `/home/ec2-user/OpenWrt/trunk/scripts/config'
make[2]: Entering directory `/home/ec2-user/OpenWrt/trunk/scripts/config/lxdialog'
/usr/bin/ld: checklist.o: undefined reference to symbol 'acs_map'
/usr/bin/ld: note: 'acs_map' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: * [lxdialog] Error 1
make[2]: Leaving directory `/home/ec2-user/OpenWrt/trunk/scripts/config/lxdialog'
make[1]:
* [lxdialog/lxdialog] Error 2
make[1]: Leaving directory `/home/ec2-user/OpenWrt/trunk/scripts/config'
make: * [scripts/config/mconf] Error 2

I found this but don't really know what to make of it, or if there are going to be more issues following (I'm just trying to do a initial make menuconfig).

http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

Everything works fine on my 32bit ubuntu system and I can easily switch that out for my aws instance. Just thought someone here might know of a work-around, or maybe consider some more explicit linking.

Thanks

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by fabriziobertocci

I had the same problem trying to build backfire on an AWS AMI (Amazon's own Redhat-derived distro).

I have solved simply by changing the following file scripts/config/lxdialog/Makefile and simply add -ltinfo to the link command:

lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
        $(CC) -o $@ $^ $(LIBS) -ltinfo

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 3 years ago by anonymous

compile error PCLinuxOS 32bit

[pc@localhost barrier_breaker]$ make menuconfig V=s
Checking 'non-root'... ok.
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'perl'... ok.
Checking '/usr/bin/python2.7'... ok.
Checking 'wget'... ok.
Checking 'git'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'openssl'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'file'... ok.
make[1]: Entering directory '/Datadisk/comp_alix/barrier_breaker/scripts/config'
/usr/bin/ld: lxdialog/checklist.o: undefined reference to symbol 'acs_map'
/lib/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:32: recipe for target 'mconf' failed
make[1]: * [mconf] Error 1
make[1]: Leaving directory '/Datadisk/comp_alix/barrier_breaker/scripts/config'
/Datadisk/comp_alix/barrier_breaker/include/toplevel.mk:86: recipe for target 'scripts/config/mconf' failed
make:
* [scripts/config/mconf] Error 2

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.