moxftp with Xaw (or Xaw3d). How to compile?

moxftp with Xaw (or Xaw3d). How to compile?

Post by Sergey Pan » Wed, 13 Sep 1995 04:00:00





>I can not compile moxftp with Xaw3d (I do not have and do not want to
>Did anyone succeeded with that task?

I did it. If any one interested I have patch. There were at least two
problems in "configure" script and one in the "XpAthena.h" file.

Sergey

 
 
 

moxftp with Xaw (or Xaw3d). How to compile?

Post by Sergey Pan » Sun, 17 Sep 1995 04:00:00


In article <4355ec$...@mathserv.mps.ohio-state.edu>,

I wrote:
>In article <42o280$...@mathserv.mps.ohio-state.edu>,
>I wrote:

>>I can not compile moxftp with Xaw3d (I do not have and do not want to
>>Did anyone succeeded with that task?

>I did it. If any one interested I have patch. There were at least two
>problems in "configure" script and one in the "XpAthena.h" file.

There were too many requests for that patch. I decided to post it.
This patch would have been much shorter if I hade all libX*.a files.
I did not have libXmu.a. . The "configure" script uses libX*.a files
as an indicator that library is installed. I changed all references to
those files into libX*.sa . That what makes that patch that long.
The important part is line:
        @echo "x_includes=$(INCROOT); x_libraries=$(USRLIBDIR)"
in configure file and lines around line:
 #include <X11/Xaw3d/Mailbox.h>
in the Wcl-2.4/Xp/XpAthena.h file.

To apply patch:
   cd /usr/local/src/moxftp-2.2 # or any other dir with xftp source
   patch < moxftp.patch

mosftp.patch
--------cut-here---8<--------------8<----------------8<-------------------
--- configure.orig      Sun Sep 10 07:44:40 1995
+++ configure   Sun Sep 10 07:53:59 1995
@@ -321,7 +321,7 @@
   cd conftestdir
   cat > Imakefile <<EOF
 acfindx:
-       @echo "x_includes=$(INCROOT); x_libraries=$(USRLIBDIR)"
+       @echo "x_includes=\$(INCROOT); x_libraries=\$(USRLIBDIR)"
 EOF
   if xmkmf >/dev/null 2>/dev/null && test -f Makefile; then
     eval `make acfindx`
@@ -345,7 +345,7 @@
 # Did we find the Athena libraries.
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" ; then
-    if test ! -f "${x_libraries}/libXaw.a" ; then
+    if test ! -f "${x_libraries}/libXaw.sa" ; then
        unset x_includes
     fi
 fi
@@ -354,7 +354,7 @@
 # Did we find the ThreeD Athena libraries.
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" ; then
-    if test ! -f "${x_libraries}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/libXaw3d.sa" ; then
        unset x_includes
     fi
 fi
@@ -363,7 +363,7 @@
 # Did we find the Motif libraries.
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x" ; then
-    if test ! -f "${x_libraries}/libXm.a" ; then
+    if test ! -f "${x_libraries}/libXm.sa" ; then
        unset x_includes
     fi
 fi
@@ -395,7 +395,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw.a"; then
+    if test ! -f "${x_libraries}/libXaw.sa"; then
        unset x_includes
     fi
 fi
@@ -405,7 +405,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes"; then
-    if test ! -f "${x_libraries}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/libXaw3d.sa" ; then
        unset x_includes
     fi
 fi
@@ -415,7 +415,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXm.a" ; then
+    if test ! -f "${x_libraries}/libXm.sa" ; then
        unset x_includes
     fi
 fi
@@ -441,7 +441,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/${HP_X11}/libXaw.a" ; then
+    if test ! -f "${x_libraries}/${HP_X11}/libXaw.sa" ; then
        unset x_includes
     fi
 fi
@@ -451,7 +451,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/${HP_X11}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/${HP_X11}/libXaw3d.sa" ; then
         unset x_includes
     fi
 fi
@@ -462,7 +462,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/${HP_MOTIF}/libXm.a" ; then
+    if test ! -f "${x_libraries}/${HP_MOTIF}/libXm.sa" ; then
        unset x_includes
     fi
 fi
@@ -491,7 +491,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/${HP_X11}/libXaw.a"; then
+    if test ! -f "${x_libraries}/${HP_X11}/libXaw.sa"; then
        unset x_includes
     fi
 fi
@@ -501,7 +501,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/${HP_X11}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/${HP_X11}/libXaw3d.sa" ; then
         unset x_includes
     fi
 fi
@@ -518,7 +518,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/${HP_MOTIF}/libXm.a" ; then
+    if test ! -f "${x_libraries}/${HP_MOTIF}/libXm.sa" ; then
        unset x_includes
     fi
 fi
@@ -536,7 +536,7 @@
 if test -z "$x_includes" &&
    test "x${FOUND_X}" != "xyes" &&
    test -d /usr/include/X11 &&
-   test -f /usr/lib/libX11.a ; then
+   test -f /usr/lib/libX11.sa ; then
     x_includes=/usr/include
     x_libraries=/usr/lib
 fi
@@ -544,7 +544,7 @@
 if test -z "$x_includes" &&
    test "x${FOUND_X}" != "xyes"  &&
    test -d /usr/include/X11 &&
-   test -f /usr/lib/libX11.a ; then
+   test -f /usr/lib/libX11.sa ; then
     x_includes=/usr/include
     x_libraries=/usr/lib
 fi
@@ -554,7 +554,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x"
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw.a" ; then
+    if test ! -f "${x_libraries}/libXaw.sa" ; then
        unset x_includes
     fi
 fi
@@ -564,7 +564,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x"  &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/libXaw3d.sa" ; then
        unset x_includes
     fi
 fi
@@ -575,7 +575,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x"  &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXm.a" &&
+    if test ! -f "${x_libraries}/libXm.sa" &&
        test ! -f /usr/lib/DXM/lib/Xm/libXm.a; then
        unset x_includes
     fi
@@ -601,7 +601,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw.a" ; then
+    if test ! -f "${x_libraries}/libXaw.sa" ; then
        unset x_includes
     fi
 fi
@@ -611,7 +611,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/libXaw3d.sa" ; then
        unset x_includes
     fi
 fi
@@ -622,7 +622,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x"  &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXm.a" ;  then
+    if test ! -f "${x_libraries}/libXm.sa" ;  then
        unset x_includes
     fi
 fi
@@ -644,7 +644,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw.a";  then
+    if test ! -f "${x_libraries}/libXaw.sa";  then
        unset x_includes
     fi
 fi
@@ -654,7 +654,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/libXaw3d.sa" ; then
        unset x_includes
     fi
 fi
@@ -664,7 +664,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXm.a" ; then
+    if test ! -f "${x_libraries}/libXm.sa" ; then
        unset x_includes
     fi
 fi
@@ -682,7 +682,7 @@
 #
 if test "${TK}" = "xaw" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw.a" ; then
+    if test ! -f "${x_libraries}/libXaw.sa" ; then
        unset x_includes
     fi
 fi
@@ -691,7 +691,7 @@
 #
 if test "${TK}" = "xaw3d" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXaw3d.a" ; then
+    if test ! -f "${x_libraries}/libXaw3d.sa" ; then
        unset x_includes
     fi
 fi
@@ -701,7 +701,7 @@
 #
 if test "${toolkit}" = "motif" && test "x${x_includes}" != "x" &&
    test "x${FOUND_X}" != "xyes" ; then
-    if test ! -f "${x_libraries}/libXm.a" ; then
+    if test ! -f "${x_libraries}/libXm.sa" ; then
        unset x_includes
     fi
 fi
@@ -829,11 +829,11 @@
 #
 # Do we have the Xmu library.
 #
-if test -f "${x_libraries}/libXmu.a"; then
+if test -f "${x_libraries}/libXmu.sa"; then
     LIBSX="$LIBSX -lXmu"
 else
     if test "x${HP_X11}" != "x" &&
-       test -f "${x_libraries}/${HP_X11}/libXmu.a" ; then
+       test -f "${x_libraries}/${HP_X11}/libXmu.sa" ; then
         LIBSX="$LIBSX -lXmu"
     fi
 fi
@@ -844,7 +844,7 @@
 #
 # What about the Xext library.
 #
-if test -f "${x_libraries}/libXext.a"; then
+if test -f "${x_libraries}/libXext.sa"; then
     LIBSX="$LIBSX -lXext"
 fi

--- Wcl-2.4/Xp/XpAthena.h.orig  Thu May  5 17:05:58 1994
+++ Wcl-2.4/Xp/XpAthena.h       Sun Sep 10 08:33:35 1995
@@ -43,7 +43,9 @@
 #include <X11/Xaw3d/StripChart.h>
 #include <X11/Xaw3d/Text.h>
 #ifdef R5
+#ifndef R6
 #include <X11/Xaw3d/Mailbox.h>
+#endif /* !R6 */
 #include <X11/Xaw3d/Panner.h>
 #endif /*R5*/

 
 
 

1. Q: Xaw (Xaw3d) libraries

Hi,

while building some apps for aix (xdvi), we've got a "trouble": there
was no Xaw (Xaw3d) library installed (and Xmu needed to build Xaw3d).
So, the question: where does one get those libraries for AIX (4.2)?
(maybe, there are prebuilt versions somewhere, or should we try to
build libraries from XFree/X11?)

Thanks.

2. Questions about password security

3. Where the heck are the Xaw/Xaw3d src/include files?

4. Unix workstation for networking use

5. xaw (xaw3d) tutorial wanted

6. Linux Ethernet HOWTO (Part 1/2)

7. Repost: Where the heck are the Xaw/Xaw3d src/include files?

8. CVS and Windows

9. XFM / Xaw / Xaw3d Problem!

10. Slackware2.1, X11R6, Xaw and Xaw3d

11. compilation problem (cannot find Xaw and Xaw3D)

12. Xaw and Xaw3d

13. PREVIEW: Xaw-XPM, improved Xaw(3d) replacement