Hello David, Header files (eg. krb5.h) are only used when compiling a program or library, and as Roel pointed out, dbmail itsself does not use kerbose. Looks like your postgres libraries are using it. They've already been compiled, they're just being linked into the executable your building (the dbmail programs), so they're not needing krb5.h at this point either - what they do need is a kerbose library to link in as well. You're on the right track with adding that -lkrb5, ie. trying to get that library added in, but it's not making it. Check to make sure it's named that (eg. the file is libkrb5.so.*), and of course that it's actually been installed (which package dependencies should have insured that when you installed postgres), and then look to see if it's in a non-standard directory (not /lib, /usr/lib, etc.), in which case you'll need to stick a -L/path/to/that/dir in the linker options.
Jesse ---- Original Message ---- From: David A. Bandel <dbmail@dbmail.org> To: dbmail@dbmail.org Subject: Re: [Dbmail] make problems Sent: Wed, 11 Dec 2002 10:49:29 -0500 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Make output: > > cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE main.c -o dbmail-smtp > list.o debug.o pipe.o mime.o pgsql/dbpgsql.o dbmd5.o md5.o bounce.o > forward.o memblock.o pgsql/dbauthpgsql.o config.o > - -L/usr/lib/postgresql/lib/ -I/usr/include/postgresql/ -lpq -lcrypto -lssl > - -lkrb5 > /usr/lib/postgresql/lib//libpq.a(fe-auth.o)(.text+0xfb): In function > `pg_krb5_init': > : undefined reference to `krb5_cc_get_principal' > /usr/lib/postgresql/lib//libpq.a(fe-auth.o)(.text+0x135): In function > `pg_krb5_init': > : undefined reference to `krb5_cc_close' > /usr/lib/postgresql/lib//libpq.a(fe-auth.o)(.text+0x1c7): In function > `pg_krb5_init': > : undefined reference to `krb5_cc_close' > collect2: ld returned 1 exit status > make: *** [smtp] Error 1 > Sorry, Make failed. > > The above functions exist in /usr/include/krb5.h: > > chiriqui:/usr/include# grep krb5_cc_get_principal krb5.h > krb5_cc_get_principal (krb5_context context, krb5_ccache cache, > #define krb5_cc_get_principal(context, cache, principal) > #krb5_x ((cache)->ops->get_princ,(context, cache, principal)) > > chiriqui:/usr/include# grep krb5_cc_close krb5.h > krb5_cc_close (krb5_context context, krb5_ccache cache); > #define krb5_cc_close(context, cache) > #krb5_x ((cache)->ops->close,(context, cache)) > > I've even tried adding: > #include <krb5.h> > to some of the .c files, but it doesn't seem to help (or I've chosen the > wrong files). > > TIA, > > David A. Bandel > - -- > Focus on the dream, not the competition. > -- Nemesis Racing Team motto > > On Wed, 11 Dec 2002 14:55:43 +0100 > begin Roel Rozendaal - IC&S <[EMAIL PROTECTED]> spewed forth: > > > What exactly is the output of make? We have had no problems compiling > > dbmail for debian; i don't really understand how come you have > > kerberos5 dependency problems - there is no kerberos used by dbmail > > itself. > > > > regards roel > > > > > > David A. Bandel heeft op woensdag, 11 dec 2002 om 14:49 > > (Europe/Amsterdam) het volgende geschreven: > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Folks, > > > > > > I'm running Debian unstable/testing and can't seem to get dbmail to > > > compile. Problem seems to be with kerberos5. I've added the > > > libraries(-lkrb5), but the build doesn't seem to pick up > > > /usr/include/krb5.h (make > > > fails w/ references to defines found in this file). > > > > > > Anyone else managed to build on Debian testing and/or seen/resolved > > > these > > > problems? > > > > > > Thanx, > > > > > > David A. Bandel > > > - -- > > > Focus on the dream, not the competition. > > > -- Nemesis Racing Team motto > > > -----BEGIN PGP SIGNATURE----- > > > Version: GnuPG v1.2.1 (GNU/Linux) > > > > > > iD8DBQE990JP3uVcotqGMQcRAr0IAKC7agAGpytlyfGiBJXOshUW15ds1ACePdVU > > > BXpu+eNEwrNmU18LxU4kjB4= > > > =/JrN > > > -----END PGP SIGNATURE----- > > > _______________________________________________ > > > Dbmail mailing list > > > Dbmail@dbmail.org > > > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > > _______________________________________________ > > Dbmail mailing list > > Dbmail@dbmail.org > > https://mailman.fastxs.nl/mailman/listinfo/dbmail > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE9916J3uVcotqGMQcRAlc8AKCdPQzyj6IoI4N3BtLvff2/RAmz3wCfdyXR > /kssNVAC89gGwDsmShyY1Bk= > =/+ay > -----END PGP SIGNATURE----- > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail > -- End Original Message -- -- Jesse Norell [EMAIL PROTECTED]