On Thu, 23 May 2002, John Levon wrote: > > I'm the lyx maintainer in NetBSD pkgsrc collection (http://www.pkgsrc.org/) > > and I'm trying the new 1.2.0 pre5. The compilation is okay but the linking > > fails because of unresolved references to fl_xxx() functions: > > Please try 1.2.0rc1 (it might only be on the developer's ftp site > ftp.devel.lyx.org)
I could compile pre5 now :-) I had to patch configure (not configure.in as I don't want to force people to install autoconf) with the following patch: - xforms-0.999 depends on libjpeg and libXpm (at least on NetBSD) - detect xforms-0.9* (it's still missing detection of the future xforms-1.*) This has been tested on NetBSD/i386, NetBSD/macppc and NetBSD/sparc. Feel free to take that changes to configure.in. --- configure.orig Fri May 3 22:53:34 2002 +++ configure Tue May 21 12:15:00 2002 @@ -9743,7 +9743,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lforms $LIBS" +LIBS="-lforms -ljpeg -lXpm $LIBS" cat > conftest.$ac_ext <<EOF #line 9749 "configure" #include "confdefs.h" @@ -9774,7 +9774,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - XFORMS_LIB="-lforms" + XFORMS_LIB="-lforms -ljpeg -lXpm" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for fl_initialize in -lxforms""... $ac_c" 1>&6 @@ -9954,6 +9954,7 @@ " lyx_warning=yes ;; 0.89*) ;; + 0.9*) ;; *) lyx_warning_txt="$lyx_warning_txt == Version $lyx_cv_xfversion of xforms might not be compatible with LyX, @@ -10159,7 +10160,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lforms $LIBS" +LIBS="-lforms -ljpeg -lXpm $LIBS" cat > conftest.$ac_ext <<EOF #line 10165 "configure" #include "confdefs.h" @@ -10190,7 +10191,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - XFORMS_LIB="-lforms" + XFORMS_LIB="-lforms -ljpeg -lXpm" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for fl_initialize in -lxforms""... $ac_c" 1>&6 Martti --- Martti Kuparinen <[EMAIL PROTECTED]> NetBSD - No media hype http://www.iki.fi/kuparine/ http://www.netbsd.org/