Ticket #7 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

libgda-4.1.4-1.fc13.src.rpm, armv5tel

Reported by: aparda Owned by: devos
Priority: minor Milestone: F13-ARM
Component: component1 Version:
Keywords: Cc:
Blocked By: Blocking:

Description

BuildError?: error building package (arch armv5tel), mock exited with status 10; see root.log for more information http://arm.koji.fedoraproject.org/koji/getfile?taskID=67639&name=root.log&offset=-4000

Attachments

fix_libm.patch (683 bytes) - added by devos 3 years ago.
changes in the spec for libgda-4.1.6-1.fc13.fix_libm.src.rpm

Change History

comment:1 Changed 3 years ago by devos

the full error in the build.log is the following:

  CC     main.o
gcc -DPACKAGE_NAME=\"GNU\ Data\ Access\" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"4.1.6\" -DPACKAGE_STRING=\"GNU\ Data\ Access\ 4.1.6\" -DPACKAGE_BUGREPORT=\"gnome-db-list@gnome.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/libgda/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GDU=1 -DGETTEXT_PACKAGE=\"libgda-4.0\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_UI=1 -DHAVE_GTKSOURCEVIEW=1 -DHAVE_GOOCANVAS=1 -DHAVE_GRAPHVIZ=1 -DHAVE_UNIQUE=1 -DISO_CODES_PREFIX=\"\" -DHAVE_MYSQL=1 -DHAVE_POSTGRES=1 -DHAVE_MDB=1 -DMDB_WITH_WRITE_SUPPORT=1 -DMDB_BIND_COLUMN_FOUR_ARGS=1 -DHAVE_JAVA=1 -DHAVE_LIBSOUP=1 -DHAVE_READLINE=1 -DHAVE_HISTORY=1 -I.  -I../.. -I../../libgda -I../../libgda/sqlite -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DLIBGDA_ABI_NAME=\"libgda-4.0\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread -I/usr/include/gtksourceview-2.0 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DDATADIR=\""/usr/share"\" -DLIBDIR=\""/usr/lib"\"   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -march=armv5te -c main.c
  CCLD   gda-browser-4.0
/usr/bin/ld: ../../tools/browser/canvas/.libs/libcanvas.a(browser-canvas-utility.o): undefined reference to symbol 'sqrt@@GLIBC_2.4'
/usr/bin/ld: note: 'sqrt@@GLIBC_2.4' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

comment:2 Changed 3 years ago by devos

https://fedoraproject.org/wiki/UnderstandingDSOLinkChange explains a little about a possible cause.

Adding 'export LDFLAGS="$LDFLAGS -lm"' in just before %configure might fix this:

A better solution would probably be to update configure.in with something like:

  • AC_CHECK_LIB(m, sqrt)

Changed 3 years ago by devos

changes in the spec for libgda-4.1.6-1.fc13.fix_libm.src.rpm

comment:3 Changed 3 years ago by devos

  • Owner changed from somebody to devos
  • Status changed from new to assigned

Filed Bug 682515 - libgda-4.1.4-1.fc13.src.rpm does not rebuild on Fedora 13 for ARM

comment:4 Changed 3 years ago by aparda

  • Resolution set to fixed
  • Status changed from assigned to closed

Build Successful, after spec file changes. http://arm.koji.fedoraproject.org/koji/buildinfo?buildID=14668

Note: See TracTickets for help on using tickets.