Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833404 - gnustep-apps/cenon-4.0.6 fails to compile (DocView.m:1807:45: error: expected ‘)’ before ‘;’ token)
Summary: gnustep-apps/cenon-4.0.6 fails to compile (DocView.m:1807:45: error: expected...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 820008
  Show dependency tree
 
Reported: 2022-02-15 11:17 UTC by Jakov Smolić
Modified: 2022-06-03 12:34 UTC (History)
0 users

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


Attachments
build log (cenon,143.85 KB, text/plain)
2022-02-15 11:17 UTC, Jakov Smolić
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakov Smolić archtester gentoo-dev 2022-02-15 11:17:58 UTC
Created attachment 765182 [details]
build log

DocView.m: In function ‘-[DocView draw:]’:
DocView.m:1807:45: error: expected ‘)’ before ‘;’ token
 1807 |         if ( floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_8 &&
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
DocView.m:1807:12: note: to match this ‘(’
 1807 |         if ( floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_8 &&
      |            ^
DocView.m: In function ‘-[DocView moveObject:::]’:
DocView.m:2416:53: warning: variable ‘delta_scroll’ set but not used [-Wunused-but-set-variable]
 2416 |     NSPoint             pt, pt_last, pt_old, delta, delta_scroll, drawOffset, snapPoint;
      |                                                     ^~~~~~~~~~~~
DocView.m: In function ‘-[DocView mouseDown:]’:
DocView.m:3074:24: warning: variable ‘control’ set but not used [-Wunused-but-set-variable]
 3074 |     BOOL        shift, control, gotHit = NO, compositeAll = NO, editable = NO;
      |                        ^~~~~~~
DocView.m: In function ‘-[DocView dragMagnify:]’:
DocView.m:3630:30: warning: variable ‘shift’ set but not used [-Wunused-but-set-variable]
 3630 |     BOOL        mustContain, shift, canScroll, oldRegionSet = NO;
      |                              ^~~~~
DocView.m:3630:17: warning: variable ‘mustContain’ set but not used [-Wunused-but-set-variable]
 3630 |     BOOL        mustContain, shift, canScroll, oldRegionSet = NO;
      |                 ^~~~~~~~~~~
gmake[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:515: obj/Cenon.obj/DocView.m.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/string.h:519,
                 from /usr/include/GNUstepBase/GSConfig.h:426,
                 from /usr/include/GNUstepBase/GSVersionMacros.h:224,
                 from /usr/include/AppKit/AppKit.h:32,
                 from Type1Font.m:31:
In function ‘strncpy’,
    inlined from ‘-[Type1Font writeToFile:]’ at Type1Font.m:954:9:
/usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin___strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
Type1Font.m: In function ‘-[Type1Font writeToFile:]’:
Type1Font.m:953:15: note: length computed here
  953 |         len = strlen(fontStrConstC);
      |               ^~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
gmake[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Cenon.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2
 * ERROR: gnustep-apps/cenon-4.0.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=gnustep-apps/cenon-4.0.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=gnustep-apps/cenon-4.0.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/gnustep-apps/cenon-4.0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnustep-apps/cenon-4.0.6/temp/environment'.
 * Working directory: '/var/tmp/portage/gnustep-apps/cenon-4.0.6/work/Cenon'
 * S: '/var/tmp/portage/gnustep-apps/cenon-4.0.6/work/Cenon'%             

# emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/x86/17.0/systemd, gcc-11.2.0, glibc-2.34-r8, 5.10.68-gentoo-dist i686)
=================================================================
System uname: Linux-5.10.68-gentoo-dist-i686-Common_KVM_processor-with-glibc2.34
KiB Mem:    65850752 total,  42125192 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 15 Feb 2022 08:30:01 +0000
Head commit of repository gentoo: cc106c95980821947070257c95b36c3be0dabd26
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37.20210720
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.12_p1-r1::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-lang/rust-bin:         1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-apps/systemd:          250.2::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 20"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j40 -l40"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl bzip2 cli crypt dri eglfs fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Bernard Cafarelli gentoo-dev 2022-02-15 23:59:38 UTC
Hmm this is same error as ppc bug #821097 ... And digging further NSAppKitVersionNumber10_8 is just that, a version number, and an old one.

The source code for cenon even includes a fallback value in VHFShared/vhfCompatibility.h:
#   ifndef NSAppKitVersionNumber10_8
#       define NSAppKitVersionNumber10_8    1187

So this should work fine??
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-23 03:50:45 UTC
(In reply to Bernard Cafarelli from comment #1)
> Hmm this is same error as ppc bug #821097 ... And digging further
> NSAppKitVersionNumber10_8 is just that, a version number, and an old one.
> 
> The source code for cenon even includes a fallback value in
> VHFShared/vhfCompatibility.h:
> #   ifndef NSAppKitVersionNumber10_8
> #       define NSAppKitVersionNumber10_8    1187
> 
> So this should work fine??

I had a brief look (without trying to actually build it on a broken box at the time) and had no idea either. I think we should just circle back to this if someone actually speaks up and says they want it, tbh.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-23 03:51:04 UTC
(In reply to Sam James from comment #2)
> (In reply to Bernard Cafarelli from comment #1)
> > Hmm this is same error as ppc bug #821097 ... And digging further
> > NSAppKitVersionNumber10_8 is just that, a version number, and an old one.
> > 
> > The source code for cenon even includes a fallback value in
> > VHFShared/vhfCompatibility.h:
> > #   ifndef NSAppKitVersionNumber10_8
> > #       define NSAppKitVersionNumber10_8    1187
> > 
> > So this should work fine??
> 
> I had a brief look (without trying to actually build it on a broken box at
> the time) and had no idea either. I think we should just circle back to this
> if someone actually speaks up and says they want it, tbh.

(i.e. don't worry about non-amd64 unless someone asks)
Comment 4 Larry the Git Cow gentoo-dev 2022-06-03 12:34:02 UTC
The bug has been closed via the following commit(s):

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

commit ca1068bd66f74e5444763b7d705fb70b4767a134
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-06-03 12:32:31 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-06-03 12:33:53 +0000

    gnustep-apps/cenon: Drop x86 keyword
    
    Closes: https://bugs.gentoo.org/833404
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 gnustep-apps/cenon/cenon-4.0.2-r1.ebuild | 2 +-
 gnustep-apps/cenon/cenon-4.0.6.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)