[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66393] undefined reference to `app_data'
From: |
Valerio |
Subject: |
[bug #66393] undefined reference to `app_data' |
Date: |
Thu, 31 Oct 2024 09:21:48 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?66393>
Summary: undefined reference to `app_data'
Group: DDD
Submitter: efa
Submitted: Thu 31 Oct 2024 01:21:46 PM UTC
Category: Build
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.1
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 31 Oct 2024 01:21:46 PM UTC By: Valerio <efa>
using trunk or ddd-3.4.1.tar.gz with applied the patch:
0001-Include-AppData.h-even-when-compiling-without-HAVE_A.patch
the compile step work but linking fail for 'vsl':
libtool: link: g++ -O2 -g -Wall -W -Wwrite-strings -trigraphs -o vsl vsl.o
vsl-DocSpace.o string-fun.o regexps.o darkmode.o base/assert.o base/basename.o
base/compare.o base/cook.o base/cwd.o base/glob.o base/hash.o base/home.o
base/isid.o base/rxclass.o base/sigName.o base/strclass.o base/tabs.o
base/uniquify.o base/Logger.o base/MemCheck.o base/PrintGC.o base/SignalB.o
base/TypeInfo.o base/UniqueId.o agent/Agent.o agent/AgentM.o
agent/AsyncAgent.o agent/ChunkQueue.o agent/DataLength.o agent/HandlerL.o
agent/LiterateA.o agent/ReadLineA.o agent/TimeOut.o agent/TTYAgent.o
x11/charsets.o x11/converters.o x11/events.o x11/findParent.o x11/findWindow.o
x11/fileSBF.o x11/frame.o x11/longName.o x11/selection.o x11/verify.o
x11/AutoRaise.o x11/Delay.o x11/DeleteWCB.o x11/DestroyCB.o x11/ExitCB.o
x11/InitImage.o x11/Swallower.o x11/XErrorB.o motif/freeXmST.o
motif/MakeMenu.o motif/MString.o motif/ComboBox.o motif/SpinBox.o
motif/TextSetS.o box/printBox.o box/AlignBox.o box/ArcBox.o box/BinBox.o
box/Box.o box/BoxD.o box/BoxExtend.o box/BoxPoint.o box/BoxRegion.o
box/BoxSize.o box/ColorBox.o box/CompositeB.o box/DiagBox.o box/DummyBox.o
box/FixBox.o box/FontFixBox.o box/FontTable.o box/HatBox.o box/LineBox.o
box/ListBox.o box/MarkBox.o box/MatchBox.o box/PrimitiveB.o box/SlopeBox.o
box/StringBox.o box/THatBox.o box/TagBox.o box/TrueBox.o vslsrc/ArgNode.o
vslsrc/BuiltinCN.o vslsrc/CallNode.o vslsrc/ConstNode.o vslsrc/DefCallN.o
vslsrc/DummyNode.o vslsrc/LetNode.o vslsrc/NameNode.o vslsrc/ListNode.o
vslsrc/TestNode.o vslsrc/ThemeVSLL.o vslsrc/TrueNode.o vslsrc/VSEFlags.o
vslsrc/VSLArgList.o vslsrc/VSLBuiltin.o vslsrc/VSLDef.o vslsrc/VSLDefList.o
vslsrc/VSLErr.o vslsrc/VSLLib.o vslsrc/VSLNode.o vslsrc/VSLRead.o -lXm -lXt
-lXpm -lXext -lSM -lICE -lX11 -lXft -lfontconfig -ltinfo -lm
/usr/bin/ld: motif/MakeMenu.o: warning: relocation against `app_data' in
read-only section `.text'
/usr/bin/ld: motif/MakeMenu.o: in function `MMaddItems(_WidgetRec*, MMDesc*,
bool)':
/home/vmessina/c/build/ddd/../../ddd-trunk/ddd/motif/MakeMenu.C:317: undefined
reference to `app_data'
/usr/bin/ld: x11/AutoRaise.o: in function `AutoRaiseEH(_WidgetRec*, void*,
_XEvent*, char*)':
/home/vmessina/c/build/ddd/../../ddd-trunk/ddd/x11/AutoRaise.C:88: undefined
reference to `app_data'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
Using nm I saw the missing symbol is in:
ddd$ nm --defined-only -o *.o | grep app_data
ddd.o:00000000000001e0 b _ZL16initial_app_data
resources.o:0000000000000000 B app_data
resources.o:00000000000003f8 b _ZL20app_data_initializer
Simply adding 'resources.o' to the link command solved the issue.
This seems a failed Makefile
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66393>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #66393] undefined reference to `app_data',
Valerio <=