[pacman-dev] Unable to compile pacman in ubuntu-11.10

Jelle van der Waa jelle at vdwaa.nl
Wed Mar 28 03:48:30 EDT 2012

On Wed, Mar 28, 2012 at 9:02 AM, Talespin Kit <talespin_kit at yahoo.com>wrote:

> >You're going to have much better luck just transferring the pacman XZ
> >zipped package to the machine and unzipping it directly in '/', then
> >removing the /.PKGINFO and /.INSTALL file it will leave behind.
> I would like to modify the sources and understand the pacman code. so
> compiling the sources is a necessary.
> >You probably need the gettext development package installed.
> I have installed the gettext package version and it
> compiles the files in the **pacman/lib/libalpm/po** directory.
> Thank you for the info.
> But the make file reports error in **pacman/src/util** directory.
> $ make
> make  all-recursive
> make[1]: Entering directory `/home/user/tmp/pacman'
> Making all in lib/libalpm
> make[2]: Entering directory `/home/user/tmp/pacman/lib/libalpm'
> Making all in po
> make[3]: Entering directory `/home/user/tmp/pacman/lib/libalpm/po'
> make[3]: Leaving directory `/home/user/tmp/pacman/lib/libalpm/po'
> make[3]: Entering directory `/home/user/tmp/pacman/lib/libalpm'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/home/user/tmp/pacman/lib/libalpm'
> make[2]: Leaving directory `/home/user/tmp/pacman/lib/libalpm'
> Making all in src/util
> make[2]: Entering directory `/home/user/tmp/pacman/src/util'
>   CCLD   testpkg
> ../../lib/libalpm/.libs/libalpm.so: undefined reference to `MD5_Init'
> ../../lib/libalpm/.libs/libalpm.so: undefined reference to `MD5_Final'
> ../../lib/libalpm/.libs/libalpm.so: undefined reference to `SHA256_Init'
> ../../lib/libalpm/.libs/libalpm.so: undefined reference to `SHA256_Update'
> ../../lib/libalpm/.libs/libalpm.so: undefined reference to `MD5_Update'
> ../../lib/libalpm/.libs/libalpm.so: undefined reference to `SHA256_Final'
> Seems like MD5 related library has to be installed. I do not know which
> one to install. I was expecting ./configure scritpt to report about these
> required libraries.
> Br,
> Talespin
sounds like you didn't google, since googling this issue shows me that
people tried to include openssl.h. So the issue could be that you are
missing openssl-dev. Take a look at pacman's dependencies with:

pactree pacman

Jelle van der Waa

More information about the pacman-dev mailing list