[MacPorts] #71931: geany needs a fix from legacysupport for scandir

MacPorts noreply at macports.org
Sat Jan 25 01:39:03 UTC 2025


#71931: geany needs a fix from legacysupport for scandir
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:
      Port:  geany         |
---------------------------+--------------------

Comment (by barracuda156):

 Hmm, it also fails with `legacysupport` used (with the flag for it):
 {{{
 depbase=`echo main/portable-scandir.lo | sed
 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
         /bin/sh ../libtool --silent  --tag=CC   --mode=compile
 /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I..  -I./main -I./parsers
 -I./dsl -DEXTERNAL_PARSER_LIST_FILE=\"../src/tagmanager/tm_parsers.h\"
 -DG_LOG_DOMAIN=\"CTags\"   -isystem/opt/local/include/LegacySupport
 -I/opt/local/include -D_MACPORTS_LEGACY_COMPATIBLE_SCANDIR=1
 -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0
 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0
 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gtk-3.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo
 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
 -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi
 -I/opt/local/include/harfbuzz -I/opt/local/include/atk-1.0
 -I/opt/local/include/cairo -I/opt/local/include/pixman-1
 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include
 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32
 -DGDK_DISABLE_DEPRECATION_WARNINGS -fvisibility=hidden
 -DGEANY_EXPORT_SYMBOL="__attribute__((visibility(\"default\")))"
 -DGEANY_API_SYMBOL=GEANY_EXPORT_SYMBOL -pipe -Os -arch ppc -MT main
 /portable-scandir.lo -MD -MP -MF $depbase.Tpo -c -o main/portable-
 scandir.lo main/portable-scandir.c &&\
         mv -f $depbase.Tpo $depbase.Plo
 In file included from main/portable-dirent_p.h:5,
                  from main/routines_p.h:17,
                  from main/portable-scandir.c:112:
 main/portable-scandir.c:136:1: error: redefinition of '__mpls_scandir'
   136 | scandir(const char *directory_name,
       | ^~~~~~~
 /opt/local/include/LegacySupport/dirent.h:111:1: note: previous definition
 of '__mpls_scandir' with type 'int(const char *, struct dirent ***, int
 (*)(const struct dirent *), int (*)(const struct dirent **, const struct
 dirent **))'
   111 | __mpls_scandir(const char *dirname, struct dirent ***namelist,
       | ^~~~~~~~~~~~~~
 make[2]: *** [main/portable-scandir.lo] Error 1
 make[2]: *** Waiting for unfinished jobs....
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_ppcports_devel_geany/geany/work/geany-2.0/ctags'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_ppcports_devel_geany/geany/work/geany-2.0'
 make: *** [all] Error 2
 }}}

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


More information about the macports-tickets mailing list