problems to compile X11-Appplications

problems to compile X11-Appplications

Post by Stephan Jaeg » Thu, 18 Jul 1996 04:00:00



Hi, Solaris-wizards!

I try to compile gnuplot3.5 with X11-Suppoert for a Sparc-Station/Solaris2.5.
Everything works fine, until the gnuplot_x11 executable must be linked
together. It doesn't work and I don't know why (I included all paths for the
includes, headers and libraires; see below). I use gcc 2.7.2.

When I try to compile tk4.1 I get the same error messages.

Have I forgotten to define something?

Is there a bug ? Am I the bug :-/

Does anyone have any ideas?

Thanks in advance

frustrated Stephan Jaeger

foo:/export/home/swadmin/test/gnuplot > make solaris_x11
make  CC="gcc" COPTS="" DEST="/usr/local/bin" MANDEST="/usr/local/man/manl"

LASERGNU="lasergnu_noinstall" CFLAGS=" -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY
-DGETCWD -DSOLARIS" X11FLAGS="" X11INCLUDES="-I/usr/openwin/share/include"
X11LIBS="-L/usr/openwin/lib -lX11" PLOTXFLAG="-DX11" GNUPLOT_X11=gnuplot_x11
X11INSTALL="x11_install" TERMFLAGS="-Iterm -DX11 -DSOLARIS"  All
make[1]: Entering directory `/export/home/swadmin/test/gnuplot'
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c bitmap.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS -c command.c
-DHELPFILE=\"/usr/local/lib/gnuplot.gih\"
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c contour.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c eval.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c graphics.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c graph3d.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c help.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c internal.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c misc.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c parse.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS -DX11 -c plot.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c readline.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c scanner.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS -c setshow.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c specfun.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c standard.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS -Iterm -DX11
-DSOLARIS -c term.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c util.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c gnubin.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS   -c binary.c
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS

gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS -o gnuplot
bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o internal.o
misc.o parse.o plot.o readline.o scanner.o setshow.o specfun.o standard.o
term.o util.o gnubin.o binary.o version.o -lm
gcc -DREADLINE -DNOCWDRC -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS  
-I/usr/openwin/share/include -o gnuplot_x11 \
gplt_x11.c -L/usr/openwin/lib -lX11
/usr/local/sparc-sun-solaris2.5/bin/ld: warning: libXext.so.0, needed by
/usr/openwin/lib/libX11.so, not found
/usr/openwin/lib/libX11.so: undefined reference to `XSolarisIASetProcessInfo'
make[1]: *** [gnuplot_x11] Error 1
make[1]: Leaving directory `/export/home/swadmin/test/gnuplot'
make: *** [solaris_x11] Error 2
foo:/export/home/swadmin/test/gnuplot >

 
 
 

problems to compile X11-Appplications

Post by Travis Koc » Thu, 18 Jul 1996 04:00:00


<snip>

Quote:> gplt_x11.c -L/usr/openwin/lib -lX11
> /usr/local/sparc-sun-solaris2.5/bin/ld: warning: libXext.so.0, needed by
> /usr/openwin/lib/libX11.so, not found<snip>

Try adding -lXext to the link line. (after -lX11)

 
 
 

1. Upgrading to 4.6.2...X11 config in /usr/X11R6/lib/X11 or /etc/X11?

During the next week, I plan to upgrade my machine to 4.6.2.  When I
installed the installation of X11 that I have now, I built it from
source with the ports tree, and it put the config files in the normal
location /usr/X11R6/lib/X11.
        However, I'm aware that in the past, FreeBSD has packaged the
X configs to go into /etc/X11, and I also remember that back when I was
running 4.4 on a different machine, the port asked you before the build
which of the two locations you'd like your X configs to go to.
        What I'm wondering is this:  If I do the upgrade, and have it
upgrade my X-Window installation, is it going to be smart enough to see
which place to look for my configuration?  I like freedom of choice with
things like this, but I hope the package tools are keeping all this
freedom in mind at upgrade time.

Anybody done the upgrade already on a machine with the configs in /usr?

--
|-+{ Brent A. Busby  } +-|  "Elstree...? Remember me? I had a part in |

|-+  Normal, IL  (USA) |-|   history. Look at me. Now I work for the  |
|-*  FreeBSD UNIX 4.5  *-|   BBC.   Life is not what it used to be."  |

2. Strange messages after restore, using tar

3. compiling problems with X11 library

4. Book : programming in vax-11 C

5. Problems Compiling hp2xx, where's "X11"?

6. WTB: AIX 3.2.0

7. lpr compile and X11 problems

8. Strange login problems

9. g++ Compile/Link Problem with X11 on Sparc?

10. Problem compiling qt-x11-2.1.1 !

11. libc problems compiling X11 software

12. Compiling expect-5.12 no X11 lib problem

13. problems compiling X11 server with Imake