[GRASS-dev] problem building 7.2.1RC1 for UbuntuGIS
Sebastiaan Couwenberg
sebastic at xs4all.nl
Sat Apr 8 05:06:23 PDT 2017
On 04/08/2017 12:38 PM, Martin Landa wrote:
> I am trying to solve problem with building 7.2.1RC1 for UbuntuGIS, see [1]:
>
> """
>
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/Scrt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: error: ld returned 1 exit status
> ../../include/Make/Shlib.make:10: recipe for target
> '/<<PKGBUILDDIR>>/dist.x86_64-pc-linux-gnu/lib/libgrass_datetime.7.2.1RC1.so'
> failed
> make[5]: *** [/<<PKGBUILDDIR>>/dist.x86_64-pc-linux-gnu/lib/libgrass_datetime.7.2.1RC1.so]
> Error 1
> make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib/datetime'
> """
That's for this command:
gcc -shared -o
/<<PKGBUILDDIR>>/dist.x86_64-pc-linux-gnu/lib/libgrass_datetime.7.2.1RC1.so
-L/<<PKGBUILDDIR>>/dist.x86_64-pc-linux-gnu/lib
-L/<<PKGBUILDDIR>>/dist.x86_64-pc-linux-gnu/lib -Wl,-Bsymbolic-functions
-fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--export-dynamic
-Wl,-rpath-link,/<<PKGBUILDDIR>>/dist.x86_64-pc-linux-gnu/lib
-Wl,-soname,libgrass_datetime.7.2.1RC1.so
OBJ.x86_64-pc-linux-gnu/between.o OBJ.x86_64-pc-linux-gnu/change.o
OBJ.x86_64-pc-linux-gnu/copy.o OBJ.x86_64-pc-linux-gnu/diff.o
OBJ.x86_64-pc-linux-gnu/error.o OBJ.x86_64-pc-linux-gnu/format.o
OBJ.x86_64-pc-linux-gnu/incr1.o OBJ.x86_64-pc-linux-gnu/incr2.o
OBJ.x86_64-pc-linux-gnu/incr3.o OBJ.x86_64-pc-linux-gnu/local.o
OBJ.x86_64-pc-linux-gnu/misc.o OBJ.x86_64-pc-linux-gnu/same.o
OBJ.x86_64-pc-linux-gnu/scan.o OBJ.x86_64-pc-linux-gnu/sign.o
OBJ.x86_64-pc-linux-gnu/type.o OBJ.x86_64-pc-linux-gnu/tz1.o
OBJ.x86_64-pc-linux-gnu/tz2.o OBJ.x86_64-pc-linux-gnu/values.o -lm
> Any idea by chance? Building via vagrant [2] on xenial works. Thanks, Ma
None of the objects files have a main() function, which makes sense for
a library. It may be related to PIE, you can try building without it.
You should compare the build logs for the launchpad and vagrant builds.
The differences should help you find the cause.
> [1] https://launchpadlibrarian.net/314562052/buildlog_ubuntu-xenial-amd64.grass_7.2.1~rc1-1~exp1~xenial1_BUILDING.txt.gz
> [2] https://trac.osgeo.org/grass/browser/grass/branches/releasebranch_7_2/Vagrantfile
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
More information about the grass-dev
mailing list