Translate
24/4/14
Una solución a haciendo y convirtiendo ver 3096
Web OS
3103ª Parte Una solución a haciendo y convirtiendo ver 3096
Lo primero ir a la página de descargas de convertlit y ahi nos bajamos la bola Convert LIT 1.8 source una vez bajada creamos una carpeta por ejemplo llamada clit en la que pondremos su contenido que son dos carpetas y un README lo leemos y ahí encontraremos entre otras cosas que para hacerlo necesitamos hacer lo siguiente en linux y otros SOs pero aquí es explicación solo para Linux y en estas distros debianeras-ubunteras, aunque es fácil de hacer en cualquiera:
Build changes:
This package now requires “LIBTOMMATH” from math.libtomcrypt.org
To build under Linux:
cd lib
make
cd ../clit16
make
Abrimos el synaptic y comprobamos si tenemos la librería libtommath a lo mejor si pero no tendremos el cabezón, el cabezón son los headers necesarios o ficheros que se encuentran en los paquetes -dev de las distros para compilar así que lo instalamos y a continuación hacemos lo que nos dicen que es cd lib y make y mirar lo que sale.
ximo@ximo-SN10E100:~/Descargas$ cd clit/lib/
ximo@ximo-SN10E100:~/Descargas/clit/lib$ make
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litatom.o litatom.c
litatom.c: In function ‘lit_read_atoms’:
litatom.c:123:9: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign]
strncpy(s,p + 1, len);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/stdlib.h:24,
from litatom.c:24:
/usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
litatom.c:186:9: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign]
strncpy(s,p, len);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/stdlib.h:24,
from litatom.c:24:
/usr/include/x86_64-linux-gnu/bits/string3.h:117:1: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litdrm.o litdrm.c
litdrm.c: In function ‘lit_i_read_drm’:
litdrm.c:135:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(msreader_string,ptr,strlen(msreader_string)) != 0) {
^
In file included from litdrm.c:25:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litdrm.c:135:5: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(msreader_string,ptr,strlen(msreader_string)) != 0) {
^
litdrm.c:135:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litdrm.c:135:5: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litdrm.c:135:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litdrm.c:135:5: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litdrm.c:135:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litdrm.c:135:5: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
litdrm.c:135:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litdrm.c:135:5: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litdrm.c:135:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litdrm.c:135:5: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litdrm.c:135:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litdrm.c:135:5: warning: pointer targets in passing argument 2 of ‘strncmp’ differ in signedness [-Wpointer-sign]
In file included from litdrm.c:25:0:
/usr/include/string.h:143:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^
litdrm.c: In function ‘lit_change_drm_level’:
litdrm.c:251:17: warning: pointer targets in passing argument 2 of ‘lit_i_encrypt_section’ differ in signedness [-Wpointer-sign]
&new_key[0]);
^
In file included from litdrm.c:28:0:
litinternal.h:52:5: note: expected ‘char *’ but argument is of type ‘U8 *’
int lit_i_encrypt_section(lit_file *,char *, U8 * new_key);
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litlib.o litlib.c
litlib.c: In function ‘lit_write_to_file’:
litlib.c:189:17: warning: pointer targets in passing argument 2 of ‘lit_get_file’ differ in signedness [-Wpointer-sign]
status = lit_get_file(litfile,&entry->name,&ptr,&nbytes);
^
In file included from litlib.c:26:0:
litlib.h:232:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
int lit_get_file(lit_file * litfile, const char * name, U8 ** ptr, int * psize);
^
litlib.c: In function ‘lit_get_file’:
litlib.c:235:9: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign]
match = strncasecmp(&entry->name, name, entry->namelen);
^
In file included from litlib.c:25:0:
/usr/include/string.h:536:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
^
litlib.c: In function ‘lit_remove_files’:
litlib.c:361:9: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign]
match = strncasecmp(&entry->name,prefix, strlen(prefix));
^
In file included from litlib.c:25:0:
/usr/include/string.h:536:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
^
litlib.c: In function ‘lit_put_file’:
litlib.c:400:9: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign]
match = strncasecmp(&entry->name, name, entry->namelen);
^
In file included from litlib.c:25:0:
/usr/include/string.h:536:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
^
litlib.c:429:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(&new->name, name);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/stdio.h:27,
from litlib.c:23:
/usr/include/x86_64-linux-gnu/bits/string3.h:102:1: note: expected ‘char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litembiggen.o litembiggen.c
litembiggen.c: In function ‘lit_reconstitute_html’:
litembiggen.c:286:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\n’);
^
litembiggen.c:286:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:290:25: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘ ‘);
^
litembiggen.c:290:25: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:304:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘<’);
^
litembiggen.c:304:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:340:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_STRING(tag_name);
^
litembiggen.c:340:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:360:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘ ‘);
^
litembiggen.c:360:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:361:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘/’);
^
litembiggen.c:361:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:362:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘>’);
^
litembiggen.c:362:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:366:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘>’);
^
litembiggen.c:366:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:420:25: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\n’);
^
litembiggen.c:420:25: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:423:29: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘ ‘);
^
litembiggen.c:423:29: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:426:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘<’);
^
litembiggen.c:426:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:427:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘/’);
^
litembiggen.c:427:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:428:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_STRING(tag_name);
^
litembiggen.c:428:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:429:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘>’);
^
litembiggen.c:429:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:478:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘ ‘);
^
litembiggen.c:478:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:479:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_STRING(numbuf);
^
litembiggen.c:479:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:488:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘ ‘);
^
litembiggen.c:488:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:489:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_STRING((char *)tmp_map->name);
^
litembiggen.c:489:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:493:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘=’);
^
litembiggen.c:493:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:508:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\”‘);
^
litembiggen.c:508:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:513:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\”‘);
^
litembiggen.c:513:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:532:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_STRING(numbuf);
^
litembiggen.c:532:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:547:21: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\”‘);
^
litembiggen.c:547:21: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:575:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_STRING(tag_name);
^
litembiggen.c:575:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:587:13: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘ ‘);
^
litembiggen.c:587:13: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:595:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘=’);
^
litembiggen.c:595:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:622:17: warning: pointer targets in passing argument 1 of ‘__builtin_strchr’ differ in signedness [-Wpointer-sign]
hash_ptr = strchr(href_value,’#’);
^
litembiggen.c:622:17: note: expected ‘const char *’ but argument is of type ‘U8 *’
litembiggen.c:622:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
hash_ptr = strchr(href_value,’#’);
^
litembiggen.c:624:30: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
new_href = lit_lookup_mapping(pManifest, href_value,
^
litembiggen.c:627:30: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
new_href = lit_lookup_mapping(pManifest, href_value,
^
litembiggen.c:629:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\”‘);
^
litembiggen.c:629:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:631:21: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
WRITE_STRING(new_href);
^
In file included from litembiggen.c:27:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litembiggen.c:633:25: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
WRITE_STRING(hash_ptr);
^
In file included from litembiggen.c:27:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litembiggen.c:637:21: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
WRITE_STRING(href_value);
^
In file included from litembiggen.c:27:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litembiggen.c:639:17: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
WRITE_CHAR(‘\”‘);
^
litembiggen.c:639:17: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c: In function ‘write_entity’:
litembiggen.c:690:9: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
status = htmlwrite(write_data,&ch, 1);
^
litembiggen.c:690:9: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:695:13: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
strlen(entities[found].name));
^
litembiggen.c:695:13: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:699:9: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
status = htmlwrite(write_data,&ch, 1);
^
litembiggen.c:699:9: note: expected ‘U8 *’ but argument is of type ‘char *’
litembiggen.c:712:9: warning: pointer targets in passing argument 2 of ‘htmlwrite’ differ in signedness [-Wpointer-sign]
return htmlwrite(write_data,ent_buffer,len);
^
litembiggen.c:712:9: note: expected ‘U8 *’ but argument is of type ‘char *’
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o littags.o littags.c
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litmetatags.o litmetatags.c
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litmanifest.o litmanifest.c
litmanifest.c: In function ‘lit_lookup_mapping’:
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(s, map->sInternal, size) == 0)
^
In file included from litmanifest.c:28:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(s, map->sInternal, size) == 0)
^
In file included from litmanifest.c:28:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(s, map->sInternal, size) == 0)
^
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litmanifest.c:242:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
litmanifest.c:242:13: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness [-Wpointer-sign]
In file included from litmanifest.c:28:0:
/usr/include/string.h:143:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^
litmanifest.c:242:13: warning: pointer targets in passing argument 2 of ‘strncmp’ differ in signedness [-Wpointer-sign]
if (strncmp(s, map->sInternal, size) == 0)
^
In file included from litmanifest.c:28:0:
/usr/include/string.h:143:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^
litmanifest.c:243:17: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return map->sOriginal;
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litdirectory.o litdirectory.c
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litsections.o litsections.c
litsections.c: In function ‘lit_i_cache_section’:
litsections.c:191:17: warning: pointer targets in passing argument 2 of ‘decompress_section’ differ in signedness [-Wpointer-sign]
pContent, sizeContent, &ptr, &nbytes);
^
litsections.c:36:12: note: expected ‘char *’ but argument is of type ‘U8 *’
static int decompress_section(lit_file * litfile, char * section_name,
^
litsections.c: In function ‘decompress_section’:
litsections.c:332:5: warning: implicit declaration of function ‘LZXinit’ [-Wimplicit-function-declaration]
status = LZXinit(window_size);
^
litsections.c:402:17: warning: implicit declaration of function ‘LZXreset’ [-Wimplicit-function-declaration]
LZXreset();
^
litsections.c:403:17: warning: implicit declaration of function ‘LZXdecompress’ [-Wimplicit-function-declaration]
status = LZXdecompress(pContent + base, ptr+dst,
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litheaders.o litheaders.c
litheaders.c: In function ‘lit_i_read_headers’:
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(header, lit_magic_string, strlen(lit_magic_string)) != 0) {
^
In file included from litheaders.c:28:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(header, lit_magic_string, strlen(lit_magic_string)) != 0) {
^
litheaders.c:219:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litheaders.c:219:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
litheaders.c:219:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litheaders.c:219:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litheaders.c:219:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
litheaders.c:219:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
litheaders.c:219:5: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness [-Wpointer-sign]
In file included from litheaders.c:28:0:
/usr/include/string.h:143:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o litutil.o litutil.c
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o sha/mssha1.o sha/mssha1.c
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o des/des.o des/des.c
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o newlzx/lzxglue.o newlzx/lzxglue.c
newlzx/lzxglue.c: In function ‘glue_copy’:
newlzx/lzxglue.c:61:5: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy(dest, src, bytes);
^
newlzx/lzxglue.c:61:5: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
newlzx/lzxglue.c: In function ‘glue_read’:
newlzx/lzxglue.c:87:5: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
memcpy(buffer, (unsigned char *)mem->buffer+mem->current_bytes, bytes);
^
newlzx/lzxglue.c: In function ‘glue_write’:
newlzx/lzxglue.c:107:5: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
memcpy((unsigned char *)mem->buffer+mem->current_bytes, buffer, bytes);
^
cc -O3 -Wall -Ides -Isha -Inewlzx -I. -c -o newlzx/lzxd.o newlzx/lzxd.c
newlzx/lzxd.c: In function ‘lzxd_init’:
newlzx/lzxd.c:362:21: warning: iteration 24u invokes undefined behavior [-Waggressive-loop-optimizations]
extra_bits[i+1] = j;
^
newlzx/lzxd.c:360:3: note: containing loop
for (i = 0, j = 0; i < 51; i += 2) {
^
rm -f openclit.a
ar rv openclit.a litatom.o litdrm.o litlib.o litembiggen.o littags.o litmetatags.o litmanifest.o litdirectory.o litsections.o litheaders.o litutil.o sha/mssha1.o des/des.o newlzx/lzxglue.o newlzx/lzxd.o
ar: creando openclit.a
a – litatom.o
a – litdrm.o
a – litlib.o
a – litembiggen.o
a – littags.o
a – litmetatags.o
a – litmanifest.o
a – litdirectory.o
a – litsections.o
a – litheaders.o
a – litutil.o
a – sha/mssha1.o
a – des/des.o
a – newlzx/lzxglue.o
a – newlzx/lzxd.o
ximo@ximo-SN10E100:~/Descargas/clit/lib$
==============================================
ximo@ximo-SN10E100:~/Descargas/clit/lib$ cd ../clit18/
ximo@ximo-SN10E100:~/Descargas/clit/clit18$ make
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o clit.o clit.c
clit.c: In function ‘main’:
clit.c:128:5: warning: format not a string literal and no format arguments [-Wformat-security]
printf(sTitle);
^
clit.c:130:9: warning: format not a string literal and no format arguments [-Wformat-security]
printf(sUsage);
^
clit.c:244:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
fprintf(stderr,”Malloc(%d) failed!\n”, strlen(output) + 1);
^
clit.c: In function ‘lit_error’:
clit.c:369:29: warning: variable ‘w32err’ set but not used [-Wunused-but-set-variable]
unsigned long int w32err;
^
clit.c: In function ‘main’:
clit.c:122:16: warning: array subscript is above array bounds [-Warray-bounds]
dir_program[MAX_PATH] = ”;
^
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o hexdump.o hexdump.c
hexdump.c: In function ‘hexdump’:
hexdump.c:37:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
memset( strbuffer, ‘ ‘, numBytesInString );
^
hexdump.c:37:3: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o drm5.o drm5.c
drm5.c: In function ‘get_next_key’:
drm5.c:116:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge(dir_program, sKeysFile, NULL);
^
drm5.c:117:17: warning: pointer targets in passing argument 1 of ‘read_whole_file’ differ in signedness [-Wpointer-sign]
if (s) pFile = read_whole_file(s, &remaining);
^
drm5.c:44:6: note: expected ‘char *’ but argument is of type ‘U8 *’
U8 * read_whole_file(char * filename, int * size_ptr)
^
drm5.c:122:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge(dir_lit_file, sKeysFile, NULL);
^
drm5.c:123:17: warning: pointer targets in passing argument 1 of ‘read_whole_file’ differ in signedness [-Wpointer-sign]
if (s) pFile = read_whole_file(s, &remaining);
^
drm5.c:44:6: note: expected ‘char *’ but argument is of type ‘U8 *’
U8 * read_whole_file(char * filename, int * size_ptr)
^
drm5.c:144:25: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(private_key_ptr, pKey);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from drm5.c:29:
/usr/include/x86_64-linux-gnu/bits/string3.h:102:1: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
drm5.c:145:25: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(modulus_ptr, pModulus);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from drm5.c:29:
/usr/include/x86_64-linux-gnu/bits/string3.h:102:1: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
drm5.c:168:13: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(modulus_ptr, pModulus);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from drm5.c:29:
/usr/include/x86_64-linux-gnu/bits/string3.h:102:1: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
drm5.c:169:13: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(private_key_ptr, pKey);
^
In file included from /usr/include/features.h:371:0,
from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from drm5.c:29:
/usr/include/x86_64-linux-gnu/bits/string3.h:102:1: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
drm5.c: In function ‘ms_base64_decode’:
drm5.c:185:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
ocp = buff;
^
drm5.c: In function ‘drm5_handle_key’:
drm5.c:384:9: warning: pointer targets in passing argument 2 of ‘my_mp_to_unsigned_bin’ differ in signedness [-Wpointer-sign]
if (!res) res = my_mp_to_unsigned_bin(&d, des_key, sizeof(des_key));
^
drm5.c:295:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
int my_mp_to_unsigned_bin(mp_int * a, unsigned char * b, int len)
^
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(pValidation,”MSReader”,8) != 0) {
^
In file included from drm5.c:32:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
if (strncmp(pValidation,”MSReader”,8) != 0) {
^
drm5.c:426:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
drm5.c:426:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
drm5.c:426:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
drm5.c:426:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
drm5.c:426:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
drm5.c:426:13: note: expected ‘const char *’ but argument is of type ‘U8 *’
drm5.c:426:13: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness [-Wpointer-sign]
In file included from drm5.c:32:0:
/usr/include/string.h:143:12: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o explode.o explode.c
explode.c: In function ‘create_file_path’:
explode.c:195:9: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sFiltered = strmerge(pathFile, NULL,NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:195:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sFiltered = strmerge(pathFile, NULL,NULL);
^
explode.c:197:9: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sDirname = strmerge(pathFile, NULL,NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:197:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sDirname = strmerge(pathFile, NULL,NULL);
^
explode.c:234:13: warning: pointer targets in passing argument 2 of ‘utf8_strmatch’ differ in signedness [-Wpointer-sign]
if ((utf8_strmatch(p,”..”) == 2) ||
^
In file included from explode.c:30:0:
utils.h:41:5: note: expected ‘U8 *’ but argument is of type ‘char *’
int utf8_strmatch(U8 * s1, U8 * s2);
^
explode.c:235:17: warning: pointer targets in passing argument 2 of ‘utf8_strmatch’ differ in signedness [-Wpointer-sign]
(utf8_strmatch(p,”.”) == 1)) {
^
In file included from explode.c:30:0:
utils.h:41:5: note: expected ‘U8 *’ but argument is of type ‘char *’
int utf8_strmatch(U8 * s1, U8 * s2);
^
explode.c:245:13: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sTemp = strmerge(pathOutput,sDirname, NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:245:13: warning: pointer targets in passing argument 2 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sTemp = strmerge(pathOutput,sDirname, NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:245:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sTemp = strmerge(pathOutput,sDirname, NULL);
^
explode.c:257:13: warning: implicit declaration of function ‘mkdir’ [-Wimplicit-function-declaration]
status = mkdir(sTemp,0755);
^
explode.c:285:9: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sTemp = strmerge(pathOutput, sDirname, NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:285:9: warning: pointer targets in passing argument 2 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sTemp = strmerge(pathOutput, sDirname, NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:285:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sTemp = strmerge(pathOutput, sDirname, NULL);
^
explode.c:287:13: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign]
f = fopen(sTemp, “r”);
^
In file included from explode.c:24:0:
/usr/include/stdio.h:272:14: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
extern FILE *fopen (const char *__restrict __filename,
^
explode.c:290:17: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign]
f = fopen(sTemp,”w”);
^
In file included from explode.c:24:0:
/usr/include/stdio.h:272:14: note: expected ‘const char * __restrict__’ but argument is of type ‘U8 *’
extern FILE *fopen (const char *__restrict __filename,
^
explode.c: In function ‘create_placeholders’:
explode.c:364:6: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
bytes = strlen(p)+1;
^
In file included from explode.c:26:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
explode.c:385:9: warning: pointer targets in passing argument 1 of ‘create_file_path’ differ in signedness [-Wpointer-sign]
p = create_file_path(pathOutput, slash);
^
explode.c:185:6: note: expected ‘U8 *’ but argument is of type ‘char *’
U8 * create_file_path(U8 * pathOutput, U8 * pathFile)
^
explode.c:390:13: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(map->sInternal, dot, NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:390:13: warning: pointer targets in passing argument 2 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(map->sInternal, dot, NULL);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:390:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge(map->sInternal, dot, NULL);
^
explode.c:392:17: warning: pointer targets in passing argument 1 of ‘create_file_path’ differ in signedness [-Wpointer-sign]
p = create_file_path(pathOutput, s);
^
explode.c:185:6: note: expected ‘U8 *’ but argument is of type ‘char *’
U8 * create_file_path(U8 * pathOutput, U8 * pathFile)
^
explode.c:398:21: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(map->sInternal, int2string(-count), dot);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:398:21: warning: pointer targets in passing argument 3 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(map->sInternal, int2string(-count), dot);
^
In file included from explode.c:30:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
explode.c:398:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge(map->sInternal, int2string(-count), dot);
^
explode.c:400:25: warning: pointer targets in passing argument 1 of ‘create_file_path’ differ in signedness [-Wpointer-sign]
p = create_file_path(pathOutput,s);
^
explode.c:185:6: note: expected ‘U8 *’ but argument is of type ‘char *’
U8 * create_file_path(U8 * pathOutput, U8 * pathFile)
^
explode.c: In function ‘write_htmlish_file’:
explode.c:502:17: warning: pointer targets in passing argument 1 of ‘make_relative_manifest’ differ in signedness [-Wpointer-sign]
pmanifest);
^
In file included from explode.c:29:0:
manifest.h:36:5: note: expected ‘U8 *’ but argument is of type ‘char *’
int make_relative_manifest(U8 * , manifest_type * , manifest_type * );
^
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o transmute.o transmute.c
transmute.c: In function ‘transmute_lit’:
transmute.c:53:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
drm_size = 2*(strlen(inscription)+1);
^
transmute.c:53:23: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
drm_size = 2*(strlen(inscription)+1);
^
transmute.c:59:9: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
memset(drm_data, 0, drm_size);
^
transmute.c:59:9: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o display.o display.c
display.c: In function ‘display_lit’:
display.c:50:14: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
((entry->size) && (strcmp(&entry->name,”/”) != 0)) )
^
display.c:52:17: warning: pointer targets in passing argument 2 of ‘lit_get_file’ differ in signedness [-Wpointer-sign]
err = lit_get_file(lit,&entry->name,&p,&real_size);
^
In file included from display.c:25:0:
../lib/litlib.h:232:5: note: expected ‘const char *’ but argument is of type ‘U8 *’
int lit_get_file(lit_file * litfile, const char * name, U8 ** ptr, int * psize);
^
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o utils.o utils.c
utils.c: In function ‘utf8_strlen’:
utils.c:100:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
bytes = strlen(p)+1;
^
In file included from utils.c:25:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
utils.c: In function ‘utf8_strmatch’:
utils.c:119:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
bytes1 = strlen(s1)+1;
^
In file included from utils.c:25:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
utils.c:120:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
bytes2 = strlen(s2)+1;
^
In file included from utils.c:25:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
utils.c: In function ‘utf8_start’:
utils.c:146:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
iter->bytes = strlen(string);
^
In file included from utils.c:25:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but argument is of type ‘U8 *’
extern size_t strlen (const char *__s)
^
cc -funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I . -c -o manifest.o manifest.c
manifest.c: In function ‘mapping_init’:
manifest.c:33:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
memset(m, 0, sizeof(mapping_state));
^
manifest.c:33:5: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
manifest.c: In function ‘duplicate_manifest’:
manifest.c:75:5: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
memset(pDest, 0, sizeof(manifest_type));
^
manifest.c:94:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge((char *)mapSrc->sOriginal, NULL, NULL);
^
manifest.c:98:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge((char *)mapSrc->sInternal, NULL, NULL);
^
manifest.c:102:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge((char *)mapSrc->sType, NULL, NULL);
^
manifest.c: In function ‘make_relative_manifest’:
manifest.c:175:21: warning: pointer targets in passing argument 2 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(“../”,sRelative, NULL);
^
In file included from manifest.c:28:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
manifest.c:175:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge(“../”,sRelative, NULL);
^
manifest.c:176:17: warning: pointer targets in passing argument 2 of ‘strmerge’ differ in signedness [-Wpointer-sign]
} else s = strmerge(“..\\”,sRelative, NULL);
^
In file included from manifest.c:28:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
manifest.c:176:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
} else s = strmerge(“..\\”,sRelative, NULL);
^
manifest.c:182:13: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(sRelative,utf8_ptr(&iterYou),NULL);
^
In file included from manifest.c:28:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
manifest.c:182:13: warning: pointer targets in passing argument 2 of ‘strmerge’ differ in signedness [-Wpointer-sign]
s = strmerge(sRelative,utf8_ptr(&iterYou),NULL);
^
In file included from manifest.c:28:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
manifest.c:182:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s = strmerge(sRelative,utf8_ptr(&iterYou),NULL);
^
manifest.c:185:13: warning: pointer targets in passing argument 1 of ‘strmerge’ differ in signedness [-Wpointer-sign]
sRelative = strmerge(utf8_ptr(&iterYou), NULL, NULL);
^
In file included from manifest.c:28:0:
utils.h:38:8: note: expected ‘char *’ but argument is of type ‘U8 *’
char * strmerge(char * head, char * body, char * tail);
^
manifest.c:185:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sRelative = strmerge(utf8_ptr(&iterYou), NULL, NULL);
^
manifest.c:135:22: warning: variable ‘slashMe’ set but not used [-Wunused-but-set-variable]
U8 *slashMe, *slashYou, *sRelative, *s;
^
gcc -o clit clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a ../libtommath-0.30/libtommath.a
gcc: error: ../libtommath-0.30/libtommath.a: No existe el archivo o el directorio
make: *** [clit] Error 1
ximo@ximo-SN10E100:~/Descargas/clit/clit18$
Parece que no encuentra algo que es el archivo libtommath.a que se encuentra en la carpeta o espera encontrarlo en la carpeta /libtommath-0.30 que se encuentra fuera del directorio de trabajo donde nos encontramos que es en mi caso ximo@ximo-SN10E100:~/Descargas/clit/clit18$
Mi solución los .. indican que hay que salir a ximo@ximo-SN10E100:~/Descargas/clit y aquí una vez se está crear el directorio o carpeta /libtommath-0.30 y poner dentro el archivo que le falta para acabar de crearnos el binario clit.
Pues dicho y hecho :
ximo@ximo-SN10E100:~/Descargas/clit/clit18$ ..
ximo@ximo-SN10E100:~/Descargas/clit/mkdir libtommath-0.30
Una vez la tenemos creada vemos que tendremos 3 carpetas en la clit aparte del fichero README, las dos originales de la bola y esta que nos pide, ahora tenemos que buscar el fichero libtommath.a y ponerlo en esa carpeta para que podamos acabar de compilar sin problemas. La pregunta del millón ¿pero dónde está ese fichero? pues dónde están la librerías si hemos instalado los paquetes dev correspondientes lo encontraremos en /usr/lib/libtommath.a y de ahí enlazaremos o lo copiaremos a esa carpeta (mejor usar el mc para hacerlo)
ln -s /usr/lib/libtommath.a /home/vosotros/vosotros/clit/libtommath-0.30
Por eso lo de usar el mc lo mismo para crear el directorio y para tantas otras cosas.
En Synaptic hay un botón que una vez señalado el paquete nos dice las propiedades en este caso los ficheros y dónde se encuentran así que mucho misterio no hay tampoco.
Bueno acabando la faena:
ximo@ximo-SN10E100:~/Descargas/clit/clit18$ make
gcc -o clit clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a ../libtommath-0.30/libtommath.a
ximo@ximo-SN10E100:~/Descargas/clit/clit18$ ls
clit COPYING drm5.o hexdump.o manifest.o utils.h
clit.c display.c explode.c Makefile transmute.c utils.o
clit.h display.o explode.o manifest.c transmute.o win32.mak
clit.o drm5.c hexdump.c manifest.h utils.c
Prueba superada :) Ximo
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario