Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21861 closed defect (fixed)

rpm - 4.4.9 - doesn't build cause to libbd.la error

Reported by: antoine.mercadal@… Owned by: n3npq@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: afb@…
Port: rpm

Description

[Snow Leopard] Trying to build createrepo port. RPM build fails because of an error with libdbd.la

Pulsar:rpm-4.4.9 Tonio$ sudo port install py-sqlite
--->  Computing dependencies for py-sqlite
--->  Cleaning py-sqlite
Pulsar:rpm-4.4.9 Tonio$ sudo port -v install createrepo
--->  Computing dependencies for createrepo..
--->  Building rpm
/usr/bin/gnumake  all-recursive
Making all in po
gnumake[2]: Nothing to be done for `all'.
Making all in misc
gnumake[2]: Nothing to be done for `all'.
Making all in zlib
/usr/bin/gnumake  all-am
gnumake[3]: Nothing to be done for `all-am'.
Making all in file
/usr/bin/gnumake  all-recursive
Making all in src
/usr/bin/gnumake  all-am
gnumake[5]: Nothing to be done for `all-am'.
Making all in magic
gnumake[4]: Nothing to be done for `all'.
Making all in doc
gnumake[4]: Nothing to be done for `all'.
Making all in python
gnumake[4]: Nothing to be done for `all'.
gnumake[4]: Nothing to be done for `all-am'.
Making all in db3
gnumake[2]: Nothing to be done for `all'.
Making all in syck
Making all in lib
/usr/bin/gnumake  all-am
gnumake[4]: Nothing to be done for `all-am'.
gnumake[3]: Nothing to be done for `all-am'.
Making all in lua
gnumake[2]: Nothing to be done for `all'.
Making all in rpmio
gnumake[2]: Nothing to be done for `all'.
Making all in rpmdb
/usr/bin/gnumake  all-am
sed -e"/^libdir=/s/^.*$/libdir=''/" < ../db3/libdb-4.5.la > ../db3/libdb.la
/bin/sh: ../db3/libdb-4.5.la: No such file or directory
gnumake[3]: *** [../db3/libdb.la] Error 1
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/work/rpm-4.4.9" && /usr/bin/gnumake -j2 all " returned error 2
Command output: /usr/bin/gnumake  all-recursive
Making all in src
/usr/bin/gnumake  all-am
gnumake[5]: Nothing to be done for `all-am'.
Making all in magic
gnumake[4]: Nothing to be done for `all'.
Making all in doc
gnumake[4]: Nothing to be done for `all'.
Making all in python
gnumake[4]: Nothing to be done for `all'.
gnumake[4]: Nothing to be done for `all-am'.
Making all in db3
gnumake[2]: Nothing to be done for `all'.
Making all in syck
Making all in lib
/usr/bin/gnumake  all-am
gnumake[4]: Nothing to be done for `all-am'.
gnumake[3]: Nothing to be done for `all-am'.
Making all in lua
gnumake[2]: Nothing to be done for `all'.
Making all in rpmio
gnumake[2]: Nothing to be done for `all'.
Making all in rpmdb
/usr/bin/gnumake  all-am
sed -e"/^libdir=/s/^.*$/libdir=''/" < ../db3/libdb-4.5.la > ../db3/libdb.la
/bin/sh: ../db3/libdb-4.5.la: No such file or directory
gnumake[3]: *** [../db3/libdb.la] Error 1
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Warning: the following items did not execute (for rpm): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: rpm
Error: Status 1 encountered during processing.

Attachments (3)

debug.log (66.1 KB) - added by antoine.mercadal@… 15 years ago.
debug.log
debug-build.jobs1.log (462.0 KB) - added by antoine.mercadal@… 15 years ago.
db3.config.log (167.0 KB) - added by antoine.mercadal@… 15 years ago.

Download all attachments as: .zip

Change History (29)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to n3npq@…

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Keywords: rpm createrepo removed

comment:3 Changed 15 years ago by afb@…

Please attach the entire output from:

sudo port clean rpm
sudo port -d build rpm

As often, the port -v output is useless.

comment:4 Changed 15 years ago by antoine.mercadal@…

here it is :

$ sudo port clean rpm
Password:
--->  Cleaning rpm

$ sudo port install rpm
--->  Computing dependencies for rpm
--->  Fetching rpm
--->  Verifying checksum(s) for rpm
--->  Extracting rpm
--->  Applying patches to rpm
--->  Configuring rpm
--->  Building rpm
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/work/rpm-4.4.9" && /usr/bin/gnumake -j2 all " returned error 2
Command output:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT trees.lo -MD -MP -MF .deps/trees.Tpo -c trees.c  -fno-common -DPIC -o .libs/trees.o
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT inflate.lo -MD -MP -MF .deps/inflate.Tpo -c inflate.c -o inflate.o >/dev/null 2>&1
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT trees.lo -MD -MP -MF .deps/trees.Tpo -c trees.c -o trees.o >/dev/null 2>&1
mv -f .deps/inflate.Tpo .deps/inflate.Plo
/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.   -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT uncompr.lo -MD -MP -MF .deps/uncompr.Tpo -c -o uncompr.lo uncompr.c
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT uncompr.lo -MD -MP -MF .deps/uncompr.Tpo -c uncompr.c  -fno-common -DPIC -o .libs/uncompr.o
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT uncompr.lo -MD -MP -MF .deps/uncompr.Tpo -c uncompr.c -o uncompr.o >/dev/null 2>&1
mv -f .deps/uncompr.Tpo .deps/uncompr.Plo
/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.   -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT zutil.lo -MD -MP -MF .deps/zutil.Tpo -c -o zutil.lo zutil.c
mv -f .deps/trees.Tpo .deps/trees.Plo
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.   -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT example.o -MD -MP -MF .deps/example.Tpo -c -o example.o example.c
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT zutil.lo -MD -MP -MF .deps/zutil.Tpo -c zutil.c  -fno-common -DPIC -o .libs/zutil.o
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT zutil.lo -MD -MP -MF .deps/zutil.Tpo -c zutil.c -o zutil.o >/dev/null 2>&1
mv -f .deps/zutil.Tpo .deps/zutil.Plo
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.   -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -MT minigzip.o -MD -MP -MF .deps/minigzip.Tpo -c -o minigzip.o minigzip.c
mv -f .deps/example.Tpo .deps/example.Po
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf  -L/opt/local/lib -o libz.la  adler32.lo compress.lo crc32.lo deflate.lo gzio.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo uncompr.lo zutil.lo  
mv -f .deps/minigzip.Tpo .deps/minigzip.Po
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf .libs/libz.a -L/opt/local/lib -o example example.o  
/usr/bin/gcc-4.2 -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -o example example.o  .libs/libz.a -L/opt/local/lib  
i686-apple-darwin10-gcc-4.2.1: .libs/libz.a: No such file or directory
gnumake[3]: *** [example] Error 1
gnumake[3]: *** Waiting for unfinished jobs....
ar cru .libs/libz.a .libs/adler32.o .libs/compress.o .libs/crc32.o .libs/deflate.o .libs/gzio.o .libs/infback.o .libs/inffast.o .libs/inflate.o .libs/inftrees.o .libs/trees.o .libs/uncompr.o .libs/zutil.o
ranlib .libs/libz.a
creating libz.la
(cd .libs && rm -f libz.la && ln -s ../libz.la libz.la)
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:5 Changed 15 years ago by antoine.mercadal@…

oh. I've just notice that this is not the same problem... Anyway, rpm still doesn't build.

comment:6 Changed 15 years ago by antoine.mercadal@…

I've aslo noticed that if I simply relaunch the command

sudo port install rpm

without cleaning before I get back the first submited error about libdb :

sudo port install rpm
--->  Computing dependencies for rpm
--->  Building rpm
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rpm/work/rpm-4.4.9" && /usr/bin/gnumake -j2 all " returned error 2
Command output: rpmdb.c:1175: warning: no previous prototype for 'rpmdbOpenDatabase'
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT tagname.lo -MD -MP -MF .deps/tagname.Tpo -c tagname.c -o tagname.o >/dev/null 2>&1
mv -f .deps/tagname.Tpo .deps/tagname.Plo
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include  -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT tagtbl.lo -MD -MP -MF .deps/tagtbl.Tpo -c -o tagtbl.lo tagtbl.c
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT tagtbl.lo -MD -MP -MF .deps/tagtbl.Tpo -c tagtbl.c  -fno-common -DPIC -o .libs/tagtbl.o
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT tagtbl.lo -MD -MP -MF .deps/tagtbl.Tpo -c tagtbl.c -o tagtbl.o >/dev/null 2>&1
mv -f .deps/tagtbl.Tpo .deps/tagtbl.Plo
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include  -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT db3.lo -MD -MP -MF .deps/db3.Tpo -c -o db3.lo db3.c
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT db3.lo -MD -MP -MF .deps/db3.Tpo -c db3.c  -fno-common -DPIC -o .libs/db3.o
db3.c: In function 'db_init':
db3.c:359: warning: passing argument 2 of 'dbenv->set_errcall' from incompatible pointer type
db3.c: In function 'db3close':
db3.c:980: warning: passing argument 2 of 'dbenv->set_errcall' from incompatible pointer type
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT db3.lo -MD -MP -MF .deps/db3.Tpo -c db3.c -o db3.o >/dev/null 2>&1
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT rpmdb.lo -MD -MP -MF .deps/rpmdb.Tpo -c rpmdb.c -o rpmdb.o >/dev/null 2>&1
mv -f .deps/db3.Tpo .deps/db3.Plo
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include  -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT sqlite.lo -MD -MP -MF .deps/sqlite.Tpo -c -o sqlite.lo sqlite.c
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT sqlite.lo -MD -MP -MF .deps/sqlite.Tpo -c sqlite.c  -fno-common -DPIC -o .libs/sqlite.o
sqlite.c: In function 'sql_step':
sqlite.c:456: warning: pointer targets in initialization differ in signedness
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../rpmio -I/opt/local/include/beecrypt -I/opt/local/include -I../misc -I/opt/local/include -I../zlib -I/opt/local/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -O2 -arch x86_64 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT sqlite.lo -MD -MP -MF .deps/sqlite.Tpo -c sqlite.c -o sqlite.o >/dev/null 2>&1
mv -f .deps/rpmdb.Tpo .deps/rpmdb.Plo
sed -e"/^libdir=/s/^.*$/libdir=''/" < ../db3/libdb-4.5.la > ../db3/libdb.la
/bin/sh: ../db3/libdb-4.5.la: No such file or directory
gnumake[3]: *** [../db3/libdb.la] Error 1
gnumake[3]: *** Waiting for unfinished jobs....
mv -f .deps/sqlite.Tpo .deps/sqlite.Plo
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

weird...

comment:7 Changed 15 years ago by afb@…

Please attach debug log.

comment:8 Changed 15 years ago by afb@…

Cc: afb@… added

Cc Me!

Changed 15 years ago by antoine.mercadal@…

Attachment: debug.log added

debug.log

comment:9 Changed 15 years ago by antoine.mercadal@…

I've not received a mail notfication. Just to say that I've attached the debug.log to the ticket.

comment:10 Changed 15 years ago by afb@…

Thank you! There doesn't seem to be anything wrong with it, so it could be that the old rpm doesn't support "make -j"*.

Please try again, but this time append "build.jobs=1" to it: (this will disable the default attempt to build in parallel)

sudo port clean rpm
sudo port -d build rpm build.jobs=1

comment:11 Changed 15 years ago by afb@…

Note also that if all else fails, RPM5 comes with rpmrepo(8) bundled.

http://rpm5.org/files/rpm/rpm-5.2/BINARY/RPM5-20090707.dmg

Changed 15 years ago by antoine.mercadal@…

Attachment: debug-build.jobs1.log added

comment:12 Changed 15 years ago by antoine.mercadal@…

OK now the libz problem vanish. But I'm still getting the first encountered error about libdb-4.5 (see the second attached file for debug output)

comment:13 Changed 15 years ago by afb@…

Strange, especially since the actual library (db3/libdb-4.5.a) seems to be in place ?

Maybe it just needs a makefile patch so that missing a .la doesn't terminate the build.

# XXX grrr, force noinst libdb.la for db3.
$(libdb_la):
        sed -e"/^libdir=/s/^.*$$/libdir=''/" < $(top_builddir)/$(WITH_DB_SUBDIR)/libdb-4.5.la > $(libdb_la)
            

comment:14 Changed 15 years ago by afb@…

This would be the difference why it didn't build the shared library (of which the .la is part, strangely):

checking whether the /usr/bin/gcc-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... no

versus

checking whether the /usr/bin/gcc-4.0 linker (/usr/bin/ld) supports shared libraries... yes

You'll need to attach the config.log file from the port work rpm subdirectory to know why that is.

comment:15 Changed 15 years ago by afb@…

That would be the "config.log" from the "rpm-4.4.9/db3" subdirectory, of the work directory.

comment:16 Changed 15 years ago by antoine.mercadal@…

sure. You can find it as the attached file named db3.config.log

Changed 15 years ago by antoine.mercadal@…

Attachment: db3.config.log added

comment:17 Changed 15 years ago by afb@…

Darnit, it still doesn't say why it doesn't want to allow shared libraries.

configure:9883: checking whether the /usr/bin/gcc-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries
configure:10869: result: no

It seems to work just fine in all the other configures, as given earlier.

comment:18 Changed 15 years ago by afb@…

It is the new -arch flag in MacPorts, that is killing the build:

configure:2052: checking build system type
configure:2070: result: x86_64-pc-none

So it forgot that it is "darwin", which is why no shared libraries.

comment:19 Changed 15 years ago by afb@…

Keywords: snowleopard removed

comment:20 Changed 15 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r59467.

The real solution is to upgrade to RPM5 which has a much better build system.

comment:21 Changed 15 years ago by antoine.mercadal@…

OK. but as this version of RPM is required to build, what should I do ?

comment:22 Changed 15 years ago by antoine.mercadal@…

to build *createrepo*, sorry

comment:23 in reply to:  21 ; Changed 15 years ago by afb@…

Replying to antoine.mercadal@…:

OK. but as this version of RPM is required to build, what should I do ?

The port should build now, with revision @4.4.9_9

Just meant that the workaround isn't very pretty. :-)

comment:24 Changed 15 years ago by lord@…

Sorry for naive questions - how can I get fixed revision to install this package?

comment:25 in reply to:  24 Changed 15 years ago by afb@…

Sorry for naive questions - how can I get fixed revision to install this package?

sudo port sync

Or see the Portfile from the Changeset and built it manually.

comment:26 in reply to:  23 Changed 15 years ago by antoine.mercadal@…

Replying to afb@…:

OK. but as this version of RPM is required to build, what should I do ?

The port should build now, with revision @4.4.9_9 Just meant that the workaround isn't very pretty. :-)

Pretty or not, it works! thank you :)

Note: See TracTickets for help on using tickets.