Subject: gcc profiler
To: None <netbsd-help@netbsd.org>
From: None <robemarq@nmsu.edu>
List: netbsd-help
Date: 10/15/2004 11:06:15
When I attempt to compile the a program using the -pg in order to get profile
information, I received the following error.
gcc -pg -g -o performance performance.c -I/usr/pkg/include/pgsql -pg -g
-I/usr/pkg/include/pgsql -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lpq
/usr/lib/libcrypto.so.1: undefined reference to `__setjmp14'
/usr/lib/libcrypto.so.1: undefined reference to `times'
/usr/lib/libcrypto.so.1: undefined reference to `SHA1Update'
/usr/lib/libcrypto.so.1: undefined reference to `__longjmp14'
/usr/lib/libcrypto.so.1: undefined reference to `SHA1Init'
/usr/lib/libcrypto.so.1: undefined reference to `setvbuf'
/usr/lib/libssl.so.2: undefined reference to `readdir'
/usr/lib/libcrypt.so.0: undefined reference to `MD5Final'
/usr/lib/libcrypto.so.1: undefined reference to `chmod'
/usr/lib/libresolv.so.1: undefined reference to `getnameinfo'
/usr/lib/libresolv.so.1: undefined reference to `vprintf'
/usr/lib/libssl.so.2: undefined reference to `opendir'
/usr/lib/libcrypto.so.1: undefined reference to `shutdown'
/usr/lib/libcrypt.so.0: undefined reference to `MD5Init'
/usr/lib/libcrypt.so.0: undefined reference to `MD5Update'
/usr/lib/libcrypto.so.1: undefined reference to `SHA1Final'
/usr/lib/libssl.so.2: undefined reference to `closedir'
/usr/lib/libcrypto.so.1: undefined reference to `tcsetattr'
/usr/lib/libcrypto.so.1: undefined reference to `__assert13'
The question is do I need to link the program to a library in order to get it
to work.