Re: teTeX-2.0.1 on SGI Irix 6.5 problem linking mfw, oxdvik, xdvik

2003-02-18 Thread Thomas Esser
> With 2.0.1, configure is setting "X_LIBS" to "-L/usr/lib", which causes Irix to
> try to link again o32 libraries:

I guess that's because I have applied a patch from Albert Chin
incorrectly. A fix for my incorrect patch is appended to this mail.

Thomas

diff -ru /t/2.0.1/tetex-src/ChangeLog /t/src/tetex-src/ChangeLog
--- /t/2.0.1/tetex-src/ChangeLogSun Feb 16 02:25:13 2003
+++ /t/src/tetex-src/ChangeLog  Tue Feb 18 05:11:42 2003
@@ -1,3 +1,8 @@
+Tue Feb 18 05:11:38 CET 2003
+   * fix bug in texk/etc/autoconf/acspecific.m4
+
+= teTeX-2.0.1 =
+
 Sun Feb 16 00:00:20 CET 2003
* fix a bug that I introduced in dvipdfm (in my attempt to
stop using the return value of sprintf)
diff -ru /t/2.0.1/tetex-src/configure /t/src/tetex-src/configure
--- /t/2.0.1/tetex-src/configureTue Feb  4 23:54:16 2003
+++ /t/src/tetex-src/configure  Tue Feb 18 05:12:51 2003
@@ -1745,7 +1745,7 @@
 #include "confdefs.h"
 #include 
 int main() {
-${x_direct_test_function}()
+${x_direct_test_function}(1)
 ; return 0; }
 EOF
 if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test 
-s conftest${ac_exeext}; then
diff -ru /t/2.0.1/tetex-src/libs/t1lib/configure /t/src/tetex-src/libs/t1lib/configure
--- /t/2.0.1/tetex-src/libs/t1lib/configure Tue Feb  4 23:54:19 2003
+++ /t/src/tetex-src/libs/t1lib/configure   Tue Feb 18 05:12:53 2003
@@ -1160,7 +1160,7 @@
 #include "confdefs.h"
 #include 
 int main() {
-${x_direct_test_function}()
+${x_direct_test_function}(1)
 ; return 0; }
 EOF
 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test 
-s conftest${ac_exeext}; then
diff -ru /t/2.0.1/tetex-src/texk/etc/autoconf/acspecific.m4 
/t/src/tetex-src/texk/etc/autoconf/acspecific.m4
--- /t/2.0.1/tetex-src/texk/etc/autoconf/acspecific.m4  Tue Feb  4 23:53:55 2003
+++ /t/src/tetex-src/texk/etc/autoconf/acspecific.m4Tue Feb 18 05:11:07 2003
@@ -2519,7 +2519,7 @@
   # Don't add to $LIBS permanently.
   ac_save_LIBS="$LIBS"
   LIBS="-l$x_direct_test_library $LIBS"
-AC_TRY_LINK([#include ], [${x_direct_test_function}()],
+AC_TRY_LINK([#include ], [${x_direct_test_function}(1)],
 [LIBS="$ac_save_LIBS"
 # We can link X programs with no special library path.
 ac_x_libraries=],
diff -ru /t/2.0.1/tetex-src/texk/web2c/configure /t/src/tetex-src/texk/web2c/configure
--- /t/2.0.1/tetex-src/texk/web2c/configure Sat Feb 15 22:35:03 2003
+++ /t/src/tetex-src/texk/web2c/configure   Tue Feb 18 05:12:53 2003
@@ -3353,7 +3353,7 @@
 #include "confdefs.h"
 #include 
 int main() {
-${x_direct_test_function}()
+${x_direct_test_function}(1)
 ; return 0; }
 EOF
 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test 
-s conftest${ac_exeext}; then
diff -ru /t/2.0.1/tetex-src/texk/xdvik/configure /t/src/tetex-src/texk/xdvik/configure
--- /t/2.0.1/tetex-src/texk/xdvik/configure Tue Feb  4 23:54:18 2003
+++ /t/src/tetex-src/texk/xdvik/configure   Tue Feb 18 05:12:53 2003
@@ -2360,7 +2360,7 @@
 #include "confdefs.h"
 #include 
 int main() {
-${x_direct_test_function}()
+${x_direct_test_function}(1)
 ; return 0; }
 EOF
 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test 
-s conftest${ac_exeext}; then



teTeX-2.0.1 on SGI Irix 6.5 problem linking mfw, oxdvik, xdvik

2003-02-18 Thread George White
With 2.0.1, configure is setting "X_LIBS" to "-L/usr/lib", which causes Irix to
try to link again o32 libraries:

 gcc -o mfw mfini.o mf0.o mf1.o mf2.o mfextra.o window/window.a -L/usr/lib -lXt
-lX11 -L/usr/lib lib/lib.a ../kpathsea/STATIC/libkpathsea.a -lm
ld32: FATAL   12 : Expecting n32 objects: /usr/lib/libXt.so is o32.
collect2: ld returned 4 exit status
gmake[2]: *** [mfw] Error 1
gmake[2]: Leaving directory
`/disk2/u/gwhite/install/tetex-src-2.0.1/texk/web2c'gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/disk2/u/gwhite/install/tetex-src-2.0.1/texk'
gmake: *** [all] Error 1

config.status for 2.0.1 has the following entries: 

GP.RP3$ grep '@X_LIBS' texk/*/config.status
texk/oxdvik/config.status:s%@X_LIBS@% -L/usr/lib%g
texk/web2c/config.status:s%@X_LIBS@% -L/usr/lib%g
texk/xdvik/config.status:s%@X_LIBS@% -L/usr/lib%g

It was not so for 2.0:

GP.RP3$ grep '@X_LIBS' ../tetex-src-2.0/texk/*/config.status
../tetex-src-2.0/texk/oxdvik/config.status:s%@X_LIBS@%%g
../tetex-src-2.0/texk/web2c/config.status:s%@X_LIBS@%%g
../tetex-src-2.0/texk/xdvik/config.status:s%@X_LIBS@%%g

Note that there is a second "-L/usr/libs" being set for mfw.  A workaround
is to edit the Makefiles in texk/oxdvik, etc. to remove the "-L/usr/lib"
entries.

--
George N. White III <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 
189 Parklea Dr., Head of St. Margarets Bay, NS   B3Z 2G6