[MacPorts] #70473: stklos @1.70: error: macro names must be identifiers

MacPorts noreply at macports.org
Mon Sep 30 03:34:39 UTC 2024


#70473: stklos @1.70: error: macro names must be identifiers
---------------------------+------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  accepted
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.3
Resolution:                |   Keywords:  powerpc
      Port:  stklos        |
---------------------------+------------------------

Comment (by barracuda156):

 Replying to [comment:1 ryandesign]:
 > Replying to [ticket:70473 barracuda156]:
 >
 > > {{{
 > > SUMMARY
 > > *******
 > >                System:  -
 > >               OS nick:  _
 > >               OS type:
 > > }}}
 >
 > Probably relevant that it hasn't identified your operating system above
 because:
 >
 > > {{{
 > > extraconf.h:34:24: error: macro names must be identifiers
 > > extraconf.h:41:10: error: macro names must be identifiers
 > > }}}
 >
 >
 [https://github.com/egallesio/STklos/blob/48954a2ee3a63d09eab79e7bd05ba116bcbe8cef/src/extraconf.h.in#L34
 Line 34] is:
 >
 > {{{#!c
 > #define @OS_NAME@               1
 > }}}
 >
 >
 [https://github.com/egallesio/STklos/blob/48954a2ee3a63d09eab79e7bd05ba116bcbe8cef/src/extraconf.h.in#L41
 Line 41] is:
 >
 > {{{#!c
 > #define @OS_FLAVOUR@ 1
 > }}}
 >
 > I presume those placeholders didn't get replaced with something valid on
 your system.

 Output variables capture the triple correctly:
 {{{
 ## ----------------- ##
 ## Output variables. ##
 ## ----------------- ##

 ACLOCAL='${SHELL}
 '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\''
 aclocal-1.16'
 ALLOCA=''
 AMDEPBACKSLASH='\'
 AMDEP_FALSE='#'
 AMDEP_TRUE=''
 AMTAR='$${TAR-tar}'
 AM_BACKSLASH='\'
 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 AM_DEFAULT_VERBOSITY='1'
 AM_V='$(V)'
 AUTOCONF='${SHELL}
 '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\''
 autoconf'
 AUTOHEADER='${SHELL}
 '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\''
 autoheader'
 AUTOMAKE='${SHELL}
 '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\''
 automake-1.16'
 AWK='gawk'
 BUILD_ARCH='Power Macintosh'
 BUILD_OS='-'
 CC='ccache /usr/bin/gcc-4.2 -std=gnu99'
 CCDEPMODE='depmode=gcc3'
 CFLAGS='-pipe -Os -arch ppc'
 COMPOBJ=''
 COMPSRC=''
 CONF_SUMMARY='(:system (libffi libpcre libgmp libgc ) :compiled ()
 :configure ( \"--prefix=/opt/local\" \"CC=ccache /usr/bin/gcc-4.2
 -std=gnu99\" \"CFLAGS=-pipe -Os -arch ppc\"))'
 CONTROL_FX_PARAMETERS='1'
 CPP='ccache /usr/bin/gcc-4.2 -std=gnu99 -E'
 CPPFLAGS='-I/opt/local/include'
 CSCOPE='cscope'
 CTAGS='ctags'
 CYGPATH_W='echo'
 DEFAULT_CS='1'
 DEFS='-DHAVE_CONFIG_H'
 DEPDIR='.deps'
 DLLIBS=''
 ECHO_C='\c'
 ECHO_N=''
 ECHO_T=''
 ETAGS='etags'
 EXECDIR='/opt/local/lib/stklos/1.70'
 EXEEXT=''
 EXTRA_COMP_FLAGS=''
 FFI=''
 FFIINC=''
 FFILIB='-L/opt/local/lib -lffi'
 GC=''
 GCINC=''
 GCLIB='-L/opt/local/lib -lgc -lpthread'
 GMP=''
 GMPINC=''
 GMPLIB='-lgmp'
 GOOCANV='absent'
 GOOVERS=''
 GTK_CFLAGS=''
 HAVE_CANVAS='0'
 HAVE_DLOPEN='yes'
 HAVE_GNOME=''
 HAVE_GTK='0'
 INSTALL_DATA='${INSTALL} -m 644'
 INSTALL_PROGRAM='${INSTALL}'
 INSTALL_SCRIPT='${INSTALL}'
 INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
 LDAP_LIB=''
 LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
 LIBOBJS=' ${LIBOBJDIR}error$U.o ${LIBOBJDIR}lstat$U.o'
 LIBS='-lpthread '
 LN_S='ln -s'
 LTLIBOBJS=' ${LIBOBJDIR}error$U.lo ${LIBOBJDIR}lstat$U.lo'
 MAKEINFO='${SHELL}
 '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\''
 makeinfo'
 MKDIR_P='/opt/local/bin/gmkdir -p'
 NO_THREAD_FALSE=''
 NO_THREAD_TRUE='#'
 OBJEXT='o'
 OS_FLAVOUR=''
 OS_NAME=''
 OS_NAME_VERSION='_'
 PACKAGE='stklos'
 PACKAGE_BUGREPORT=''
 PACKAGE_NAME='stklos'
 PACKAGE_STRING='stklos 1.70'
 PACKAGE_TARNAME='stklos'
 PACKAGE_URL=''
 PACKAGE_VERSION='1.70'
 PATH_SEPARATOR=':'
 PCRE=''
 PCREINC=''
 PCRELIB='-L/opt/local/lib -lpcre -lpcreposix'
 PCREPKG='present'
 PKGCONFIG='pkg-config'
 POW_LIB=''
 PREFIX='/opt/local'
 PTHREADS_FALSE='#'
 PTHREADS_TRUE=''
 RANLIB='ranlib'
 SCMDIR='/opt/local/share/stklos/1.70'
 SET_MAKE=''
 SHELL='/bin/sh'
 SH_COMP_FLAGS=''
 SH_LIB_SUFFIX=''
 SH_LOADER=''
 SH_LOAD_FLAGS=''
 SH_MAIN_LOAD_FLAGS=''
 SH_SUFFIX=''
 STACK_DIRECTION='DOWN'
 STKCFLAGS=''
 STRIP=''
 STRIPCMD='strip'
 THREADS='pthreads'
 UNAME_O='Darwin'
 VERSION='1.70'
 ac_ct_CC='ccache /usr/bin/gcc-4.2'
 am__EXEEXT_FALSE=''
 am__EXEEXT_TRUE='#'
 am__fastdepCC_FALSE='#'
 am__fastdepCC_TRUE=''
 am__include='include'
 am__isrc=''
 am__leading_dot='.'
 am__nodep='_no'
 am__quote=''
 am__tar='$${TAR-tar} chof - "$$tardir"'
 am__untar='$${TAR-tar} xf -'
 bindir='${exec_prefix}/bin'
 build='powerpc-apple-darwin10.0.0d2'
 build_alias=''
 build_cpu='powerpc'
 build_os='darwin10.0.0d2'
 build_vendor='apple'
 datadir='${datarootdir}'
 datarootdir='${prefix}/share'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 dvidir='${docdir}'
 exec_prefix='${prefix}'
 host='powerpc-apple-darwin10.0.0d2'
 host_alias=''
 host_cpu='powerpc'
 host_os='darwin10.0.0d2'
 host_vendor='apple'
 htmldir='${docdir}'
 includedir='${prefix}/include'
 infodir='${datarootdir}/info'
 install_sh='${SHELL}
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70
 /install-sh'
 libdir='${exec_prefix}/lib'
 libexecdir='${exec_prefix}/libexec'
 localedir='${datarootdir}/locale'
 localstatedir='${prefix}/var'
 mandir='${datarootdir}/man'
 mkdir_p='$(MKDIR_P)'
 oldincludedir='/usr/include'
 pdfdir='${docdir}'
 prefix='/opt/local'
 program_transform_name='s,x,x,'
 psdir='${docdir}'
 runstatedir='${localstatedir}/run'
 sbindir='${exec_prefix}/sbin'
 sharedstatedir='${prefix}/com'
 sysconfdir='${prefix}/etc'
 target_alias=''
 }}}

 So I guess, it may be again a handicapped sed expression which breaks down
 on OS stage appended to its version.

-- 
Ticket URL: <https://trac.macports.org/ticket/70473#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list