Opened 3 years ago
Last modified 3 years ago
#67604 assigned defect
rawhide is broken at least on 10.9 down, failing at linking; also fails on Rosetta and does not pass Macports’ archflags
| Reported by: | barracuda156 | Owned by: | macportsraf |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.8.1 |
| Keywords: | mavericks, mountainlion, lion, snowleopard, x86_64, i386, powerpc | Cc: | |
| Port: | rawhide |
Description
Undefined symbols for architecture x86_64:
"_faccessat", referenced from:
_c_readable in rhcmds.o
_c_writable in rhcmds.o
_c_executable in rhcmds.o
"_fdopendir$INODE64", referenced from:
_get_dirsize in rhcmds.o
_rawhide_traverse in rhdir.o
"_fstatat", referenced from:
_prepare_target in rhcmds.o
_rawhide_traverse in rhdir.o
"_openat", referenced from:
_get_dirsize in rhcmds.o
_rawhide_traverse in rhdir.o
"_readlinkat", referenced from:
_read_symlink in rhcmds.o
_visitf_default in rhdir.o
"_unlinkat", referenced from:
_visitf_unlink in rhdir.o
ld: symbol(s) not found for architecture x86_64
Change History (6)
comment:1 Changed 3 years ago by barracuda156
comment:2 Changed 3 years ago by barracuda156
| Keywords: | powerpc added |
|---|---|
| Summary: | rawhide is broken at least on 10.9 down, failing at linking → rawhide is broken at least on 10.9 down, failing at linking; also fails on Rosetta and does not pass Macports’ archflags |
comment:3 Changed 3 years ago by barracuda156
It also does not pass flags to link to legacysupport, so no surprise linking fails.
comment:4 Changed 3 years ago by macportsraf
It was linking on 10.6.8 until I was confused into removing the makefile port group from the portfile. Putting it back fixes the linking. Hopefully, it also fixes the Rosetta for ppc problem linking with libpcre2 and libmagic.
comment:5 follow-up: 6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
https://github.com/macports/macports-ports/pull/19047 may resolve this.
comment:6 Changed 3 years ago by aeiouaeiouaeiouaeiouaeiouaeiou
Replying to ryandesign:
https://github.com/macports/macports-ports/pull/19047 may resolve this.
Still not merged and reports a "bad file descriptor" on test run.
Note: See
TracTickets for help on using
tickets.

Also fails on Rosetta for ppc (notice that the build system does not pass archflags):
---> Configuring rawhide Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rawhide/rawhide/work/rawhide-3.2" && ./configure --prefix=/opt/local --macports Configuring for macos Configuring CC as /usr/bin/gcc-4.2 Configuring --enable-acl (default) Configuring --enable-ea (default) Configuring --enable-attr (default) Configuring --enable-pcre2 (default when present) Configuring --enable-magic (default) Configuring --prefix=/opt/local Configuring --macports ---> Building rawhide Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rawhide/rawhide/work/rawhide-3.2" && /usr/bin/make -j8 -w rh make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rawhide/rawhide/work/rawhide-3.2' /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rhcmds.c /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rh.c /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rhparse.c /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rhdir.c /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rhdata.c /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rhstr.c /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -c rherr.c In file included from rhstr.c:62: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ In file included from rherr.c:34: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ In file included from rhdata.c:36: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ In file included from rh.c:40: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ In file included from rhparse.c:41: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ rh.c: In function ‘help_message’: rh.c:152: warning: ISO C90 forbids mixed declarations and code rhparse.c:1234:3: warning: use of C99 long long integer constant rhparse.c:1234:14: warning: use of C99 long long integer constant rhparse.c:1234:25: warning: use of C99 long long integer constant rhparse.c:1234:36: warning: use of C99 long long integer constant rhparse.c:1234:47: warning: use of C99 long long integer constant rhparse.c:1234:58: warning: use of C99 long long integer constant rhparse.c:1235:3: warning: use of C99 long long integer constant rhparse.c:1235:11: warning: use of C99 long long integer constant rhparse.c:1235:22: warning: use of C99 long long integer constant rhparse.c:1235:36: warning: use of C99 long long integer constant rhparse.c:1235:53: warning: use of C99 long long integer constant rhparse.c:1235:73: warning: use of C99 long long integer constant rhparse.c: In function ‘show_token’: rhparse.c:1727: warning: ISO C90 does not support the ‘ll’ printf length modifier In file included from rhdir.c:63: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ In file included from rhcmds.c:78: rh.h:87: warning: ISO C90 does not support ‘long long’ rh.h:88: warning: ISO C90 does not support ‘long long’ rhdir.c: In function ‘visitf_long’: rhdir.c:1390: warning: ISO C90 does not support the ‘%z’ strftime format rhdir.c:1390: warning: ISO C90 does not support the ‘%e’ strftime format rhdir.c:1399: warning: ISO C90 does not support the ‘%z’ strftime format rhdir.c:1399: warning: ISO C90 does not support the ‘%e’ strftime format rhdir.c:1408: warning: ISO C90 does not support the ‘%z’ strftime format rhdir.c:1408: warning: ISO C90 does not support the ‘%e’ strftime format rhdir.c: In function ‘json’: rhdir.c:2346: warning: ISO C90 does not support the ‘%z’ strftime format rhdir.c:2347: warning: ISO C90 does not support the ‘%z’ strftime format rhdir.c:2348: warning: ISO C90 does not support the ‘%z’ strftime format rhdir.c: In function ‘visitf_format’: rhdir.c:2491: warning: ISO C90 does not support the ‘%e’ strftime format rhdir.c:2549: warning: ISO C90 does not support the ‘%e’ strftime format rhdir.c:2829: warning: ISO C90 does not support the ‘%e’ strftime format /usr/bin/gcc-4.2 -O3 -g -Wall -pedantic -DETCDIR=\"/opt/local/etc\" -DRAWHIDE_NAME=\"rawhide\" -DRAWHIDE_PROG_NAME=\"rh\" -DRAWHIDE_VERSION=\"3.2\" -DRAWHIDE_DATE=\"20230609\" -DHAVE_PCRE2=1 -DHAVE_ACL=1 -DHAVE_POSIX_ACL=1 -DHAVE_MACOS_ACL=1 -DHAVE_EA=1 -DHAVE_MACOS_EA=1 -DHAVE_FLAGS=1 -DHAVE_MAGIC=1 -I/opt/local/include -o rh rhcmds.o rh.o rhparse.o rhdir.o rhdata.o rhstr.o rherr.o -L/opt/local/lib -lpcre2-8 -lmagic ld: warning: in /opt/local/lib/libpcre2-8.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in /opt/local/lib/libmagic.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64) Undefined symbols: "_pcre2_match_data_create_from_pattern_8", referenced from: _rematch in rhcmds.o "_pcre2_get_error_message_8", referenced from: _pcre2_compile_cached in rhcmds.o "_pcre2_code_free_8", referenced from: _pcre2_compile_cached in rhcmds.o _pcre2_compile_cached in rhcmds.o _pcre2_compile_cached in rhcmds.o "_magic_load", referenced from: _get_mime in rhcmds.o _get_mime in rhcmds.o _get_what in rhcmds.o _get_what in rhcmds.o "_unlinkat", referenced from: _visitf_unlink in rhdir.o "_openat", referenced from: _get_dirsize in rhcmds.o _rawhide_traverse in rhdir.o "_magic_open", referenced from: _get_mime in rhcmds.o _get_mime in rhcmds.o _get_what in rhcmds.o _get_what in rhcmds.o "_pcre2_match_data_free_8", referenced from: _rematch in rhcmds.o "_pcre2_compile_8", referenced from: _pcre2_compile_cached in rhcmds.o "_magic_file", referenced from: _get_mime in rhcmds.o _get_what in rhcmds.o "_magic_close", referenced from: _magic_cleanup in rh.o _magic_cleanup in rh.o _magic_cleanup in rh.o _magic_cleanup in rh.o "_faccessat", referenced from: _c_executable in rhcmds.o _c_writable in rhcmds.o _c_readable in rhcmds.o "_fdopendir$INODE64", referenced from: _get_dirsize in rhcmds.o _rawhide_traverse in rhdir.o "_readlinkat", referenced from: _read_symlink in rhcmds.o _visitf_default in rhdir.o "_pcre2_match_8", referenced from: _rematch in rhcmds.o "_fstatat", referenced from: _prepare_target in rhcmds.o _rawhide_traverse in rhdir.o _rawhide_traverse in rhdir.o ld: symbol(s) not found collect2: ld returned 1 exit status