[OpenIndiana-discuss] VLC dependancy libs

russell stream at willows7.myzen.co.uk
Thu Mar 12 20:45:38 UTC 2015


Hi

Just tried

CC=gcc CFLAGS='--std=gnu99' CPPFLAGS=-I/opt/gnu/include 
LDFLAGS=-L/opt/gnu/lib ./configure --prefix=/opt/gnu --enable-shared 
--without-trust-paths

This allowed the compilation to procedure further but it still failed

p11-kit-0.23.1$ gmake
gmake  all-recursive
gmake[1]: Entering directory `/home/downloads/gnu/vlc/libs/p11-kit-0.23.1'
Making all in .
gmake[2]: Entering directory `/home/downloads/gnu/vlc/libs/p11-kit-0.23.1'
   CC       p11-kit/libp11_kit_la-util.lo
   CC       p11-kit/libp11_kit_la-conf.lo
   CC       p11-kit/libp11_kit_la-iter.lo
   CC       p11-kit/libp11_kit_la-log.lo
   CC       p11-kit/libp11_kit_la-modules.lo
   CC       p11-kit/libp11_kit_la-pin.lo
   CC       p11-kit/libp11_kit_la-proxy.lo
   CC       p11-kit/libp11_kit_la-messages.lo
   CC       p11-kit/libp11_kit_la-rpc-transport.lo
   CC       p11-kit/libp11_kit_la-rpc-message.lo
   CC       p11-kit/libp11_kit_la-rpc-client.lo
   CC       p11-kit/libp11_kit_la-rpc-server.lo
   CC       p11-kit/libp11_kit_la-uri.lo
   CC       p11-kit/libp11_kit_la-virtual.lo
   CC       common/argv.lo
   CC       common/attrs.lo
   CC       common/array.lo
   CC       common/buffer.lo
   CC       common/compat.lo
common/compat.c: In function 'getauxval':
common/compat.c:820:3: warning: implicit declaration of function 
'issetugid' [-Wimplicit-function-declaration]
    secure = issetugid ();
    ^
common/compat.c:820:3: warning: nested extern declaration of 'issetugid' 
[-Wnested-externs]
   CC       common/constants.lo
   CC       common/debug.lo
common/debug.c: In function 'p11_debug_message':
common/debug.c:134:3: warning: format '%d' expects argument of type 
'int', but argument 3 has type 'pid_t' [-Wformat=]
    fprintf (stderr, "(p11-kit:%d) ", getpid());
    ^
   CC       common/dict.lo
common/dict.c: In function 'p11_dict_str_hash':
common/dict.c:332:2: warning: missing sentinel in function call [-Wformat=]
   p11_hash_murmur3 (&hash, string, strlen (string), NULL);
   ^
   CC       common/hash.lo
   CC       common/lexer.lo
   CC       common/message.lo
   CC       common/path.lo
common/path.c: In function 'expand_homedir':
common/path.c:125:4: warning: missing sentinel in function call [-Wformat=]
     return p11_path_build (env, remainder + 8, NULL);
     ^
common/path.c:130:3: warning: missing sentinel in function call [-Wformat=]
    return p11_path_build (env, remainder, NULL);
    ^
common/path.c:140:3: error: too many arguments to function 'getpwuid_r'
    ret = getpwuid_r (getuid (), &pws, buf, sizeof (buf), &pwd);
    ^
In file included from common/path.c:52:0:
/usr/include/pwd.h:166:23: note: declared here
  extern struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
                        ^
common/path.c:140:7: warning: assignment makes integer from pointer 
without a cast [enabled by default]
    ret = getpwuid_r (getuid (), &pws, buf, sizeof (buf), &pwd);


On 12/03/2015 20:38, russell wrote:
> Hi Alexander
>
> Thanks for the pointer, I have now built both libraries after rebuilding
> OpenSSL correctly.
>
> Currently trying to build p11-kit-0.23
>
> p11-kit-0.23.1$ CC=gcc std=c99 CPPFLAGS=-I/opt/gnu/include
> LDFLAGS=-L/opt/gnu/lib ./configure --prefix=/opt/gnu --enable-shared
> --without-trust-paths
>
> But I am getting the following error
>
> p11-kit-0.23.1$ gmake
> gmake  all-recursive
> gmake[1]: Entering directory `/home/downloads/gnu/vlc/libs/p11-kit-0.23.1'
> Making all in .
> gmake[2]: Entering directory `/home/downloads/gnu/vlc/libs/p11-kit-0.23.1'
>    CC       p11-kit/libp11_kit_la-util.lo
>    CC       p11-kit/libp11_kit_la-conf.lo
>    CC       p11-kit/libp11_kit_la-iter.lo
>    CC       p11-kit/libp11_kit_la-log.lo
>    CC       p11-kit/libp11_kit_la-modules.lo
>    CC       p11-kit/libp11_kit_la-pin.lo
>    CC       p11-kit/libp11_kit_la-proxy.lo
>    CC       p11-kit/libp11_kit_la-messages.lo
>    CC       p11-kit/libp11_kit_la-rpc-transport.lo
>    CC       p11-kit/libp11_kit_la-rpc-message.lo
>    CC       p11-kit/libp11_kit_la-rpc-client.lo
>    CC       p11-kit/libp11_kit_la-rpc-server.lo
>    CC       p11-kit/libp11_kit_la-uri.lo
>    CC       p11-kit/libp11_kit_la-virtual.lo
>    CC       common/argv.lo
>    CC       common/attrs.lo
>    CC       common/array.lo
>    CC       common/buffer.lo
>    CC       common/compat.lo
> In file included from /usr/include/sys/types.h:33:0,
>                   from common/compat.h:40,
>                   from common/compat.c:43:
> /usr/include/sys/feature_tests.h:391:2: error: #error "Compiler or
> options invalid; UNIX 03 and POSIX.1-2001 applications     require the
> use of c99"
>   #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001
> applications \
>    ^
>
> I have tried changing the CC option to CC=gcc std=gnu89 but that failed
> in the same place.
>
> TIA
>




More information about the openindiana-discuss mailing list