[MacPorts] #60872: clamav @0.102.4 does not build on PPC MacOS X 10.4.11, because of undefined symbols: "_unlinkat", "_renameat", "_openat"

MacPorts noreply at macports.org
Sat Jul 18 10:43:37 UTC 2020


#60872: clamav @0.102.4 does not build on PPC MacOS X 10.4.11, because of undefined
symbols: "_unlinkat", "_renameat", "_openat"
-----------------------+--------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.2
 Keywords:  tiger      |       Port:  clamav
-----------------------+--------------------
 {{{
 /opt/local/bin/gcc-mp-7 -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I..
 -I../libclammspack  -I.. -I../shared -I../libclamav -I/opt/local/include
 -I/opt/local/include/json-c -I/opt/local/include  -I/opt/local/include
 -I/opt/local/include -I/opt/local/include  -pipe -O0 -arch ppc -fno-
 strict-aliasing  -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o
 actions.o `test -f '../shared/actions.c' || echo './'`../shared/actions.c
 ../shared/actions.c: In function 'traverse_to':
 ../shared/actions.c:328:23: warning: implicit declaration of function
 'openat'; did you mean 'open'? [-Wimplicit-function-declaration]
          next_handle = openat(current_handle, tokens[i], O_RDONLY |
 O_NOFOLLOW);
                        ^~~~~~
                        open
 ../shared/actions.c: In function 'traverse_rename':
 ../shared/actions.c:455:14: warning: implicit declaration of function
 'renameat'; did you mean 'rename'? [-Wimplicit-function-declaration]
      if (0 != renameat(source_directory_fd, source_basename, -1,
 destination)) {
               ^~~~~~~~
               rename
 ../shared/actions.c: In function 'traverse_unlink':
 ../shared/actions.c:568:14: warning: implicit declaration of function
 'unlinkat'; did you mean 'unlink'? [-Wimplicit-function-declaration]
      if (0 != unlinkat(target_directory_fd, target_basename, 0)) {
               ^~~~~~~~
               unlink
 mv -f .deps/actions.Tpo .deps/actions.Po
 /opt/local/bin/gcc-mp-7 -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I..
 -I../libclammspack  -I.. -I../shared -I../libclamav -I/opt/local/include
 -I/opt/local/include/json-c -I/opt/local/include  -I/opt/local/include
 -I/opt/local/include -I/opt/local/include  -pipe -O0 -arch ppc -fno-
 strict-aliasing  -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o `test
 -f '../shared/misc.c' || echo './'`../shared/misc.c
 mv -f .deps/misc.Tpo .deps/misc.Po
 /opt/local/bin/gcc-mp-7 -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I..
 -I../libclammspack  -I.. -I../shared -I../libclamav -I/opt/local/include
 -I/opt/local/include/json-c -I/opt/local/include  -I/opt/local/include
 -I/opt/local/include -I/opt/local/include  -pipe -O0 -arch ppc -fno-
 strict-aliasing  -MT clamscan.o -MD -MP -MF .deps/clamscan.Tpo -c -o
 clamscan.o clamscan.c
 mv -f .deps/clamscan.Tpo .deps/clamscan.Po
 /opt/local/bin/gcc-mp-7 -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I..
 -I../libclammspack  -I.. -I../shared -I../libclamav -I/opt/local/include
 -I/opt/local/include/json-c -I/opt/local/include  -I/opt/local/include
 -I/opt/local/include -I/opt/local/include  -pipe -O0 -arch ppc -fno-
 strict-aliasing  -MT manager.o -MD -MP -MF .deps/manager.Tpo -c -o
 manager.o manager.c
 mv -f .deps/manager.Tpo .deps/manager.Po
 /bin/sh ../libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-7  -pipe
 -O0 -arch ppc -fno-strict-aliasing   -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -L/opt/local/lib -o clamscan
 output.o getopt.o optparser.o actions.o misc.o clamscan.o manager.o
 ../libclamav/libclamav.la
 libtool: link: rm -f .libs/clamscan.nm .libs/clamscan.nmS
 .libs/clamscan.nmT
 libtool: link: rm -f ".libs/clamscan.nmI"
 libtool: link: (cd .libs && /opt/local/bin/gcc-mp-7 -pipe -O0 -arch ppc
 -fno-strict-aliasing -c -fno-builtin "clamscanS.c")
 libtool: link: rm -f ".libs/clamscanS.c" ".libs/clamscan.nm"
 ".libs/clamscan.nmS" ".libs/clamscan.nmT" ".libs/clamscan.nmI"
 libtool: link: /opt/local/bin/gcc-mp-7 -pipe -O0 -arch ppc -fno-strict-
 aliasing -Wl,-headerpad_max_install_names -arch ppc -o .libs/clamscan
 output.o getopt.o optparser.o actions.o misc.o clamscan.o manager.o
 -L/opt/local/lib ../libclamav/.libs/libclamav.dylib
 /opt/local/lib/libiconv.dylib -ljson-c -lbz2 /opt/local/lib/libltdl.dylib
 /opt/local/lib/libxml2.dylib
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.102.4/libclamav/.libs/libclammspack.dylib
 -lssl -lcrypto -lz /opt/local/lib/libpcre2-8.dylib
 /opt/local/lib/libcharset.dylib -pthread
 Undefined symbols:
   "_unlinkat", referenced from:
       _traverse_unlink in actions.o
   "_renameat", referenced from:
       _traverse_rename in actions.o
   "_openat", referenced from:
       _traverse_to in actions.o
 ld: symbol(s) not found
 collect2: error: ld returned 1 exit status
 make[2]: *** [clamscan] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.102.4/clamscan'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.102.4'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.102.4'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.102.4"
 && /usr/bin/make -w all
 Exit code: 2
 }}}

 Besides this, `clamav` does not compile with `Apple's GCC` on `PPC Tiger`
 but needs `GCC7` or such.

-- 
Ticket URL: <https://trac.macports.org/ticket/60872>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list