pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39569: openssl-0.9.8h fails to build: Error: alignment not a power of 2

OBATA Akio wrote:
> The following reply was made to PR pkg/39569; it has been noted by GNATS.
> From: "OBATA Akio" <>
> To:
> Cc: 
> Subject: Re: pkg/39569: openssl-0.9.8h fails to build: Error: alignment not a
>  power of 2
> Date: Tue, 23 Sep 2008 19:50:47 +0900
>  OK.
>  After "make clean" and "make patch", open ${WRKSRC}/config by editor,
>  insert following lines at line 685 (above "case" line),
>       echo "`(file -L $libc) 2> /dev/null`"
>       file -v
>  then "make configure", what show up after "Operating system: 
> i686-whatever-netbsd"?

The line:

    echo "`(file -L $libc) 2> /dev/null`"

was returning no output, so it must have been producing an error.  (I've
never liked silently ignoring error output and ignoring error statuses
returned from commands).

I removed the STDERR redirection, and found the issue, summarized as:

    bash-3.2# /usr/bin/file -v
    magic file from /usr/share/misc/magic

Ok, that looks good. Let's run file:

    bash-3.2# /usr/bin/file
    /usr/share/misc/magic, 2393: Warning: <= not supported
    /usr/share/misc/magic, 5938: Warning: <= not supported
    /usr/share/misc/magic, 5941: Warning: <= not supported
    /usr/share/misc/magic, 7848: Warning: >= not supported
    file: File 4.26 supports only 6 version magic files.
        `/usr/share/misc/magic.mgc' is version 4

Here's our problem.  Let's see why file is using 4.26 APIs against

    bash-3.2# ls -l /usr/bin/file /usr/share/misc/magic
    -r-xr-xr-x  1 root  wheel   14303 Sep  1  2007 /usr/bin/file
    -r--r--r--  1 root  wheel  482863 Sep  1  2007 /usr/share/misc/magic

Nothing wrong here; these are originals.  Let's see what file pulling in:

    bash-3.2# ldd /usr/bin/file
            -lz.1 => /usr/pkg/lib/
            -lmagic.1 => /usr/local/lib/
            -lc.12 => /usr/lib/

Aha, file is using an updated version of file (v4.26), because:

    bash-3.2# cat /etc/       machdep.fpu_present,

Moving /usr/bin/file to /usr/bin/file.dist allows openssl to build

Thank you very much OBATA Akio for your time in narrowing this problem
to where I could resolve the issue.

We can consider this (non-)bug closed.


Home | Main Index | Thread Index | Old Index