[MacPorts] #67368: apr-util does not respect Macports arch settings
MacPorts
noreply at macports.org
Wed May 3 15:15:22 UTC 2023
#67368: apr-util does not respect Macports arch settings
-------------------------------------------+------------------------
Reporter: barracuda156 | Owner: danielluke
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: snowleopard, powerpc, rosetta | Port: apr-util
-------------------------------------------+------------------------
On Rosetta:
{{{
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC
/usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -DHAVE_CONFIG_H -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_devel_apr-util/apr-util/work/apr-
util-1.6.3/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_devel_apr-util/apr-util/work/apr-
util-1.6.3/include/private -I/opt/local/include
-I/opt/local/include/apr-1 -I/opt/local/include -version-info 6:3:6
-L/opt/local/lib -Wl,-headerpad_max_install_names -o libaprutil-1.la
-rpath /opt/local/lib buckets/apr_brigade.lo buckets/apr_buckets.lo
buckets/apr_buckets_alloc.lo buckets/apr_buckets_eos.lo
buckets/apr_buckets_file.lo buckets/apr_buckets_flush.lo
buckets/apr_buckets_heap.lo buckets/apr_buckets_mmap.lo
buckets/apr_buckets_pipe.lo buckets/apr_buckets_pool.lo
buckets/apr_buckets_refcount.lo buckets/apr_buckets_simple.lo
buckets/apr_buckets_socket.lo crypto/apr_crypto.lo crypto/apr_md4.lo
crypto/apr_md5.lo crypto/apr_passwd.lo crypto/apr_sha1.lo
crypto/apr_siphash.lo crypto/crypt_blowfish.lo crypto/getuuid.lo
crypto/uuid.lo dbd/apr_dbd.lo dbm/apr_dbm.lo dbm/apr_dbm_sdbm.lo
dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo dbm/sdbm/sdbm_lock.lo
dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo hooks/apr_hooks.lo
ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo memcache/apr_memcache.lo
misc/apr_date.lo misc/apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo
misc/apr_thread_pool.lo misc/apu_dso.lo misc/apu_version.lo
redis/apr_redis.lo strmatch/apr_strmatch.lo uri/apr_uri.lo xlate/xlate.lo
xml/apr_xml.lo -lpthread -L/opt/local/lib/db48 -L/opt/local/lib -lexpat
-liconv /opt/local/lib/libapr-1.la -lpthread
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC
/usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -L/opt/local/lib
-Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -L/opt/local/lib
-release 1 -module -rpath /opt/local/lib/apr-util-1 -o dbm/apr_dbm_db.la
dbm/apr_dbm_berkeleydb.lo -ldb-4.8
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC
/usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -L/opt/local/lib
-Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -L/opt/local/lib
-release 1 -module -rpath /opt/local/lib/apr-util-1 -o
dbd/apr_dbd_sqlite3.la dbd/apr_dbd_sqlite3.lo -L/opt/local/lib -lsqlite3
ld: warning: in /opt/local/lib/db48/libdb-4.8.dylib, file was built for
ppc7400 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libexpat.dylib, file was built for ppc7400
which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libiconv.dylib, file was built for ppc7400
which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libapr-1.dylib, file was built for ppc7400
which is not the architecture being linked (x86_64)
/opt/local/bin/ranlib: file: .libs/libaprutil-1.a(apr_crypto.o) has no
symbols
/opt/local/bin/ranlib: file: .libs/libaprutil-1.a(apr_ldap_stub.o) has no
symbols
/opt/local/bin/ranlib: file: .libs/libaprutil-1.a(apr_ldap_url.o) has no
symbols
ranlib: file: .libs/libaprutil-1.a(apr_crypto.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_stub.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_url.o) has no symbols
}}}
Subsequently, `libaprutil-1.dylib` is unusable. When trying to build
`apache2`, this happens:
{{{
/opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC
/opt/local/bin/gcc-mp-12 -pipe -Os -arch ppc -L/opt/local/lib/db48
-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o htpasswd
htpasswd.lo passwd_common.lo /opt/local/lib/libaprutil-1.la -ldb-4.8
-lexpat -liconv /opt/local/lib/libapr-1.la -lpthread
/opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC
/opt/local/bin/gcc-mp-12 -pipe -Os -arch ppc -L/opt/local/lib/db48
-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o htdigest
htdigest.lo /opt/local/lib/libaprutil-1.la -ldb-4.8 -lexpat -liconv
/opt/local/lib/libapr-1.la -lpthread
ld: warning: in /opt/local/lib/libaprutil-1.dylib, file was built for
unsupported file format which is not the architecture being linked (ppc)
Undefined symbols:
"_apr_md5_encode", referenced from:
_mkhash in passwd_common.o
"_apr_bcrypt_encode", referenced from:
_mkhash in passwd_common.o
"_apr_sha1_base64", referenced from:
_mkhash in passwd_common.o
"_apr_password_validate", referenced from:
_main in htpasswd.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: *** Waiting for unfinished jobs....
ld: warning: in /opt/local/lib/libaprutil-1.dylib, file was built for
unsupported file format which is not the architecture being linked (ppc)
Undefined symbols:
"_apr_md5_update", referenced from:
_add_password in htdigest.o
"_apr_md5_final", referenced from:
_add_password in htdigest.o
"_apr_md5_init", referenced from:
_add_password in htdigest.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67368>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list