NCP2 beta1's libkrb5 has undefined reference
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nexenta Operating System |
Fix Released
|
Undecided
|
anilg |
Bug Description
I ran into this when trying to build postgresql-8.3 in the new devzone. Configure failed.. and the relevent part from config.log is..
configure:7265: cc -o conftest -g -Wall -O2 -fPIC -Wall -Wmissing-
/usr/lib/
collect2: ld returned 1 exit status
configure:7271: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.3.1"
| #define PACKAGE_STRING "PostgreSQL 8.3.1"
| #define PACKAGE_BUGREPORT "<email address hidden>"
| #define PG_VERSION "8.3.1"
| #define USE_INTEGER_
| #define ENABLE_NLS 1
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| #define PG_VERSION_STR "PostgreSQL 8.3.1 on i386-pc-
| #define ENABLE_
| #define ENABLE_GSS 1
| #define KRB5 1
| #define PG_KRB_SRVNAM "postgres"
| #define USE_PAM 1
| #define USE_LDAP 1
| #define USE_SSL 1
| #define USE_LIBXML 1
| #define USE_LIBXSLT 1
| #define PG_VERSION_NUM 80301
| #define HAVE_LIBM 1
| #define HAVE_LIBREADLINE 1
| #define HAVE_LIBZ 1
| #define HAVE_SPINLOCKS 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char krb5_sendauth ();
| int
| main ()
| {
| krb5_sendauth ();
| ;
| return 0;
| }
I rebuilt the libkrb5 package from apt-get source, and installed it to correct the error. Does the newly built libkrb5 need to go into the repo? Or should the devzone/distro packages need modification?
Also..
configure:19585: checking for ldap_bind in -lldap prototypes -Wpointer-arith -Winline -Wdeclaration- after-statement -Wendif-labels -fno-strict- aliasing -fwrapv -g -I/usr/ include/ libxml2 -I/usr/ include/ tcl8.4 -Wl,-Bsymbolic- functions -Wl,--as-needed -L/usr/lib conftest.c -lldap -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lsocket -lm >&5 libldap. so: undefined reference to `inet_aton@ SUNW_2. 3'
configure:19615: cc -o conftest -g -Wall -O2 -fPIC -Wall -Wmissing-
/usr/lib/