Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152489 - net-libs/libbt-1.{04,05} fails to compile
Summary: net-libs/libbt-1.{04,05} fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 03:17 UTC by Evil Compile Person
Modified: 2007-04-20 15:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openssl-sha-sys-types.patch (openssl-sha-sys-types.patch,544 bytes, patch)
2006-12-10 11:28 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2006-10-23 03:17:26 UTC
i686-pc-linux-gnu-gcc -c -O2 -march=i686 -pipe -g -Wall -I../include -I../include  peer.c -o peer.o
peer.c: In function 'peer_connect_complete':
peer.c:65: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
peer.c: In function 'send_have':
peer.c:802: error: invalid lvalue in increment
peer.c: In function 'send_request':
peer.c:829: error: invalid lvalue in increment
peer.c: In function 'send_piece':
peer.c:847: error: invalid lvalue in increment
peer.c: In function 'send_cancel':
peer.c:888: error: invalid lvalue in increment
peer.c: In function 'peer_answer':
peer.c:929: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness
make[1]: *** [peer.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/libbt-1.04/work/libbt-1.04/src'
make: *** [compile] Error 2

!!! ERROR: net-libs/libbt-1.04 failed.

Gentoo Base System version 1.12.5
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16.16 i686)
=================================================================
System uname: 2.6.16.16 i686 AMD Athlon(tm) 64 Processor 3200+
Last Sync: Sat, 21 Oct 2006 17:00:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://212.219.56.134/sites/www.ibiblio.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LINGUAS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-23 03:25:50 UTC
Can you try w/ 1.05 please?
Comment 2 Evil Compile Person 2006-10-23 10:22:11 UTC
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -g -Wall -I../include -I../include -DVERSION=1.05 -g -L.  -o btlist btlist.c -lbt -lresolv -luuid -lssl -lcurl  `curl-config --libs` -lm
In file included from btlist.c:16:
/usr/include/openssl/sha.h:109: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:111: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:116: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:118: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:138: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:140: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:142: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:144: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:185: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:187: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:189: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/openssl/sha.h:191: error: expected declaration specifiers or '...' before 'size_t'
btlist.c: In function 'main':
btlist.c:106: warning: pointer targets in passing argument 1 of 'SHA1' differ in signedness
btlist.c:106: warning: passing argument 2 of 'SHA1' makes pointer from integer without a cast
btlist.c:106: error: too many arguments to function 'SHA1'
make[1]: *** [btlist] Error 1
make[1]: Leaving directory `/var/tmp/portage/libbt-1.05/work/libbt-1.05/src'
make: *** [compile] Error 2

!!! ERROR: net-libs/libbt-1.05 failed.
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2006-11-04 05:02:48 UTC
  Adding " #include <sys/types.h> " to src/btlist.c solved the problem for both 1.04 and 1.05 on my box.Diff looks like this:

--- libbt-1.04/src/btlist.c     2004-04-18 09:56:26.000000000 +0300
+++ libbt-1.04-fixed/src/btlist.c       2006-11-04 14:39:18.000000000 +0200
@@ -1,5 +1,6 @@
 #include "config.h"

+#include <sys/types.h>
 #include <openssl/sha.h>
 #include <stdlib.h>
 #include <string.h>
Comment 4 Daniel Black (RETIRED) gentoo-dev 2006-12-10 05:01:26 UTC
looks like openssl should include sys/types.h in openssl/sha.h. Thoughts base-system peoples
Comment 5 SpanKY gentoo-dev 2006-12-10 11:25:16 UTC
sounds sane to me
Comment 6 SpanKY gentoo-dev 2006-12-10 11:28:05 UTC
Created attachment 103753 [details, diff]
openssl-sha-sys-types.patch
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2007-04-20 15:50:59 UTC
Fixed, wonder why it was assigned to base-system.