Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934534 - app-misc/lcd4linux-0.11.0_pre20170527-r8 - [perl-5.40] [ncurses-6.5] [icu-75.1] evaluator.c: error: expected declaration specifiers or before string constant
Summary: app-misc/lcd4linux-0.11.0_pre20170527-r8 - [perl-5.40] [ncurses-6.5] [icu-75....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.38 gcc-15
  Show dependency tree
 
Reported: 2024-06-19 07:21 UTC by Toralf Förster
Modified: 2024-07-20 00:00 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.17 KB, text/plain)
2024-06-19 07:21 UTC, Toralf Förster
Details
app-misc:lcd4linux-0.11.0_pre20170527-r8:20240619-062804.log (app-misc:lcd4linux-0.11.0_pre20170527-r8:20240619-062804.log,15.95 KB, text/plain)
2024-06-19 07:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,193.41 KB, text/plain)
2024-06-19 07:21 UTC, Toralf Förster
Details
environment (environment,140.70 KB, text/plain)
2024-06-19 07:21 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-06-19 07:21 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,27.85 KB, application/x-xz)
2024-06-19 07:21 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,11.90 KB, application/x-xz)
2024-06-19 07:21 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,51.69 KB, application/x-xz)
2024-06-19 07:21 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,32.71 KB, application/x-xz)
2024-06-19 07:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-06-19 07:21:49 UTC
  112 |     for (fgets(line, sizeof(line), stdin); !feof(stdin); fgets(line, sizeof(line), stdin)) {
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lcd4linux.c:112:58: warning: ignoring return value of fgets declared with attribute warn_unused_result [-Wunused-result]
  112 |     for (fgets(line, sizeof(line), stdin); !feof(stdin); fgets(line, sizeof(line), stdin)) {
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -D_GNU_SOURCE -Wall -Wextra -fno-strict-aliasing -O2 -pipe -march=native -fno-diagnostics-color -c -o property.o property.c
evaluator.c:221:7: error: expected declaration specifiers or ... before string constant
  221 | char *strndup(const char *source, size_t len)
      |       ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_abi32+64-20240615-020503

  UNMASKED:
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
  >=sys-libs/ncurses-6.5
    Issues involving opaque types / incomplete typedefs should block bug 930805
  ~dev-lang/perl-5.40.0
  ~virtual/perl-Archive-Tar-3.20.10_rc
  ~virtual/perl-CPAN-Meta-Requirements-2.143.0
  ~virtual/perl-Compress-Raw-Bzip2-2.212.0
  ~virtual/perl-DB_File-1.859.0
  ~virtual/perl-Data-Dumper-2.189.0
  ~virtual/perl-Devel-PPPort-3.720.0
  ~virtual/perl-Exporter-5.780.0
  ~virtual/perl-ExtUtils-CBuilder-0.280.240
  ~virtual/perl-ExtUtils-Manifest-1.750.0
  ~virtual/perl-File-Spec-3.900.0
  ~virtual/perl-HTTP-Tiny-0.88.0
  ~virtual/perl-IO-1.550.0
  ~virtual/perl-IO-Compress-2.212.0
  ~virtual/perl-IO-Socket-IP-0.420.0
  ~virtual/perl-IO-Zlib-1.150.0
  ~virtual/perl-Math-BigInt-2.3.2
  ~virtual/perl-Math-BigInt-FastCalc-0.501.800
  ~virtual/perl-Math-BigRat-2.3.2
  ~virtual/perl-Module-CoreList-5.202.406.90
  ~virtual/perl-Module-Metadata-1.0.38
  ~virtual/perl-Pod-Simple-3.450.0
  ~virtual/perl-Safe-2.460.0
  ~virtual/perl-Socket-2.38.0
  ~virtual/perl-Test-Harness-3.480.0
  ~virtual/perl-Test-Simple-1.302.199
  ~virtual/perl-Text-Tabs+Wrap-2024.1.0
  ~virtual/perl-Time-HiRes-1.977.700
  ~virtual/perl-Time-Local-1.350.0
  ~virtual/perl-autodie-2.370.0
  ~virtual/perl-bignum-0.670.0
  ~virtual/perl-podlators-5.10.200_rc
  ~virtual/perl-threads-2.400.0
  ~virtual/perl-threads-shared-1.690.0
  ~virtual/perl-version-0.993.0

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.7
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.78.0
  [2]   rust-1.78.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

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

  HEAD of ::gentoo
commit 8a73232f2111f1cf05b12b4e087afdd7f16d5f89
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jun 19 04:49:39 2024 +0000

    2024-06-19 04:49:38 UTC

emerge -qpvO app-misc/lcd4linux
[ebuild  N    ] app-misc/lcd4linux-0.11.0_pre20170527-r8  USE="dbus diskstats dmalloc event exec fifo hddtemp huawei iconv kvv outb raspi -apm -asterisk -button-exec -cpuinfo -dvb -file -gps -i2c-sensors -isdn -loadavg -meminfo -mpd -mpris-dbus -mysql -netdev -netinfo -pop3 -proc-stat -python -qnaplog -sample -statfs -uname -uptime -w1retap -wireless" LCD_DEVICES="hd44780 -astusb -beckmannegle -bwct -crystalfontz -curses -cwlinux -d4d -dpf -ea232graphic -efn -futabavfd -fw8888 -g15 -glcd2usb -hd44780-i2c -irlcd -lcd2usb -lcdterm -ledmatrix -lph7508 -luise -lw_abp -m50530 -matrixorbital -matrixorbitalgx -mdm166a -milfordinstruments -newhaven -noritake -null -pertelian -phanderson -picgraphic -picolcd -picolcdgraphic -png -ppm -routerboard -sample -samsungspf -serdisplib -shuttlevfd -simplelcd -t6963 -teaklcm -trefon -ula200 -usbhub -usblcd -vnc -wincornixdorf -x11" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-06-19 07:21:50 UTC
Created attachment 896066 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-06-19 07:21:51 UTC
Created attachment 896067 [details]
app-misc:lcd4linux-0.11.0_pre20170527-r8:20240619-062804.log
Comment 3 Toralf Förster gentoo-dev 2024-06-19 07:21:52 UTC
Created attachment 896068 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-06-19 07:21:54 UTC
Created attachment 896069 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-06-19 07:21:54 UTC
Created attachment 896070 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-06-19 07:21:55 UTC
Created attachment 896071 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-06-19 07:21:56 UTC
Created attachment 896072 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-06-19 07:21:57 UTC
Created attachment 896073 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-06-19 07:21:58 UTC
Created attachment 896074 [details]
temp.tar.xz
Comment 10 Conrad Kostecki gentoo-dev 2024-07-14 12:06:56 UTC
@sam: Could you help me here?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-14 23:19:48 UTC
Of course - I'll take a look.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-19 05:28:37 UTC
> checking for strndup... no

But we do have strndup.

In toralf's config.log:
```
configure:20464: checking for strndup
configure:20464: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -march=native -fno-diagnostics-color  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -g conftest.c -lm  -ldmalloc >&5
conftest.c:114:6: warning: conflicting types for built-in function 'strndup'; expected 'char *(const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch]
  114 | char strndup (void);
      |      ^~~~~~~
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: conftest: hidden symbol `atexit' in /usr/lib64/libc_nonshared.a(atexit.oS) is referenced by DSO
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
configure:20464: $? = 1
configure: failed program was:
| /* confdefs.h */
```

!!!

Ah, wait, it's from dmalloc shenanigans, I think. Honestly, just mask USE=dmalloc. The ebuild requires tonnes of patches to make it work and it's clearly broken and breaking other packages (like this).
Comment 13 Conrad Kostecki gentoo-dev 2024-07-19 23:26:02 UTC
(In reply to Sam James from comment #12)
> Ah, wait, it's from dmalloc shenanigans, I think. Honestly, just mask
> USE=dmalloc. The ebuild requires tonnes of patches to make it work and it's
> clearly broken and breaking other packages (like this).

Thank you. Any objections even just to drop it? I don't think, that it's worth keeping it even masked.
Comment 14 Larry the Git Cow gentoo-dev 2024-07-20 00:00:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c078e3d548eaf5175fdcacbbda9002560c476e4f

commit c078e3d548eaf5175fdcacbbda9002560c476e4f
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2024-07-19 23:59:33 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2024-07-20 00:00:36 +0000

    app-misc/lcd4linux: drop dmalloc
    
    Completly broken and not needed anyway..
    
    Closes: https://bugs.gentoo.org/934534
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 ...0_pre20170527-r8.ebuild => lcd4linux-0.11.0_pre20170527-r9.ebuild} | 4 +---
 app-misc/lcd4linux/metadata.xml                                       | 1 -
 2 files changed, 1 insertion(+), 4 deletions(-)