[Xastir] More Kubuntu 13 map problems

Curt, WE7U curt.we7u at gmail.com
Tue Jun 25 12:31:01 EDT 2013


On Mon, 24 Jun 2013, Jim Shorney wrote:

> gcc  -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter -pthread -Wl,--no-keep-memory -L/usr/lib -fPIE -pie -Wl,-z,relro -Wl,-z,now -L/usr/lib/X11 -L/usr/local/lib -lgdal -o xastir alert.o awk.o bulletin_gui.o color.o datum.o db.o db_gis.o dbfawk.o draw_symbols.o fcc_data.o festival.o fetch_remote.o geo-find.o geocoder_gui.o gps.o hashtable.o hashtable_itr.o hostname.o igate.o interface.o interface_gui.o io-common.o io-mmap.o lang.o list_gui.o locate_gui.o location.o location_gui.o main.o maps.o map_cache.o map_dos.o map_gdal.o map_geo.o map_gnis.o map_OSM.o map_pop.o map_pdb.o map_shp.o map_tif.o map_tiger.o map_WMS.o messages.o messages_gui.o objects.o popup_gui.o rac_data.o rotated.o rpl_malloc.o shp_hash.o snprintf.o sound.o tile_mgmnt.o track_gui.o util.o view_message_gui.o wx.o wx_gui.o x_spider.o xa_config.o compiledate.o -Lrtree -lrtree  -lXm -lXt -lX11 -lGraphicsMagick -ljbig -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lwmflite -lXext -lSM -lICE
  -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread -ldb-5.1 -lrt -lXm -lXt -lXp -lXext -lm -lSM -lICE -lX11 -lcurl -lproj -lshp -lpcre -ltiff -lgeotiff -lax25 -lgdal

That last looks to be the final link line for the "xastir" executable.


> /usr/bin/ld: alert.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

A guess is that one or more libraries may not be compiled properly.

Doing a Google search like this:

     "can not be used when making a shared object; recompile with -fPIC" -python

I added the "-python" 'cuz I was getting too many Python hits.  Most hits seem to say that "-shared" is not enough anymore and that "-fPIC" has to be added to the compile (a newer requirement).  Now whether that needs to be added to the Xastir compile is the question...

Since I'm not seeing it on any other compiles, I suspect it may be a problem with a library on Kubuntu that wasn't compiled with the "-fPIC" compiler option.  Of course I could be wrong and it may be something new that we need to add to the Xastir compile or to some of the libraries that get compiled and then linked with Xastir.  I did a grep for "rodata" and it appears in pretty much every ".o" file we have.

Found this at "http://ubuntuforums.org/showthread.php?t=786095&page=110":

"According to the Gentoo Wiki at least, on AMD64 all shared builds must be position independent, meaning they have to use the --enable-pic option (or equivalent, since parameters can differ)."

Perhaps adding "-fPIC" or "-enable-pic" to the proper place in the Makefiles will get you a successful compile.  Look for "CFLAGS".  Perhaps Tom has a better idea about this and/or where to add options instead of having to add them through the whole tree.

-- 
Curt, WE7U.        http://wetnet.net/~we7u
U.S. Weather Alerts:  Firenet.aprs2.net, port 14580, filter "t/n e/WE7U-WX"


More information about the Xastir mailing list