#1713: Error at compilation error located in grass_trunk/visualization/ximgview
---------------------------+------------------------------------------------
Reporter: pierreroudier | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: | Platform: Linux
Cpu: x86-64 |
---------------------------+------------------------------------------------
I can't compile grass7.svn on a fresh Xubuntu 12.04 install. The
compilation error is located in grass_trunk/visualization/ximgview:
roudierp@mangatainoka:/usr/local/src/grass_trunk/visualization/ximgview$
make
: && gcc -L/usr/local/src/grass_trunk/dist.x86_64-unknown-linux-gnu/lib
-L/usr/local/src/grass_trunk/dist.x86_64-unknown-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/usr/local/src/grass_trunk/dist.x86_64-unknown-linux-
gnu/lib
-o /usr/local/src/grass_trunk/dist.x86_64-unknown-linux-gnu/bin/ximgview
OBJ.x86_64-unknown-linux-gnu/color.o
OBJ.x86_64-unknown-linux-gnu/main.o -lgrass_gis.7.0.svn -L -lX11
-lm
OBJ.x86_64-unknown-linux-gnu/main.o: In function `draw':
/usr/local/src/grass_trunk/visualization/ximgview/main.c:121:
undefined reference to `XPutImage'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `main_loop':
/usr/local/src/grass_trunk/visualization/ximgview/main.c:156:
undefined reference to `XPending'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:156:
undefined reference to `XPending'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:159:
undefined reference to `XNextEvent'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `draw':
/usr/local/src/grass_trunk/visualization/ximgview/main.c:122:
undefined reference to `XSync'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `create_window':
/usr/local/src/grass_trunk/visualization/ximgview/main.c:62: undefined
reference to `XOpenDisplay'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:72: undefined
reference to `XCreateWindow'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:81: undefined
reference to `XMapWindow'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:83: undefined
reference to `XGetWindowAttributes'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:88: undefined
reference to `XSetWindowColormap'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:90: undefined
reference to `XCreateGC'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:93: undefined
reference to `XCreateImage'
/usr/local/src/grass_trunk/visualization/ximgview/main.c:99: undefined
reference to `XFlush'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `try_get_grays':
/usr/local/src/grass_trunk/visualization/ximgview/color.c:191:
undefined reference to `XAllocColor'
/usr/local/src/grass_trunk/visualization/ximgview/color.c:192:
undefined reference to `XFreeColors'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `try_get_colors':
/usr/local/src/grass_trunk/visualization/ximgview/color.c:159:
undefined reference to `XAllocColor'
/usr/local/src/grass_trunk/visualization/ximgview/color.c:160:
undefined reference to `XFreeColors'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `InitColorTableFixed':
/usr/local/src/grass_trunk/visualization/ximgview/color.c:273:
undefined reference to `XFreeColormap'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `ramp_colormap':
/usr/local/src/grass_trunk/visualization/ximgview/color.c:205:
undefined reference to `XCreateColormap'
/usr/local/src/grass_trunk/visualization/ximgview/color.c:220:
undefined reference to `XStoreColor'
collect2: ld returned 1 exit status
make: *** [/usr/local/src/grass_trunk/dist.x86_64-unknown-linux-
gnu/bin/ximgview]
Error 1
#1713: Error at compilation error located in grass_trunk/visualization/ximgview
---------------------------+------------------------------------------------
Reporter: pierreroudier | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: ximgview | Platform: Linux
Cpu: x86-64 |
---------------------------+------------------------------------------------
Comment(by glynn):
Replying to [comment:1 neteler]:
> Is this still an issue?
I believe that the underlying issue is that the AC_CONFIG_XTRA macro no
longer works reliably with modern Linux distributions.
The only modules which use X11 directly (i.e. not through wxWidgets or
OpenGL) are !r3.showdspf and ximgview. Both of these are somewhere between
"deprecated" and "obsolete".
!r3.showdspf isn't built by default, and won't compile at present as it
uses the Motif-based GLw widget, but configure (and Platform.make.in) no
longer have any support for Motif or the GLw widget. Unless someone is
actively working on porting it to e.g. wxWidgets, it should be removed.
ximgview is probably redundant due to wximgview and/or wximgview.py.
Personally, I'd suggest removing both of these. The X11 configure checks
probably need to remain for the sake of libraries which have X11 as a
dependency, as well as for the XRender surface support in the cairo
driver.
#1713: Error at compilation error located in grass_trunk/visualization/ximgview
---------------------------+------------------------------------------------
Reporter: pierreroudier | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: ximgview | Platform: Linux
Cpu: x86-64 |
---------------------------+------------------------------------------------
Comment(by pierreroudier):
Replying to [comment:1 neteler]:
> Is this still an issue?
(sorry for the delayed reply)
Yes, still an issue today on Ubuntu 12.04.2 LTS.
{{{
Finished compilation: Fri Apr 4 11:19:43 NZDT 2014
make: *** [default] Error 1
pierre@roudierp-TECRA-M10:/usr/local/src/grass7_trunk$ cd
/usr/local/src/grass7_trunk/visualization/ximgview
pierre@roudierp-
TECRA-M10:/usr/local/src/grass7_trunk/visualization/ximgview$ make
: && gcc -L/usr/local/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/lib
-L/usr/local/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/lib -Wl
,--export-dynamic -Wl,-rpath-link,/usr/local/src/grass7_trunk/dist.x86_64
-unknown-linux-gnu/lib -o /usr/local/src/grass7_trunk/dist.x86_64
-unknown-linux-gnu/bin/ximgview OBJ.x86_64-unknown-linux-gnu/color.o
OBJ.x86_64-unknown-linux-gnu/main.o -lgrass_gis.7.1.svn -L -lX11 -lm
OBJ.x86_64-unknown-linux-gnu/main.o: In function `draw':
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:121: undefined
reference to `XPutImage'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `main_loop':
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:156: undefined
reference to `XPending'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:156: undefined
reference to `XPending'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:159: undefined
reference to `XNextEvent'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `draw':
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:122: undefined
reference to `XSync'
OBJ.x86_64-unknown-linux-gnu/main.o: In function `create_window':
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:62: undefined
reference to `XOpenDisplay'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:72: undefined
reference to `XCreateWindow'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:81: undefined
reference to `XMapWindow'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:83: undefined
reference to `XGetWindowAttributes'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:88: undefined
reference to `XSetWindowColormap'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:90: undefined
reference to `XCreateGC'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:93: undefined
reference to `XCreateImage'
/usr/local/src/grass7_trunk/visualization/ximgview/main.c:99: undefined
reference to `XFlush'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `try_get_grays':
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:191: undefined
reference to `XAllocColor'
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:192: undefined
reference to `XFreeColors'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `try_get_colors':
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:159: undefined
reference to `XAllocColor'
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:160: undefined
reference to `XFreeColors'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `InitColorTableFixed':
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:273: undefined
reference to `XFreeColormap'
OBJ.x86_64-unknown-linux-gnu/color.o: In function `ramp_colormap':
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:205: undefined
reference to `XCreateColormap'
/usr/local/src/grass7_trunk/visualization/ximgview/color.c:220: undefined
reference to `XStoreColor'
collect2: ld returned 1 exit status
make: *** [/usr/local/src/grass7_trunk/dist.x86_64-unknown-linux-
gnu/bin/ximgview] Error 1
}}}