Platform: amd64 sys-devel/binutils-2.20 USE="gold nls -multislot -multitarget -test -vanilla" sys-devel/gcc-4.4.2 USE="fortran gtk mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) -ip28 -ip32r10k (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" [snip] LINK test-chmtime LINK test-ctype LINK test-date /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: imap-send.o: in function ssl_socket_perror:imap-send.c:241: error: undefined reference to 'ERR_get_error' /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: imap-send.o: in function ssl_socket_perror:imap-send.c:241: error: undefined reference to 'ERR_error_string' collect2: ld returned 1 exit status make: *** [git-imap-send] Error 1 make: *** Waiting for unfinished jobs.... [/snip]
Created attachment 207553 [details] build.log
compiles clean if you change in Makefile the line BASIC_LDFLAGS = to BASIC_LDFLAGS = -lgnutls-openssl
Please provide your emerge --info, as well as compile output with V=1 enabled. I don't see why you need libgnutls-openssl, it should be linking against openssl's libssl.