git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Building GIT on HP-UX: "make test" fails

From
UWUlrich Windl <ulrich.windl@rz.uni-regensburg.de>
Date
Aug 3, 2009, 10:54 UTC
Message-ID
<4A76DDEE.6699.119A5FD@Ulrich.Windl.rkdvmks1.ngate.uni-regensburg.de>

(not subscribed, so please CC: replies to me, please (if replies go to the list)) Hello,

I've tried to build GIT (git-1.6.2.5) on HP-UX 11.31 (IA64) using "gcc (GCC) 4.2.1". Unfortunately the "make test" failed after build. Here are some details:

Configure command: ./configure CC=gcc LIBS="-L../gzip-1.3.12/lib -lgzip" --prefix=/usr/local

(There were problems with "-lz" which seems to be "-lgzip" for recent builds; I had to manually edit the Makefile) [...] checking for deflateBound in -lz... no [...] Is the configure program expected to continue if there is no "-lz"?

"-lz" problem:
% make all
    LINK git-fast-import
ld: Can't find library for -lz
Fatal error.
collect2: ld returned 1 exit status

Eventually the build succeeded, but there was one warning: daemon.c: In function 'service_loop': daemon.c:855: warning: passing argument 3 of 'accept' from incompatible pointer type

Line is: int incoming = accept(pfd[i].fd, (struct sockaddr *)&ss, &sslen);

HP-UX manual has this prototype: int accept(int s, void *addr, int *addrlen);

Here is the end of "make test":
[...]
*** t0100-previous.sh ***
*   ok 1: branch -d @{-1}
*   ok 2: branch -d @{-12} when there is not enough switches yet
* FAIL 3: merge @{-1}
                git checkout A &&
                test_commit B &&
                git checkout A &&
                test_commit C &&
                git branch -f master B &&
                git branch -f other &&
                git checkout other &&
                git checkout master &&
                git merge @{-1} &&
                git cat-file commit HEAD | grep "Merge branch 'other'"
* FAIL 4: merge @{-1} when there is not enough switches yet
                git reflog expire --expire=now &&
                git checkout -f master &&
                git reset --hard B &&
                git branch -f other C &&
                git checkout other &&
                git checkout master &&
                test_must_fail git merge @{-12}
* failed 2 among 4 test(s)
make[2]: *** [t0100-previous.sh] Error 1
[...]

I can try some simple things fixing the problem, but I don't have an Internet connection at that machine.

Regards, Ulrich

Next: Alex Riesen
Message 1 of 3 in “Building GIT on HP-UX: "make test" fails”
  1. Ulrich WindlAug 3, 2009
  2. Alex RiesenAug 3, 2009
  3. Ulrich WindlAug 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.