Ø As
Bob pointed out you have an empty include path in your build. The last -I option there was eating up the -MM which
explains the error message, so one of your extensions config variables was probably empty.
I solved that. I was missing this file that needs to define X11_LIB and MOTIF_LIB:
extensions/configure/os/CONFIG_SITE.linux-x86_64-ub18.linux-x86_64-ub18
However, now I get this error:
-lANLwidgets -lPrintUtils -lca -lCom -lXm -lXt -lXp -lXmu -lX11 -lXext -lpthread -lreadline -lm -lrt -ldl -lgcc
/usr/bin/ld: cannot find -lXp
collect2: error: ld returned 1 exit status
/corvette/usr/local/epics/base/configure/RULES_BUILD:212: recipe for target 'medm' failed
I have Googled to see what package provides libXp.so on Ubuntu 18, and I can’t find it. Others have the same problem.
Pete and Bob how did you install libXp.so?
Mark
That PR builds OK on Centos 7, but it fails to build on Ubuntu 18. I see the same failure on Ubuntu 18 with the MEDM_3_1_14 tag.
TahoeU18:/corvette/usr/local/epics/extensions_new/src/medm_fix> make
make -C ./printUtils install
make[1]: Entering directory '/corvette/usr/local/epics/extensions_new/src/medm_fix/printUtils'
make -C O.linux-x86_64-ub18 -f ../Makefile TOP=../../../.. \
T_A=linux-x86_64-ub18 install
make[2]: Entering directory '/corvette/usr/local/epics/extensions_new/src/medm_fix/printUtils/O.linux-x86_64-ub18'
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -Wall -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../../include/compiler/gcc -I../../../../include/os/Linux -I../../../../include
-I/corvette/usr/local/epics/base/include/compiler/gcc -I/corvette/usr/local/epics/base/include/os/Linux -I/corvette/usr/local/epics/base/include -I../../../../include -I -MM -MF xwd2ps.d ../xwd2ps.c
cc1: error: to generate dependencies you must specify either -M or -MM
As Bob pointed out you have an empty include path in your build. The last -I option there was eating up the -MM which
explains the error message, so one of your extensions config variables was probably empty.
Complexity comes for free, simplicity you have to work for.