Opened 13 years ago
Closed 13 years ago
#30057 closed defect (invalid)
gawk @4.0.0 Build failure: Undefined symbols: _history_list
Reported by: | klondikemarlen@… | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | gawk |
Description (last modified by mf2k (Frank Schima))
When I run:
%% sudo port -d install gawk
I get
... Undefined symbols: "_history_list", referenced from: _do_save in debug.o _serialize in debug.o ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [dgawk] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/work/gawk-4.0.0" && /usr/bin/make -j2 all " returned error 2 ...
I am using:
OS darwin/10.8.0 (Mac OS X 10.6) arch i386
The full log is attached.
Attachments (1)
Change History (7)
Changed 13 years ago by klondikemarlen@…
Attachment: | gawk_build_failure.log added |
---|
comment:2 Changed 13 years ago by mf2k (Frank Schima)
Cc: | klondikemarlen@… removed |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to mschamschula@… |
Port: | @4.0.0 removed |
comment:3 follow-up: 4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Summary: | gawk @4.0.0 Build failure → gawk @4.0.0 Build failure: Undefined symbols: _history_list |
gawk builds fine for me. The error in your log is:
:info:build Undefined symbols: :info:build "_history_list", referenced from: :info:build _do_save in debug.o :info:build _serialize in debug.o :info:build ld: symbol(s) not found
_history_list should be in your readline library, so I suspect either a problem with your MacPorts readline installation, or a rogue readline installation somewhere outside of MacPorts, for example in /usr/local/lib or /sw/lib.
comment:4 Changed 13 years ago by klondikemarlen@…
I found and removed three file from /usr/local/lib with names beginning with: libreadline*. Gawk @4.0.0 still fails to build. I will try and install/uninstall readline through MacPorts and see if that helps.
comment:5 Changed 13 years ago by klondikemarlen@…
I ran:
sudo port install readline +universal
then:
sudo port -d install gawk
Gawk now works perfectly. Thanks a lot.
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Great, glad you got it working. If you have anything else in /usr/local you should consider removing it as well; it might interfere with other MacPorts ports.
Debug log