I've had some adventures trying to get OpenDX 4.2 to compile on our
Compaq Tru64 Unix machines here. First, there were several errors of
the type:
ColorMapEditor.c: In function `SetValues':
ColorMapEditor.c:889: `dx_l' undeclared (first use in this function)
For the record, I fixed each of these by adding as the first line of
the function in which the error occured the following:
XtArgVal dx_l;
Now, it mostly compiles, but make eventually gets to an error I can't
figure out how to fix, although i've seen some references to it on
this list. The error occurs while executing the command
g++ -g -O2 -I/usr/local/tools/gnu/Mesa3D/4.0.3/include -o dxui
ColormapDefinition.o ColormapNode.o (lots of objects ommited for
brevity, see below for full command)
The error is (after LOTS of warnings about duplicate symbols):
Unresolved:
yylineno
collect2: ld returned 1 exit status
*** Exit 1
In reference to earlier threads about this being caused by yacc or
bison, I don't think I have yacc and bison installed, but since I
don't know how to use either I'll just explain this way:
gps01{rcook}104: which yacc
/usr/bin/yacc
gps01{rcook}105: which bison
bison: Command not found.
How can I fix this error, please? Can I just replace
extern int yylineno;
with
int yylineno;
everywhere it occurs in source files? This seems a dangerous approach. :-)
Thanks for any help.
-------------------------------------------
Note: The full compiler command was
g++ -g -O2 -I/usr/local/tools/gnu/Mesa3D/4.0.3/include -o dxui
ColormapDefinition.o ColormapNode.o ComputeDefinition.o
ComputeNode.o DXLInputDefinition.o DXLI
nputNode.o DXLOutputDefinition.o DXLOutputNode.o DeleteNodeCommand.o
DialInteractor.o DisplayDefinition.o DisplayNode.o
DrivenDefinition.o DrivenNode.o EchoDef
inition.o EchoNode.o FileSelectorDefinition.o
FileSelectorInteractor.o FileSelectorNode.o GlobalLocalDefinition.o
GlobalLocalNode.o ImageDefinition.o ImageNode.
o Interactor.o InteractorDefinition.o InteractorNode.o
MacroDefinition.o MacroNode.o MacroParameterDefinition.o
MacroParameterNode.o ModuleMessagingNode.o Node
.o NodeDefinition.o NodeList.o NondrivenInteractorNode.o
ParameterDefinition.o PickDefinition.o PickNode.o PrintDefinition.o
PrintNode.o ProbeDefinition.o Probe
Node.o ReceiverDefinition.o ReceiverNode.o ResetDefinition.o
ResetNode.o ScalarDefinition.o ScalarInteractor.o
ScalarListDefinition.o ScalarListInteractor.o Sc
alarListNode.o ScalarNode.o SelectionNode.o SelectorDefinition.o
SelectorInteractor.o SelectorListDefinition.o
SelectorListInteractor.o SelectorListNode.o Selec
torListToggleInteractor.o SelectorNode.o SelectorRadioInteractor.o
SequencerDefinition.o SequencerNode.o ShadowedOutputNode.o
SliderInteractor.o StepperInteract
or.o StreaklineDefinition.o StreaklineNode.o ToggleDefinition.o
ToggleInteractor.o ToggleNode.o ToggleToggleInteractor.o
TransmitterDefinition.o TransmitterNod
e.o UniqueNameNode.o ValueDefinition.o ValueInteractor.o
ValueListDefinition.o ValueListInteractor.o ValueListNode.o
ValueNode.o VectorDefinition.o VectorListD
efinition.o AccessNetworkPanelsCommand.o ColormapEditCommand.o
ColormapFileCommand.o ConfirmedExitCommand.o ConfirmedQuitCommand.o
DisconnectFromServerCommand.o
ExecCommandDialog.o ImageApproxCommand.o ImageConstraintCommand.o
ImageFormatCommand.o ImageHardwareCommand.o ImageLookCommand.o
ImagePerspectiveCommand.o Ima
geRedoCommand.o ImageResetCommand.o ImageSetModeCommand.o
ImageSetViewCommand.o ImageSoftwareCommand.o ImageUndoCommand.o
NewCommand.o NoUndoAnchorCommand.o No
UndoDXAppCommand.o NoUndoDXWindowCommand.o NoUndoEditorCommand.o
NoUndoImageCommand.o NoUndoJavaNetCommand.o NoUndoNetworkCommand.o
NoUndoPanelCommand.o OpenCom
mand.o SaveMacroCommand.o ToolPanelCommand.o
ViewControlWhichCameraCommand.o Main.o ../dxuilib/libDXUI.a
../base/libBASE.a ../widgets/libWIDGETS.a -
lnetcdf -lXpm -ltiff -lg++ -lXm -lXp -lGLU -lGL -lm -lXext -lXt -lX11
-lSM -lICE -L/usr/local/tools/gnu/Mesa3D/4.0.3/lib/
--
Richard Cook
Lawrence Livermore National Laboratory
Bldg-451 Rm-2043, Mail Stop L-561
7000 East Avenue, Livermore, CA, 94550, USA
phone (925) 423-9605 (work) fax (925) 423-8704
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)