Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 189040
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Liganic@gmx.net
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
config.log The resulting config.log with the wrong value. text/plain Liganic@gmx.net 2007-08-16 21:56 0000 19.42 KB Details
emerge.info emerge --info text/plain Liganic@gmx.net 2007-08-17 05:38 0000 3.26 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 189040 depends on: Show dependency tree
Bug 189040 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-08-15 20:54 0000
When compiling mbuffer-20070317 with USE="ssl" the ebuild fails, because
configure sets the wrong library for md5 support.It gets -lmd5 which should be
-lssl (a manual configure picks the right library). As result of this the
ebuild later complains about a missing md5.h and crashes.

Reproducible: Always

Steps to Reproduce:
1. emerge =mbuffer-20070317 USE="ssl"

Actual Results:  
*bang* md5.h not found

------- Comment #1 From SpanKY 2007-08-16 05:41:16 0000 -------
you need to post real info ... saying "it fails" is not debuggable

start with the actual emerge output and the config.log in the build dir

------- Comment #2 From Liganic@gmx.net 2007-08-16 06:51:47 0000 -------
Relevant part of emerge.log:

checking for library containing MD5Init... -lmd5
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mbuffer.1
config.status: creating config.h
mbuffer.c:32:3: Warnung: #warning Your sendfile implementation does not seem to
support sending from buffers - disabling sendfile support.
mbuffer.c:41:17: Fehler: md5.h: Datei oder Verzeichnis nicht gefunden


config.log:

configure:3705: checking for library containing MD5Init
configure:3735: i686-pc-linux-gnu-gcc -o conftest -O2 -march=pentium-m -msse2
-pipe -fomit-frame-pointer  
-Wl,--as-needed conftest.c -lpthread  >&5
/var/tmp/portage/sys-block/mbuffer-20070317/temp/cc8djT5n.o: In function
`main':
conftest.c:(.text+0xf): undefined reference to `MD5Init'
collect2: ld returned 1 exit status
configure:3741: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_LIBPTHREAD 1
| #define RETSIGTYPE void
| #define _FILE_OFFSET_BITS 64
| #define HAVE_SENDFILE 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char MD5Init ();
| int
| main ()
| {
| MD5Init ();
|   ;
|   return 0;
| }
configure:3790: i686-pc-linux-gnu-gcc -o conftest -O2 -march=pentium-m -msse2
-pipe -fomit-frame-pointer  -Wl,--as-needed conftest.c -lmd5  -lpthread  >&5
configure:3796: $? = 0
configure:3800: test -z 
                         || test ! -s conftest.err
configure:3803: $? = 0
configure:3806: test -s conftest
configure:3809: $? = 0
configure:3824: result: -lmd5
configure:3967: creating ./config.status

Found under cache variables in config.log:

ac_cv_search_MD5Init=-lmd5


Hope this is verbose enough.

------- Comment #3 From SpanKY 2007-08-16 19:31:56 0000 -------
dont post snippets of config.log, post the whole thing as an attachment

the md5 functions should have been found in libssl (MD5_Init)

------- Comment #4 From Liganic@gmx.net 2007-08-16 21:56:59 0000 -------
Created an attachment (id=128333) [details]
The resulting config.log with the wrong value.

------- Comment #5 From SpanKY 2007-08-17 05:30:55 0000 -------
your -Wl,--as-needed is screwing things up

i noticed you *still* havent posted `emerge --info`

------- Comment #6 From Liganic@gmx.net 2007-08-17 05:38:01 0000 -------
Created an attachment (id=128366) [details]
emerge --info

------- Comment #7 From Liganic@gmx.net 2007-08-17 05:41:20 0000 -------
You are right, if I temporarily change the LDFLAGS to "" it compiles just fine.
So I guess the best way would be to strip the flags in the ebuild?

------- Comment #8 From SpanKY 2007-08-17 06:44:20 0000 -------
no, the configure script should be tweaked ... it asks for -lssl when in
reality it wants -lcrypto

------- Comment #9 From SpanKY 2007-08-25 15:39:50 0000 -------
mbuffer-20070518 should work

------- Comment #10 From Liganic@gmx.net 2007-08-31 09:49:52 0000 -------
I have no clue why it doesn't work but I had to strip the LDFLAGS to make it
work.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug