RPM Community Forums

Mailing List Message of <rpm-users>

rpm on OSX Lion

From: Henri Gomez <henri.gomez@gmail.com>
Date: Sat 24 Mar 2012 - 00:41:11 CET
Message-ID: <CALyUpY2tmAM4FFUC332ox9_g1gjcauunr6SQC7KnniaiJzAsdQ@mail.gmail.com>
Hi to all,

I'm a long time rpm user and packager and I'd like to experiment it on
OSX (10.7.3) and Xcode 4.3.2.

I first tried to build latest tar ball, 5.3.5 :

- configure works
- make fail

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build
-I../lib -I../lib -I../rpmdb -I../rpmio -I../misc
-I../beecrypt/include -I../beecrypt/include -I../beecrypt
-I../beecrypt -I../pcre -I../pcre -I../db -I../db -I../db/src
-I../db/src -I../scripts -I../scripts -DRPM_OS_DARWIN=110300
-I/opt/local/include -I/opt/local/include -DRPM_OS_DARWIN=110300
-I/opt/local/include -I/opt/local/include -fopenmp -g -O2
-fno-delete-null-pointer-checks -D_FORTIFY_SOURCE=2 -fstack-protector
-fexceptions -fnested-functions -D_GNU_SOURCE -D_REENTRANT -MT
librpmdb_la-dbconfig.lo -MD -MP -MF .deps/librpmdb_la-dbconfig.Tpo -c
dbconfig.c  -fno-common -DPIC -o .libs/librpmdb_la-dbconfig.o
In file included from dbconfig.c:14:
./rpmdb.h:433: error: expected specifier-qualifier-list before 'DB_SEQUENCE'
./rpmdb.h:490: error: expected specifier-qualifier-list before 'DB_LOGC'
./rpmdb.h: In function 'dbiCopen':
./rpmdb.h:589: error: 'struct _dbiIndex' has no member named 'dbi_vec'
./rpmdb.h: In function 'dbiCclose':
./rpmdb.h:604: error: 'struct _dbiIndex' has no member named 'dbi_vec'
./rpmdb.h: In function 'dbiCdup':
./rpmdb.h:620: error: 'struct _dbiIndex' has no member named 'dbi_vec'
...

It seems others got problems with 5.3.5.

Second attempt with 5.3.11 (extracted from src rpm) :

- configure fail :

checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for BZ2_bzread in -lbz2... yes
checking whether to build with GNU BZip2 library... yes (external: implicitly)
checking lzma.h usability... no
checking lzma.h presence... no
checking for lzma.h... no
checking for lzma_auto_decoder in -llzma... no
checking whether to build with XZ libLZMA library... no
checking beecrypt/api.h usability... no
checking beecrypt/api.h presence... no
checking for beecrypt/api.h... no
checking for mpfprintln in -lbeecrypt... no
checking whether to build with BeeCrypt library... no
configure: error: mandatory BeeCrypt library not found

Third try, 5.4.4 :

- configure : works
- make : fail :


libtool: link: gcc -std=gnu99 -dynamiclib  -o .libs/libpopt.0.dylib
.libs/popt.o .libs/poptparse.o .libs/poptconfig.o .libs/popthelp.o
.libs/poptint.o    -O2 -Wl,-M -Wl,./libpopt.vers   -install_name
/usr/local/lib/libpopt.0.dylib -compatibility_version 1
-current_version 1.0 -Wl,-single_module
ld: warning: ignoring file ./libpopt.vers, file was built for
unsupported file format which is not the architecture being linked
(x86_64)
Undefined symbols for architecture x86_64:
 "_iconv_open", referenced from:
     _POPT_fprintf in poptint.o
 "_iconv", referenced from:
     _POPT_fprintf in poptint.o
 "_iconv_close", referenced from:
     _POPT_fprintf in poptint.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[4]: *** [libpopt.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Did someone succeed to build rpm 5.x on OSX Lion ?
Advices more than welcomed.

Thanks all
Received on Sat Mar 24 00:41:37 2012
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.