Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Nov 1999 02:51:27 -0500 (EST)
From:      dervish@ikhala.tcimet.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15111: xscreensaver-3.21 port build fails
Message-ID:  <199911270751.CAA73112@ikhala.tcimet.net>

next in thread | raw e-mail | index | archive | help

>Number:         15111
>Category:       ports
>Synopsis:       xscreensaver-3.xx ports build fail if kerberos is installed.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 26 23:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Bush Doctor
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
No Horrors 
>Environment:
FreeBSD ikhala.tcimet.net 4.0-CURRENT FreeBSD 4.0-CURRENT #37: Wed Nov 10 20:57:39 EST 1999     root@ikhala.tcimet.net:/usr/src/sys/compile/GANJA  i386


>Description:
For some time now xscreensaver-3.xx versions have failed to build 
				 on FreeBSD boxen where the port detected kerberos (libkrb)


>How-To-Repeat:
cd /usr/ports/x11/xscreensaver
                 make
The above commands will generate the following:
cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -Wp,-lang-c89 -c -I. -I. -I./../utils -I..  -I/usr/X11R6/include -DHAVE_CONFIG_H  -O -pipe -I/usr/X11R6/include passwd-kerberos.c
passwd-kerberos.c: In function `kerberos_passwd_valid_p':
passwd-kerberos.c:158: warning: passing arg 2 of `des_string_to_key' from incompatible pointer type
passwd-kerberos.c:161: warning: passing arg 7 of `krb_get_in_tkt' from incompatible pointer type
cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -Wp,-lang-c89 -c -I. -I. -I./../utils -I..  -I/usr/X11R6/include -DHAVE_CONFIG_H  -O -pipe -I/usr/X11R6/include passwd-pwent.c
cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -Wp,-lang-c89 -L/usr/X11R6/lib -o xscreensaver xscreensaver.o windows.o timers.o subprocs.o  xset.o splash.o setuid.o stderr.o prefs.o lock.o passwd.o passwd-kerberos.o passwd-pwent.o  ../utils/fade.o ../utils/overlay.o  ../utils/xroger.o ../utils/spline.o  ../utils/yarandom.o  ../utils/resources.o ../utils/usleep.o  ../utils/visual.o    -L/usr/X11R6/lib -lXmu  -lXss -lXdpms -lXxf86vm   -lSM -lICE -lXmu -lXt -lXt -lX11 -lXext   -lkrb -ldes -lcrypt
/usr/lib/libkrb.so: undefined reference to `init_error_table'
/usr/lib/libkrb.so: undefined reference to `initialize_error_table_r'
*** Error code 1

Stop in /usr/ports/x11/xscreensaver/work/xscreensaver-3.21/driver.
*** Error code 5

Stop in /usr/ports/x11/xscreensaver/work/xscreensaver-3.21.
*** Error code 1

Stop in /usr/ports/x11/xscreensaver.
*** Error code 1

Stop in /usr/ports/x11/xscreensaver.
*** Error code 1

Stop in /usr/ports/x11/xscreensaver.

>Fix:
The following patch to configure, which modifies patch-ab allows xscreensaver-3.21 to build
       with the default Makefile in the port.  It seems we need to add -lcom_err to fix.

diff -urN configure.orig configure
--- configure.orig	Thu Nov 18 21:49:08 1999
+++ configure	Fri Nov 26 18:02:45 1999
@@ -3153,7 +3153,7 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE -lXmu -lXt"
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -5194,7 +5194,7 @@
 
 
     # from Tim Showalter <tjs+@andrew.cmu.edu>
-    PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes"
+    PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
     echo $ac_n "checking for res_search""... $ac_c" 1>&6
 echo "configure:5211: checking for res_search" >&5
 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
@@ -6241,7 +6241,7 @@
 if eval "test \"`echo '$''{'ac_cv_gtk_version_string'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
-  ac_cv_gtk_version_string=`$glib_config --version`
+  ac_cv_gtk_version_string=`$gtk_config --version`
 fi
 
 echo "$ac_t""$ac_cv_gtk_version_string" 1>&6


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911270751.CAA73112>