NCP2 beta1's libkrb5 has undefined reference

Bug #303053 reported by anilg
4
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-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 -lkrb5 -lcom_err -lgss -lz -lreadline -lsocket -lm >&5
/usr/lib/libkrb5.so: undefined reference to `res_ndestroy@SUNW_2.3'
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_DATETIMES 1
| #define ENABLE_NLS 1
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| #define PG_VERSION_STR "PostgreSQL 8.3.1 on i386-pc-solaris2.11, compiled by GCC cc (GCC) 4.2.3 (Ubuntu 4.2.3-2nexenta7)"
| #define ENABLE_THREAD_SAFETY 1
| #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?

Revision history for this message
anilg (anil-verve) wrote :

Also..

configure:19585: checking for ldap_bind in -lldap
configure:19615: cc -o conftest -g -Wall -O2 -fPIC -Wall -Wmissing-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
/usr/lib/libldap.so: undefined reference to `inet_aton@SUNW_2.3'

Revision history for this message
anilg (anil-verve) wrote :

The krb package is ready for upload, but theres an issue with 2 debs.. (conflicts with sunw counterparts).

Unpacking krb5-pkinit (from krb5-pkinit_1.6.dfsg.3~beta1-2nexenta4_solaris-i386.deb) ...
dpkg: error processing krb5-pkinit_1.6.dfsg.3~beta1-2nexenta4_solaris-i386.deb (--install):
 trying to overwrite `/usr/lib/krb5/plugins/preauth/pkinit.so', which is also in package sunwkrbu
dpkg: error processing krb5-user_1.6.dfsg.3~beta1-2nexenta4_solaris-i386.deb (--install):
 trying to overwrite `/usr/bin/kinit', which is also in package sunwkrbu

Revision history for this message
anilg (anil-verve) wrote :

inet_aton undefined reference.. also seen in apache2

/usr/share/apr-1.0/build/libtool --silent --mode=compile gcc -g -O2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -DSOLARIS2=i486-pc-solaris2 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I. -I/root/src/smf/apache2.2/apache2-2.2.8/debian/build-tree/worker/include -I/root/src/smf/apache2.2/apache2-2.2.8/os/unix -I/root/src/smf/apache2.2/apache2-2.2.8/server/mpm/worker -I/root/src/smf/apache2.2/apache2-2.2.8/modules/http -I/root/src/smf/apache2.2/apache2-2.2.8/modules/filters -I/root/src/smf/apache2.2/apache2-2.2.8/modules/proxy -I/root/src/smf/apache2.2/apache2-2.2.8/include -I/root/src/smf/apache2.2/apache2-2.2.8/modules/generators -I/root/src/smf/apache2.2/apache2-2.2.8/modules/mappers -I/root/src/smf/apache2.2/apache2-2.2.8/modules/database -I/usr/include/apr-1.0 -I/root/src/smf/apache2.2/apache2-2.2.8/debian/build-tree/worker/server -I/root/src/smf/apache2.2/apache2-2.2.8/modules/proxy/../generators -I/root/src/smf/apache2.2/apache2-2.2.8/modules/ssl -I/root/src/smf/apache2.2/apache2-2.2.8/modules/dav/main -prefer-non-pic -static -c /root/src/smf/apache2.2/apache2-2.2.8/support/htpasswd.c && touch htpasswd.lo
/usr/share/apr-1.0/build/libtool --silent --mode=link gcc -g -O2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -Wl,--as-needed -o htpasswd htpasswd.lo -lm -L/usr/lib -R/usr/lib -lpcre /usr/lib/libaprutil-1.la /usr/lib/libapr-1.la -luuid -lsendfile -lsocket -lnsl -lpthread
/usr/lib/libldap.so: undefined reference to `inet_aton@SUNW_2.3'
collect2: ld returned 1 exit status
make[3]: *** [htpasswd] Error 1
make[3]: Leaving directory `/root/src/smf/apache2.2/apache2-2.2.8/debian/build-tree/worker/support'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/src/smf/apache2.2/apache2-2.2.8/debian/build-tree/worker/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/smf/apache2.2/apache2-2.2.8/debian/build-tree/worker'
make: *** [mpm-worker] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Revision history for this message
anilg (anil-verve) wrote :

also in exim4.

gcc dk.c
gcc dkim-exim.c

awk '{ print ($1+1) }' cnumber.h > cnumber.temp
rm -f cnumber.h; mv cnumber.temp cnumber.h
gcc version.c
rm -f exim
gcc -o exim
/usr/lib/gcc/i386-pc-solaris2.11/4.2.3/../../../libldap.so: undefined reference to `inet_aton@SUNW_2.3'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/root/src/smf/exim4.2/exim4-4.69/build-tree/build-SunOS5-5.11-i386'
make: *** [build-exim4-daemon-heavy/exim] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Revision history for this message
Erast (erast) wrote :

Regarding libldap.so error: openldap2.3 needs to be recompiled with b103 bits...

Revision history for this message
anilg (anil-verve) wrote :

rebuilt and uploaded

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

Is this fixed?

Revision history for this message
anilg (anil-verve) wrote :

Yes, fixed as a part of beta2 release. Thanks for the bug db updates, Tim :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.