[gnome-db] MeeGo builds



Hi!

I try to create libgda 4.2.2 rpm for MeeGo, but found some build issues.
Problems are not related to GDA itself, but maybe anyone can provide some hint.

libtool: link: cannot find the library `libgda-4.0.la' or unhandled  argument `libgda-4.0.la'
Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 38, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/usr/lib/python2.6/site-packages/giscanner/scannermain.py", line  330, in scanner_main
    glibtransformer.get_get_type_functions())
  File "/usr/lib/python2.6/site-packages/giscanner/dumper.py", line 246,  in compile_introspection_binary
    return dc.run()
  File "/usr/lib/python2.6/site-packages/giscanner/dumper.py", line 132,  in run
    self._link(bin_path, o_path)
  File "/usr/lib/python2.6/site-packages/giscanner/dumper.py", line 241,  in _link
    subprocess.check_call(args)
  File "/usr/lib/python2.6/subprocess.py", line 488, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/sh', '../libtool',  '--mode=link', '--tag=CC', '--silent', 'gcc', '-o',  '/home/abuild/rpmbuild/BUILD/libgda-4.2.2/libgda/tmp-introspectfNWedH/Gda-4.0',  '-O2', '-g', '-pipe', '-Wall', '-Wp,-D_FORTIFY_SOURCE=2',  '-fexceptions', '-fstack-protector', '--param=ssp-buffer-size=4',  '-Wformat', '-Wformat-security', '-m32', '-march=core2', '-mssse3',  '-mtune=atom', '-mfpmath=sse', '-fasynchronous-unwind-tables',  '-fno-omit-frame-pointer', '-L.', '-Wl,--export-dynamic', '-pthread',  '-lgirepository-1.0', '-lgobject-2.0', '-lgmodule-2.0', '-lffi',  '-lgthread-2.0', '-lrt', '-lglib-2.0', 'libgda-4.0.la', '-pthread',  '-Wl,--export-dynamic', '-lgio-2.0', '-lgirepository-1.0',  '-lgobject-2.0', '-lgmodule-2.0', '-lffi', '-lgthread-2.0', '-lrt',  '-lglib-2.0',  '/home/abuild/rpmbuild/BUILD/libgda-4.2.2/libgda/tmp-introspectfNWedH/Gda-4.0.o']'  returned non-zero exit status 1

It looks, like giscanner can not find libgda-4.0.la.

The spec file (copied originally from fedora):
https://github.com/piotras/pkgs/blob/master/libgda/meego/libgda.spec

There's workaround for this issue, it seems:

%configure $CONFIG
# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
# workaround to fix linking failure for GI
export LD_LIBRARY_PATH=`pwd`/libgda/.libs:`pwd`/libgda-report/.libs:`pwd`/libgda-ui/.libs
make %{?_smp_mflags}

But, clearly, it doesn't work like expected.

I do not have access to the system which builds packages (it's OBS), so all I have is build log only.

Any suggestion appreciated!

Piotras


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]