Opened 9 years ago

Closed 2 years ago

#1713 closed defect (wontfix)

Error at compilation error located in grass_trunk/visualization/ximgview

Reported by: pierreroudier Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: Compiling Version: svn-trunk
Keywords: ximgview Cc:
CPU: x86-64 Platform: Linux

Description

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

More details in this thread: http://osgeo-org.1560.n6.nabble.com/Problem-compiling-ximgview-in-the-latest-grass-trunk-td4987855.html

Change History (7)

comment:1 Changed 7 years ago by neteler

Keywords: ximgview added

Is this still an issue?

comment:2 in reply to:  1 Changed 7 years ago by glynn

Replying to 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.

comment:3 in reply to:  1 Changed 7 years ago by pierreroudier

Replying to 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

comment:4 Changed 5 years ago by martinl

Milestone: 7.0.07.0.5

comment:5 Changed 5 years ago by neteler

Milestone: 7.0.57.0.6

comment:6 Changed 3 years ago by neteler

Milestone: 7.0.67.0.7

comment:7 Changed 2 years ago by martinl

Resolution: wontfix
Status: newclosed

No activity.

Note: See TracTickets for help on using tickets.