Re: undefined reference to... errors when compiling program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 26 Jun 2003, Andrew Yates wrote:

> When I try to compile sixfour I get the following
> errors:
> 
> make[1]: Entering directory
> `/home/andrew/.ht/sixfour/PeerLayer/TP'
> g++ -Wall -I.. -I../../LinkLayer -I../../aes -DLINUX
> -O2 -static -s -DUSES_SSL_LINKLAYER -o TrustedPeer
> Clerver.o  Config.o  Discovery.o  Upload.o 
> TrustedPeer.o        IDSCheck.o
> ../../LinkLayer/LinkLayer_SSL.o
> ../../LinkLayer/Link_SSL.o ../../LinkLayer/compat.o
> ../../LinkLayer/ssl.o ../../LinkLayer/ssl_ctx.o
> ../../aes/rij.o ../../aes/rijndael-alg-fst.o
> ../../aes/rijndael-api-fst.o -lssl -lcrypto -lpthread
> -L/usr/kerberos/lib
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libssl.a(kssl.o)(.text+0x187):
> In function `populate_cksumlens':
> : undefined reference to `valid_cksumtype'

snipped

> What can I do to make this program compile?

You don't specify any libs after the -L/usr/kerberos/lib .  You can check 
which libs contain a given ref with 'nm <lib> | grep <ref>'.  E.g., 
valid_cksumtype is in libkrb5.

Cheers,

Michael





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux