Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922718 - net-im/telepathy-logger-0.8.2-r1 - conf.c: error: assignment to GObject {aka struct _GObject } from incompatible pointer type TplConf [-Wincompatible-
Summary: net-im/telepathy-logger-0.8.2-r1 - conf.c: error: assignment to GObject {aka ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-01-22 18:46 UTC by Toralf Förster
Modified: 2024-12-18 17:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.85 KB, text/plain)
2024-01-22 18:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,140.57 KB, text/plain)
2024-01-22 18:46 UTC, Toralf Förster
Details
environment (environment,115.20 KB, text/plain)
2024-01-22 18:46 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.18 KB, application/x-xz)
2024-01-22 18:46 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.57 KB, application/x-xz)
2024-01-22 18:46 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,12.38 KB, application/x-xz)
2024-01-22 18:46 UTC, Toralf Förster
Details
net-im:telepathy-logger-0.8.2-r1:20240122-163849.log (net-im:telepathy-logger-0.8.2-r1:20240122-163849.log,34.76 KB, text/plain)
2024-01-22 18:46 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,249.58 KB, text/plain)
2024-01-22 18:46 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.45 KB, application/x-xz)
2024-01-22 18:46 UTC, Toralf Förster
Details
commit patch to fix build errors (fix-incompatible-pointer-types.patch,1.94 KB, patch)
2024-12-18 17:12 UTC, Sarah
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-22 18:46:11 UTC
too long lines were shrinked:

      |                                 ^
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../extensions -I.. -Wall -Wextra -Wformat-security -Winit-self -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wno-missing-field-initializers -Wno
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../extensions -I.. -Wall -Wextra -Wformat-security -Winit-self -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wno-missing-field-initializers -Wno-unused-parameter -D_POSIX_S
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../extensions -I.. -Wall -Wextra -Wformat-security -Winit-self -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wno-missing-field-initializers -Wno
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../extensions -I.. -Wall -Wextra -Wformat-security -Winit-self -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wno-missing-field-initializers -Wno-unused-parameter -D_POSIX_S
conf.c: In function 'tpl_conf_constructor':
conf.c:130:14: error: assignment to 'GObject *' {aka 'struct _GObject *'} from incompatible pointer type 'TplConf *' [-Wincompatible-pointer-types]
  130 |       retval = g_object_ref (conf_singleton);
      |              ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20240119-104830

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.6 linux/amd64

  HEAD of ::gentoo
commit 14e8ae576bad9633927981ae73505dd79626197c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jan 22 16:05:11 2024 +0000

    2024-01-22 16:05:11 UTC

emerge -qpvO net-im/telepathy-logger
[ebuild  N    ] net-im/telepathy-logger-0.8.2-r1  USE="introspection -test"
Comment 1 Toralf Förster gentoo-dev 2024-01-22 18:46:12 UTC
Created attachment 882880 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-22 18:46:13 UTC
Created attachment 882881 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-01-22 18:46:14 UTC
Created attachment 882882 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-01-22 18:46:15 UTC
Created attachment 882883 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-01-22 18:46:16 UTC
Created attachment 882884 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-22 18:46:17 UTC
Created attachment 882885 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-22 18:46:18 UTC
Created attachment 882886 [details]
net-im:telepathy-logger-0.8.2-r1:20240122-163849.log
Comment 8 Toralf Förster gentoo-dev 2024-01-22 18:46:20 UTC
Created attachment 882887 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-01-22 18:46:21 UTC
Created attachment 882888 [details]
temp.tar.xz
Comment 10 Sarah 2024-12-18 17:12:57 UTC
Created attachment 914345 [details, diff]
commit patch to fix build errors

So I ran into this error myself and took a look at upstream to see if it was fixed. I saw 3 new commits since last release (which was on april 30th 2015) from which 1 was specifically to fix the build errors. The commit in question was from august 1st and aside from 1 commit in 2016 there was no other activity since last release.

I do not know if upstream is going to do a new release anytime soon but at least for current 0.8.2 version the attached patch will fix the build errors. The commit was made over 4 months ago so I do not think there will be a new release anytime soon.

My personal recommendation is to add the patch to the ebuild so it can build normally. Especially since this patch is taken directly from the commit (I just added .patch at the end of the url below). This patch worked for me and I was able to merge the package successfully. (I added it to /etc/portage/patches/..)

(Commit in question to fix the build errors: https://github.com/TelepathyIM/telepathy-logger/commit/2e50d1855b3395b622c768094ff2b617a0208724 )