Ticket #1399 (new defect)

Opened 5 years ago

Last modified 5 years ago

libtorrent trunk doesn't compile with gcc 4.3.1

Reported by: nick13ro@gmail.com Owned by: rakshasa
Priority: high Component: libtorrent
Version: HEAD Severity: critical
Keywords: Cc:

Description

libtorrent trunk fails to compile with gcc 4.3.1:

./libtorrent/src/GeoIP.c: In function ‘void _setup_segments(GeoIP*)’: ./libtorrent/src/GeoIP.c:288: error: invalid conversion from ‘void*’ to ‘unsigne d int*’ ./libtorrent/src/GeoIP.c:292: error: invalid conversion from ‘void*’ to ‘unsigne d int*’ ./libtorrent/src/GeoIP.c:300: error: invalid conversion from ‘void*’ to ‘unsigne d int*’ ./libtorrent/src/GeoIP.c:318: error: invalid conversion from ‘void*’ to ‘unsigne d int*’ ./libtorrent/src/GeoIP.c: In function ‘int _check_mtime(GeoIP*)’: ./libtorrent/src/GeoIP.c:357: error: invalid conversion from ‘void*’ to ‘unsigne d char*’ ./libtorrent/src/GeoIP.c: In function ‘GeoIP* GeoIP_open(const char*, int)’: ./libtorrent/src/GeoIP.c:536: error: invalid conversion from ‘void*’ to ‘char*’ ./libtorrent/src/GeoIP.c:561: error: invalid conversion from ‘void*’ to ‘unsigne d char*’ ./libtorrent/src/GeoIP.c: In function ‘char* GeoIP_database_info(GeoIP*)’: ./libtorrent/src/GeoIP.c:836: error: invalid conversion from ‘void*’ to ‘char*’ ./libtorrent/src/GeoIP.c: In function ‘GeoIPRegion* _get_region(GeoIP*, long uns igned int)’: ./libtorrent/src/GeoIP.c:900: error: invalid conversion from ‘void*’ to ‘GeoIPRe gion*’ ./libtorrent/src/GeoIP.c: In function ‘char* _get_name(GeoIP*, long unsigned int )’: ./libtorrent/src/GeoIP.c:975: error: invalid conversion from ‘void*’ to ‘char*’ ./libtorrent/src/GeoIP.c:978: error: invalid conversion from ‘unsigned char*’ to

‘char*’

./libtorrent/src/GeoIP.c:980: error: invalid conversion from ‘void*’ to ‘char*’ error: command 'g++' failed with exit status 1

Change History

comment:1 Changed 5 years ago by anonymous

That is rasterbar libtorrent, go to  http://code.rasterbar.com/libtorrent/wiki/Building

Note: See TracTickets for help on using tickets.