D
Daniel Rudy
At about the time of 3/24/2007 10:44 AM, Doug stated the following:
I had a really good one...and obscure to boot.
Kinda off-topic since this is system specific, but...
I had trouble compiling my cryptography module. It kept getting an
error about duplicating a function implementation. The reference was in
/usr/include/openssl/des.h. WTF? I wasn't even using that file as I
had my own DES library that I was using....
Turns out that the order that the header files were included changed the
problem that I was experiencing. After about a couple of hours looking
through stuff, I found the problem.
The header file for my message digest library was including
/usr/include/openssl/mdc2.h. That in turn included
/usr/include/openssl/des.h, and the crypto module includes the message
digest AND the DES library that I am using, which caused the conflict.
Lesson to be learned here? If you include various system header files,
make sure that everything in the include chain doesn't conflict with any
custom libraries/modules that you are using.
--
Daniel Rudy
Email address has been base64 encoded to reduce spam
Decode email address using b64decode or uudecode -m
Why geeks like computers: look chat date touch grep make unzip
strip view finger mount fcsk more fcsk yes spray umount sleep
Cheers, Eric. Priceless. Did you have good diagnostics in place, or
was it a 'savage bug hunt'?
<OT>Anyone know of a decent place with similar horror stories? The
Dialy WTF isn't bad. Any others? I'm bored while waiting for my
compiler.</OT>
Doug
I had a really good one...and obscure to boot.
Kinda off-topic since this is system specific, but...
I had trouble compiling my cryptography module. It kept getting an
error about duplicating a function implementation. The reference was in
/usr/include/openssl/des.h. WTF? I wasn't even using that file as I
had my own DES library that I was using....
Turns out that the order that the header files were included changed the
problem that I was experiencing. After about a couple of hours looking
through stuff, I found the problem.
The header file for my message digest library was including
/usr/include/openssl/mdc2.h. That in turn included
/usr/include/openssl/des.h, and the crypto module includes the message
digest AND the DES library that I am using, which caused the conflict.
Lesson to be learned here? If you include various system header files,
make sure that everything in the include chain doesn't conflict with any
custom libraries/modules that you are using.
--
Daniel Rudy
Email address has been base64 encoded to reduce spam
Decode email address using b64decode or uudecode -m
Why geeks like computers: look chat date touch grep make unzip
strip view finger mount fcsk more fcsk yes spray umount sleep