64bit compatibility issues

Bug #742760 reported by nmarques
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xchat-indicator (Ubuntu)
Fix Released
Undecided
Ken VanDine

Bug Description

Binary package hint: xchat-indicator

While building this package for openSUSE a small issue poped out, see the log:

Starting SuSEconfig, the SuSE Configuration Tool...
Running in full featured mode.
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.glib2...
Executing /sbin/conf.d/SuSEconfig.groff...
Installing new /etc/papersize
Executing /sbin/conf.d/SuSEconfig.permissions...
no permissions will be changed if not called explicitly
Finished.
-----------------------------------------------------------------
I have the following modifications for xchat-indicator.spec:
-----------------------------------------------------------------
----- building xchat-indicator.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --eval %suse_insert_debug_package /usr/src/packages/SOURCES/xchat-indicator.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xVbju2
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf xchat-indicator-0.3.8
+ /bin/tar -xf -
+ /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/xchat-indicator-0.3.8.tar.bz2
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd xchat-indicator-0.3.8
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PxXWWC
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64
++ dirname /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64
+ cd xchat-indicator-0.3.8
+ CFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
+ export CFLAGS
+ CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
+ export CXXFLAGS
+ FFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-static
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking dependency style of gcc -std=gnu99... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for x86_64-unknown-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-unknown-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for glib-genmarshal... /usr/bin/glib-genmarshal
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for memrchr... yes
checking for strtoull... yes
checking for atoll... yes
checking for x86_64-unknown-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPENDENCIES... yes
checking for UNITY... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

xchat-indicator 0.3.8

prefix................. : /usr
libunity............... : yes
+ make -j2
make all-am
make[1]: Entering directory `/usr/src/packages/BUILD/xchat-indicator-0.3.8'
  CC indicator_la-indicator.lo
indicator.c: In function 'add_indicator':
indicator.c:162:18: warning: initialization discards qualifiers from pointer target type
indicator.c:176:7: warning: assignment makes pointer from integer without a cast
indicator.c: In function 'focus_tab_cb':
indicator.c:265:10: warning: assignment discards qualifiers from pointer target type
indicator.c: In function 'focus_win_cb':
indicator.c:286:17: warning: assignment discards qualifiers from pointer target type
indicator.c: At top level:
indicator.c:52:20: warning: 'ch_nick' defined but not used
indicator.c:54:19: warning: 'win' defined but not used
indicator.c:106:1: warning: 'hide_indicator' defined but not used
  CCLD indicator.la
make[1]: Leaving directory `/usr/src/packages/BUILD/xchat-indicator-0.3.8'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Kh59Iu
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd xchat-indicator-0.3.8
+ make install DESTDIR=/usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64
make[1]: Entering directory `/usr/src/packages/BUILD/xchat-indicator-0.3.8'
make[1]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib64/xchat-gnome/plugins" || /bin/mkdir -p "/usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins"
 /bin/sh ./libtool --mode=install /usr/bin/install -c indicator.la '/usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins'
libtool: install: /usr/bin/install -c .libs/indicator.so /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins/indicator.so
libtool: install: /usr/bin/install -c .libs/indicator.lai /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins/indicator.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64/xchat-gnome/plugins'
make[1]: Leaving directory `/usr/src/packages/BUILD/xchat-indicator-0.3.8'
+ /bin/mkdir -p /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/share/indicators/messages/applications
+ echo /usr/share/applications/xchat.desktop
+ echo /usr/share/applications/xchat-gnome.desktop
+ /bin/mkdir -p /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat/plugins/
+ /bin/cp /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins/indicator.so /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat/plugins/indicator.so
+ find /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64 -name '*.la' -type f -delete -print
/usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins/indicator.la
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/packages/BUILD/xchat-indicator-0.3.8
extracting debug info from /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat-gnome/plugins/indicator.so
extracting debug info from /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/lib64/xchat/plugins/indicator.so
*** WARNING: identical binaries are copied, not linked:
        /usr/lib64/xchat/plugins/indicator.so
   and /usr/lib64/xchat-gnome/plugins/indicator.so
44 blocks
+ /usr/lib/rpm/brp-lib64-linux
<email address hidden>: if you find problems with this script, drop me a note
+ /usr/lib/rpm/brp-permissions
setting / to root:root 0755. (wrong owner/group abuild:abuild)
setting /usr/ to root:root 0755. (wrong owner/group abuild:abuild)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-debug
+ /usr/lib/rpm/brp-check-la
+ /usr/lib/rpm/brp-symlink
+ /usr/lib/rpm/brp-desktop
WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
+ /usr/lib/rpm/brp-rpath
+ /usr/lib/rpm/brp-pie
+ /usr/lib/rpm/brp-rootfs
+ /usr/lib/rpm/brp-tcl
+ /usr/lib/rpm/brp-check-python
+ /usr/lib/rpm/brp-boot-scripts
+ /usr/lib/rpm/brp-hook
Processing files: xchat-indicator-0.3.8-1.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.L40hKq
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd xchat-indicator-0.3.8
+ DOCDIR=/usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/share/doc/packages/xchat-indicator
+ export DOCDIR
+ rm -rf /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/share/doc/packages/xchat-indicator
+ /bin/mkdir -p /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/share/doc/packages/xchat-indicator
+ cp -pr COPYING /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64/usr/share/doc/packages/xchat-indicator
+ exit 0
Finding Provides: /usr/lib/rpm/find-provides xchat-indicator
Finding Requires: /usr/lib/rpm/find-requires xchat-indicator
Finding Supplements: /usr/lib/rpm/find-supplements xchat-indicator
Provides: indicator.so()(64bit)
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgdk-x11-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgtk-x11-2.0.so.0()(64bit) libindicate.so.5()(64bit) libpthread.so.0()(64bit) libunity.so.3()(64bit)
Supplements: packageand(xchat:indicator-messages)
Processing files: xchat-indicator-debugsource-0.3.8-1.x86_64
Processing files: xchat-gnome-indicator-0.3.8-1.x86_64
Finding Provides: /usr/lib/rpm/find-provides xchat-indicator
Finding Requires: /usr/lib/rpm/find-requires xchat-indicator
Finding Supplements: /usr/lib/rpm/find-supplements xchat-indicator
Provides: indicator.so()(64bit)
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgdk-x11-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgtk-x11-2.0.so.0()(64bit) libindicate.so.5()(64bit) libpthread.so.0()(64bit) libunity.so.3()(64bit)
Supplements: packageand(xchat-gnome:indicator-messages)
Processing files: xchat-indicator-debuginfo-0.3.8-1.x86_64
Finding Provides: /usr/lib/rpm/find-provides xchat-indicator
Finding Requires: /usr/lib/rpm/find-requires xchat-indicator
Finding Supplements: /usr/lib/rpm/find-supplements xchat-indicator
Provides: debuginfo(build-id) = f010a1beb69dbdf14d09d9a4e7392934295f998d
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Processing files: xchat-gnome-indicator-debuginfo-0.3.8-1.x86_64
Finding Provides: /usr/lib/rpm/find-provides xchat-indicator
Finding Requires: /usr/lib/rpm/find-requires xchat-indicator
Finding Supplements: /usr/lib/rpm/find-supplements xchat-indicator
Provides: debuginfo(build-id) = f010a1beb69dbdf14d09d9a4e7392934295f998d
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64
Wrote: /usr/src/packages/SRPMS/xchat-indicator-0.3.8-1.src.rpm
Wrote: /usr/src/packages/RPMS/x86_64/xchat-indicator-0.3.8-1.x86_64.rpm
Wrote: /usr/src/packages/RPMS/x86_64/xchat-indicator-debugsource-0.3.8-1.x86_64.rpm
Wrote: /usr/src/packages/RPMS/x86_64/xchat-gnome-indicator-0.3.8-1.x86_64.rpm
Wrote: /usr/src/packages/RPMS/x86_64/xchat-indicator-debuginfo-0.3.8-1.x86_64.rpm
Wrote: /usr/src/packages/RPMS/x86_64/xchat-gnome-indicator-debuginfo-0.3.8-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.SEAmHM
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd xchat-indicator-0.3.8
+ rm -rf /usr/src/packages/BUILDROOT/xchat-indicator-0.3.8-1.x86_64
+ exit 0
... checking for files with abuild user/group
... running 00-check-install-rpms
... installing all built rpms
Preparing packages for installation...
xchat-gnome-indicator-debuginfo-0.3.8-1
xchat-indicator-0.3.8-1
xchat-indicator-debuginfo-0.3.8-1
xchat-indicator-debugsource-0.3.8-1
xchat-gnome-indicator-0.3.8-1
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
    (using /usr/lib/build/checks-data/check_gcc_output)
    (using /var/tmp/build-root/.build.log)
E: xchat-indicator 64bit-portability-issue indicator.c:176

Attached is a small patch by dimstar(@opensuse.org) to fix this issue.

Thanks in advance.
NM

Tags: patch
Revision history for this message
nmarques (nmo-marques) wrote :
Revision history for this message
DimStar (dominique-launchpad-net) wrote :

The warning being raised to an error (for known issues) is:
indicator.c:176:7: warning: assignment makes pointer from integer without a cast

(which was simply due to gboolean *run... not very common to use pointers for gbool)

Changed in xchat-indicator (Ubuntu):
assignee: nobody → Ken VanDine (ken-vandine)
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xchat-indicator - 0.3.9-0ubuntu1

---------------
xchat-indicator (0.3.9-0ubuntu1) natty; urgency=low

  * New upstream release
    - Don't use a pointer for a gboolean, thanks nmarques (LP: #742760)
 -- Ken VanDine <email address hidden> Fri, 08 Apr 2011 11:35:35 -0400

Changed in xchat-indicator (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.