|
[ Return To FAQ Index | Search The FAQs ]
|
|
| Title: | Compiling fails with Undefined symbol: .get_dh512 |
| FAQ ID: | F0386 |
| Submitted By: | Andreas Behal |
| Last Updated: | 03/14/2007 |
|
| Description: | Problem was faced on AIX 5.1 - should be applyable to other AIXes as well
compiling of nrpe fails with the following sequence of errors/warnings if you enable SSL-support:
make
cd ./src/; make ; cd ..
gcc -g -O2 -I/usr/linux/include/openssl -I/usr/linux/include -DHAVE_CONFIG_H -DDEBUG -o nrpe nrpe.c utils.c -L/usr/linux/lib -lssl -lcrypto -lnsl
nrpe.c: In function 'main':
nrpe.c:233: warning: assignment makes pointer from integer without a cast
ld: 0711-317 ERROR: Undefined symbol: .get_dh512
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
|
|
| Solution: | Reason is that during configure-phase openssl tries to generate a file (include/dh.h) based on randomness from /dev/(u)random.
If that files do not exist configure does not complain, but the generated source file (dh.h) is empty (BUG?).
Install the prngd (Pseudo Random Number Generator Daemon) from aix-toolbox and run configure again.
|
|
| Keywords: | get_dh512 nrpe openssl prng random |
|