Re: Problemi di compilazione di x11/libSM

Ferruccio Zamuner <[email protected]>
Newsgroups gmane.os.freebsd.italian.aiuto
Organization NonSoLoSoft
Message-ID <[email protected]>
On 11/25/13 00:28, Ferruccio Zamuner wrote:
> Ciao,
>
> ===>  Building for libSM-1.2.2,1
> /usr/bin/make  all-recursive
> Making all in src
>    CC       sm_genid.lo
> sm_genid.c: In function 'SmsGenerateClientID':
> sm_genid.c:112: error: storage size of 'uuid' isn't known
> sm_genid.c:115: error: too many arguments to function 'uuid_create'
> sm_genid.c:116: error: 'uuid_s_ok' undeclared (first use in this function)
> sm_genid.c:116: error: (Each undeclared identifier is reported only once
> sm_genid.c:116: error: for each function it appears in.)
> sm_genid.c:119: warning: implicit declaration of function 'uuid_to_string'
> sm_genid.c:119: warning: nested extern declaration of 'uuid_to_string'
> sm_genid.c:112: warning: unused variable 'uuid'
> *** Error code 1
>
> Stop in /faster1/ports/x11/libSM/work/libSM-1.2.2/src.
> *** Error code 1
>
> Stop in /faster1/ports/x11/libSM.

L'istruzione che fallisce l'ho trovata con:

u1# make -n
echo "  CC      " sm_genid.lo;/bin/sh ../libtool --silent --tag=CC 
--mode=compile cc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I../include 
-Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs 
-Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement 
-Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn 
-Wmissing-format-attribute -Wredundant-decls -Werror=implicit 
-Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces 
-Werror=sequence-point -Werror=return-type -Werror=trigraphs 
-Werror=write-strings -Werror=address -Werror=int-to-pointer-cast 
-Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/local/include 
-D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT  -O2 -pipe 
-fno-strict-aliasing -MT sm_genid.lo -MD -MP -MF .deps/sm_genid.Tpo -c 
-o sm_genid.lo sm_genid.c


In effetti non ci capisco molto con libtool.

>
> Tuttavia il seguente test:
>
> --- test.c ----
> #include <uuid.h>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main(int argc, char** argv)
> {
>    uuid_t uuid;
>    int32_t status;
>    uuid_create(&uuid, &status);
>    printf("%d\n", sizeof(uuid));
>    exit(0);
> }
> ---------------
>
>  > cc -o test_uuid test.c
>  > ./test_uuid
> 16
>
> compila e funziona.
>
>
> Idee?
>
>
> Ciao,           \ferz
>
>
> _______________________________________________
> Aiuto mailing list
> [email protected]
> http://mailman.gufi.org/mailman/listinfo/aiuto
>


-- 
Oggi e' sempre un giorno migliore di ieri.

_______________________________________________
Aiuto mailing list
[email protected]
http://mailman.gufi.org/mailman/listinfo/aiuto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.