On Mon, Aug 4, 2008 at 9:10 AM, Xavier <shiningxc@gmail.com> wrote:
Actually, I always had this problem with cygwin, the normal src/pacman/pacman seems to always use the system wide libalpm. So I always had to make install first before running make check or src/pacman/pacman. I don't know if there is also a lt-pacman there.
Arf, after inspecting this pacman libtool generated script, I noticed the PATH directories were totally messed up. And that is once again because of directory whitespaces. The default HOME in cygwin is the user directory, so : /cygdrive/c/Documents and Settings/<username> So I naturally started working there, but it looks like GNU tools in general play quite badly with it. I am tired of trying to debug this crap so I just moved everything in a dir with no spaces, and now it is a bit better. At least now src/pacman/pacman works properly using the correct libalpm. But looks like there is still something wrong : $ ls -al src/pacman/.libs -rw-r--r-- 1 xav Some 7756 Aug 4 11:30 lt-pacman.c -rwxr-xr-x 1 xav Some 188468 Aug 4 11:29 pacman.exe So lt-pacman does not get compiled or something, I don't know.. Actually, I did not even know the differences between lt-pacman and pacman, but I just found out : $ ldd src/pacman/.libs/lt-pacman linux-gate.so.1 => (0xb80a0000) libalpm.so.3 => /home/xav/divers/pacman/lib/libalpm/.libs/libalpm.so.3 (0xb807f000) libdownload.so => /usr/lib/libdownload.so (0xb8069000) libarchive.so.2 => /usr/lib/libarchive.so.2 (0xb803d000) $ ldd src/pacman/.libs/pacman linux-gate.so.1 => (0xb8085000) libalpm.so.3 => not found libdownload.so => /usr/lib/libdownload.so (0xb806e000) libarchive.so.2 => /usr/lib/libarchive.so.2 (0xb8042000) So lt-pacman is indeed the one we wants and links to the correct libalpm library. But it does not get built on cygwin..