Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881321 - app-text/ttf2pt1-3.4.4-r1 - t1asm.c: error: call to undeclared function getopt; ISO C99 and later
Summary: app-text/ttf2pt1-3.4.4-r1 - t1asm.c: error: call to undeclared function getop...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-14 20:56 UTC by Toralf Förster
Modified: 2023-04-15 06:17 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.38 KB, text/plain)
2022-11-14 20:56 UTC, Toralf Förster
Details
app-text:ttf2pt1-3.4.4-r1:20221114-203016.log (app-text:ttf2pt1-3.4.4-r1:20221114-203016.log,17.66 KB, text/plain)
2022-11-14 20:56 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,52.86 KB, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
environment (environment,65.52 KB, text/plain)
2022-11-14 20:56 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,696 bytes, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,28.18 KB, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,19.75 KB, application/x-bzip)
2022-11-14 20:56 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 2022-11-14 20:56:20 UTC
      'long' [-Wformat]
  sprintf(line, "%d ", charstring_bp - charstring_buf);
                 ~~    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 %ld
t1asm.c:501:15: error: call to undeclared function 'getopt'; ISO C99 and later
      do not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221112-220005

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Ruby profiles:
  [1]   ruby31 *
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 

php cli (if any):

  HEAD of ::gentoo
commit e0484b385a43ace0b96fb91a643fd17f22a34497
Merge: f2401ce11ca3 0c77aadb9830
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 14 17:46:45 2022 +0000

    Merge updates from master

emerge -qpvO app-text/ttf2pt1
[ebuild  N    ] app-text/ttf2pt1-3.4.4-r1
Comment 1 Toralf Förster gentoo-dev 2022-11-14 20:56:21 UTC
Created attachment 832581 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-14 20:56:22 UTC
Created attachment 832583 [details]
app-text:ttf2pt1-3.4.4-r1:20221114-203016.log
Comment 3 Toralf Förster gentoo-dev 2022-11-14 20:56:23 UTC
Created attachment 832585 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-11-14 20:56:24 UTC
Created attachment 832587 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-14 20:56:25 UTC
Created attachment 832589 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-14 20:56:27 UTC
Created attachment 832591 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-14 20:56:28 UTC
Created attachment 832593 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2023-04-15 06:17:03 UTC
The bug has been closed via the following commit(s):

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

commit 01eecce52925970412864da41cb38c10fadfdba7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-15 06:05:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-15 06:05:22 +0000

    app-text/ttf2pt1: fix build w/ clang 16
    
    This does not fix the pointer types issues though.
    
    Closes: https://bugs.gentoo.org/881321
    Bug: https://bugs.gentoo.org/883205
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/ttf2pt1/files/ttf2pt1-3.4.4-clang16.patch | 61 ++++++++++++++++++++++
 ...pt1-3.4.4-r1.ebuild => ttf2pt1-3.4.4-r2.ebuild} |  5 +-
 2 files changed, 64 insertions(+), 2 deletions(-)