On Sat, Mar 03, 2007, Caleb Epstein wrote:

> The latest GNU "file" package from OpenPKG-CURRENT fails to compile on
> Solaris due to the unknown regexec flag "REG_STARTEND" in
> src/softmagic.c.  Solaris only knows REG_NOTBOL and REG_NOTEOL.
>
> if /bin/bash ../libtool --tag=CC --mode=compile /openpkg-current/bin/cc
> -DHAVE_C
> ONFIG_H -I. -I. -I..  -DMAGIC='"/openpkg-current/share/file/magic"'
> -I/openpkg-c
> urrent/include  -O2 -pipe -I/openpkg-current/include -MT softmagic.lo -MD
> -MP -M
> F ".deps/softmagic.Tpo" -c -o softmagic.lo softmagic.c; \
>        then mv -f ".deps/softmagic.Tpo" ".deps/softmagic.Plo"; else rm -f
>        ".dep
> s/softmagic.Tpo"; exit 1; fi
> /openpkg-current/bin/cc -DHAVE_CONFIG_H -I. -I. -I..
> -DMAGIC=\"/openpkg-current
> /share/file/magic\" -I/openpkg-current/include -O2 -pipe
> -I/openpkg-current/incl
> ude -MT softmagic.lo -MD -MP -MF .deps/softmagic.Tpo -c softmagic.c -o
> softmagic
> .o
> softmagic.c: In function 'magiccheck':
> softmagic.c:1529: error: 'REG_STARTEND' undeclared (first use in this
> function)
> softmagic.c:1529: error: (Each undeclared identifier is reported only once
> softmagic.c:1529: error: for each function it appears in.)
> make[2]: *** [softmagic.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> error: Bad exit status from /openpkg-current/RPM/TMP/rpm-tmp.1379 (%build)

Under Solaris 10 it compiles just fine. So, seems you have Solaris 9
or older, right? Ok, I tried to apply a workaround for those older
platforms: http://cvs.openpkg.org/chngview?cn=34332

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to