Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895100 - x11-terms/xterm-380 - ./main.c: error: TAB3 undeclared here (not in a function)
Summary: x11-terms/xterm-380 - ./main.c: error: TAB3 undeclared here (not in a function)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-17 09:59 UTC by Toralf Förster
Modified: 2023-10-06 12:59 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.63 KB, text/plain)
2023-02-17 09:59 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,67.68 KB, application/x-bzip)
2023-02-17 09:59 UTC, Toralf Förster
Details
environment (environment,99.97 KB, text/plain)
2023-02-17 09:59 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,34.80 KB, application/x-bzip)
2023-02-17 09:59 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,15.90 KB, application/x-bzip)
2023-02-17 09:59 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.99 KB, application/x-bzip)
2023-02-17 09:59 UTC, Toralf Förster
Details
x11-terms:xterm-379:20230217-072241.log (x11-terms:xterm-379:20230217-072241.log,29.96 KB, text/plain)
2023-02-17 09:59 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 2023-02-17 09:59:19 UTC
too long lines were shrinked:

x86_64-gentoo-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -D_POSIX_C_SOURCE=199506L -I/usr/include/uuid -DFUNCPROTO=15 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\"  -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wbad-funct
x86_64-gentoo-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -D_POSIX_C_SOURCE=199506L -I/usr/include/uuid -DFUNCPROTO=15 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\"  -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wbad-funct
x86_64-gentoo-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -D_POSIX_C_SOURCE=199506L -I/usr/include/uuid -DFUNCPROTO=15 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\"  -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wbad-funct
x86_64-gentoo-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -D_POSIX_C_SOURCE=199506L -I/usr/include/uuid -DFUNCPROTO=15 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\"  -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wbad-funct
x86_64-gentoo-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -D_POSIX_C_SOURCE=199506L -I/usr/include/uuid -DFUNCPROTO=15 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\"  -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wbad-funct
x86_64-gentoo-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -D_POSIX_C_SOURCE=199506L -I/usr/include/uuid -DFUNCPROTO=15 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\"  -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wbad-funct
./main.c:802:34: error: 'TAB3' undeclared here (not in a function); did you mean 'TAB0'?
  802 |     { -1,       XTTYMODE__tabs,  TAB3 },
      |                                  ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20230214-161236

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-12 *
clang/llvm (if any):
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.67.1 *
php cli (if any):

  HEAD of ::gentoo
commit 33bda6fc1315b7c114605f8323b72ffc50b21bed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Feb 17 06:46:58 2023 +0000

    2023-02-17 06:46:58 UTC

emerge -qpvO x11-terms/xterm
[ebuild     U ] x11-terms/xterm-379 [377-r1] USE="Xaw3d openpty unicode -sixel -toolbar -truetype -verify-sig -xinerama"
Comment 1 Toralf Förster gentoo-dev 2023-02-17 09:59:21 UTC
Created attachment 852126 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-17 09:59:22 UTC
Created attachment 852128 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2023-02-17 09:59:23 UTC
Created attachment 852130 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-02-17 09:59:25 UTC
Created attachment 852132 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-02-17 09:59:25 UTC
Created attachment 852134 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-17 09:59:27 UTC
Created attachment 852136 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-17 09:59:28 UTC
Created attachment 852138 [details]
x11-terms:xterm-379:20230217-072241.log
Comment 8 Barnabás Virágh 2023-05-17 14:16:48 UTC
I experience the same with xterm-378 also, I also use musl: mips64-unknown-linux-musl
Comment 9 Barnabás Virágh 2023-05-17 17:38:05 UTC
An update: when added to CFLAGS "-D_GNU_SOURCE", it builds. I used package.env folder to do this, as a workaround.

Source of idea: https://github.com/NixOS/nixpkgs/issues/214842
Comment 10 Agostino Sarubbo gentoo-dev 2023-05-24 08:39:36 UTC
tinderbox_musl has reproduced this issue with version 380 - Updating summary.
Comment 11 David Duchesne 2023-07-28 13:21:53 UTC
(In reply to Barnabás Virágh from comment #9)
> An update: when added to CFLAGS "-D_GNU_SOURCE", it builds. I used
> package.env folder to do this, as a workaround.
> 
> Source of idea: https://github.com/NixOS/nixpkgs/issues/214842

Thank you very much. It now compiles fine!
All versions are affected by this compilation issue (379 to 384)
Comment 12 David Duchesne 2023-07-28 13:23:29 UTC
(In reply to David Duchesne from comment #11)
> (In reply to Barnabás Virágh from comment #9)
> > An update: when added to CFLAGS "-D_GNU_SOURCE", it builds. I used
> > package.env folder to do this, as a workaround.
> > 
> > Source of idea: https://github.com/NixOS/nixpkgs/issues/214842
> 
> Thank you very much. It now compiles fine!
> All versions are affected by this compilation issue (379 to 384)
On musl amd64 only.
With glibc amd64, I can't reproduce it.
Comment 13 Larry the Git Cow gentoo-dev 2023-10-06 12:59:16 UTC
The bug has been closed via the following commit(s):

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

commit 0b4de7cba8d0d3a8b1893fd4c6c757242eb82fea
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-09-04 06:45:18 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-10-06 12:58:56 +0000

    x11-terms/xterm: Fix TAB3 undeclared here \w musl llvm
    
    Closes: https://bugs.gentoo.org/895100
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32600
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/xterm-384-unconditional-gnusource.patch  |  12 +++
 x11-terms/xterm/xterm-384-r1.ebuild                | 110 +++++++++++++++++++++
 2 files changed, 122 insertions(+)