4 | | |
5 | | There proper "fix" here is rather not obvious: |
6 | | rpm-4.4.9 was released 4+ years ago and has no upgrade |
7 | | path and no future whatsoever. |
8 | | |
9 | | So the best fix imho is to retire rpm-4.4.9 and use rpm-5.2.1 instead. |
10 | | |
11 | | If you disagree, then its easy enough to either stub-in the symbol, |
12 | | or #if 0 the code, since MacPorts uses Mach-O, not ELF. If there really |
13 | | is someone who relies on rpm+elf on MacPorts, then rpm-5.2.1 |
14 | | (released several years ago) is a far better solution than repairing |
15 | | rpm-4.4.9. |
16 | | |
17 | | I can likely figure a "fix" for rpm-4.4.9 in a couple of minutes |
18 | | if there really is interest in rpm-4.4.9 functioning in MacPorts |
19 | | in spite of what I've just said. |
20 | | |
21 | | Which solution do you wish (and asked generally of MacPorts as well |
22 | | as specifically of the bug reporter)? |
| 4 | {{{ |
| 5 | ... |
| 6 | :info:build /usr/bin/gcc-4.2 -dynamiclib -o .libs/librpm-4.4.dylib .libs/cpio.o .libs/depends.o .libs/formats.o .libs/fs.o .libs/fsm.o .libs/getdate.o .libs/manifest.o .libs/misc.o .libs/package.o .libs/poptALL.o .libs/poptI.o .libs/poptQV.o .libs/psm.o .libs/query.o .libs/rpmal.o .libs/rpmchecksig.o .libs/rpmdpkg.o .libs/rpmds.o .libs/rpmevr.o .libs/rpmfc.o .libs/rpmfi.o .libs/rpmgi.o .libs/rpminstall.o .libs/rpmrollback.o .libs/rpmlead.o .libs/rpmlock.o .libs/rpmns.o .libs/rpmps.o .libs/rpmrc.o .libs/rpmsx.o .libs/rpmte.o .libs/rpmts.o .libs/signature.o .libs/stringbuf.o .libs/transaction.o .libs/verify.o .libs/tar.o -L/opt/local/lib ../rpmdb/.libs/librpmdb.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9/rpmio/.libs/librpmio.dylib /opt/local/lib/libbeecrypt.dylib /opt/local/lib/libneon.dylib /opt/local/lib/libssl.dylib /opt/local/lib/libcrypto.dylib /opt/local/lib/libexpat.dylib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9/zlib /opt/local/lib/libz.dylib /opt/local/lib/libbz2.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib /opt/local/lib/libsqlite3.dylib ../rpmio/.libs/librpmio.dylib /opt/local/lib/libpopt.dylib -arch x86_64 -install_name /opt/local/lib/librpm-4.4.dylib |
| 7 | :info:build Undefined symbols: |
| 8 | :info:build "_elf_strptr", referenced from: |
| 9 | :info:build _rpmdsELF in rpmds.o |
| 10 | :info:build _rpmdsELF in rpmds.o |
| 11 | :info:build _rpmdsELF in rpmds.o |
| 12 | :info:build _rpmdsELF in rpmds.o |
| 13 | :info:build _rpmdsELF in rpmds.o |
| 14 | :info:build ld: symbol(s) not found |
| 15 | :info:build collect2: ld returned 1 exit status |
| 16 | :info:build gnumake[3]: *** [librpm.la] Error 1 |
| 17 | :info:build gnumake[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9/lib' |
| 18 | :info:build gnumake[2]: *** [all] Error 2 |
| 19 | :info:build gnumake[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9/lib' |
| 20 | :info:build gnumake[1]: *** [all-recursive] Error 1 |
| 21 | :info:build gnumake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9' |
| 22 | :info:build gnumake: *** [all] Error 2 |
| 23 | :info:build gnumake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9' |
| 24 | :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/work/rpm-4.4.9" && /usr/bin/gnumake -w all " returned error 2 |
| 25 | :error:build Target org.macports.build returned: shell command failed (see log for details) |
| 26 | :debug:build Backtrace: shell command failed (see log for details) |
| 27 | while executing |
| 28 | "command_exec build" |
| 29 | (procedure "portbuild::build_main" line 8) |
| 30 | invoked from within |
| 31 | "$procedure $targetname" |
| 32 | :info:build Warning: the following items did not execute (for rpm): org.macports.activate org.macports.build org.macports.destroot org.macports.install |
| 33 | :error:build Failed to install rpm |
| 34 | :notice:build Log for rpm is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/rpm/main.log |
| 35 | }}} |