compile with make SHELL=/usr/local/bin/bash YACC="bison -y" LEX="flex -l" LIBS=" -lnetcdf -lz -ldl -lg++ -lpthread -lSM -lICE -lgen -L/usr/openwin/lib -L/usr/openwin/lib -ldga -lXmu -lsocket -lnsl " all In file dx-4.0/include/dxconfig.h added #define MAXHOSTNAMELEN 256 taken from /usr/include/?. ================================================================ We get the error make[3]: Entering directory `/a/chamberlin-1/export/home/0065/ftp/u/ma/hohn/linux/opendx/dx-4.0/src/exec/dxexec' gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../dpexec -Dsolaris -g -O2 -I/usr/openwin/include -c main.c gcc -g -O2 -I/usr/openwin/include -o dxexec main.o ../dpexec/libDPEXEC.a ../dxmods/libDXMODS.a ../libdx/libLIBDX.a ../hwrender/libHW.a ../hwrender/opengl/libOPENGL.a -L/usr/X11R6/lib -L/usr/local/lib -lm -lGL -lX11 -lXext -lnetcdf -lz -ldl -lg++ -lpthread -lSM -lICE -lgen -L/usr/openwin/lib -L/usr/openwin/lib -ldga -lXmu Undefined first referenced symbol in file socket ../dpexec/libDPEXEC.a(socket.o) (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) Adding -lsocket gets around this. ================================================================ Similarly in directory `/a/chamberlin-1/export/home/0065/ftp/u/ma/hohn/linux/opendx/dx-4.0/src/ui++/dxui' Adding -lsocket -lnsl to LIBS (in src/ui++/dxui/Makefile) to yield LIBS = -lnetcdf -lz -ldl -lg++ -lpthread -lSM -lICE -lgen -L/usr/openwin/lib -L/usr/openwin/lib -ldga -lXmu fixes one part of the problem. Mixed use of lex and bison causes references to missing yyrestart(); in particular, there is the warning Network.C:5703: warning: implicit declaration of function `int yyrestart(...)' switching to flex causes missing references to yylineno. Switching to flex/bison in the make invocation fixed that. ================================================================ In src/ui++/prompter, again need -lsocket -lnsl