XForms: Re: XFroms installation failed

Gang Chen (gang@cochise.biosci.arizona.edu)
Mon, 30 Mar 1998 13:27:00 -0700 (MST)

# To subscribers of the xforms list from Gang Chen <gang@cochise.biosci.arizona.edu> :

> > > > I am a newbie to XForms, and am trying to install XForms on RH 5.0 Linux
> > > > system. The error message shows that it does not like -lXpm. ...
> > >
> > > What is the text of the error message? Is it having trouble reading
> > > the library or just finding it? Where in the installation is it
> > > breaking?
> >
> > When I type "make", there is a long list of error message. This is an
> > example of them (the others are just like this one):
> >
> > gcc -c -O -I../FORMS -Ifd scrollbar.c
> > gcc -O -s scrollbar.o -o scrollbar -L../FORMS -ldforms -lXpm -lX11 -lm
> > ld: can't opne -lXpm: no such file or directory
>
> Try passing -L/usr/X11R6/lib/ to gcc, or include
> /usr/X11R6/lib/ in your LD_LIBRARY_PATH

I just added "-L/usr/X11R6/lib" to LDFLAG in mkconfig.h, the comipler
seemed that it can find Xpm now, but with a different long error message:

gcc -c -O -I../FORMS -Ifd freedraw.c
gcc -L/usr/X11R6/lib -O -s freedraw.o -o freedraw -L../FORMS -lforms
-lXpm -lX11 -lm
freedraw.o: In function `main':
freedraw.o(.text+0x14): undefined reference to `fl_initialize'
freedraw.o(.text+0x35): undefined reference to `fl_set_object_color'
freedraw.o(.text+0x5b): undefined reference to `fl_show_form'
freedraw.o(.text+0x60): undefined reference to `fl_do_forms'
freedraw.o(.text+0x65): undefined reference to `fl_finish'
freedraw.o: In function `draw_triangle':
...
make[1]: [newbutton] Error 1 (ignored)
make[1]: Leaving directory `/xforms/DEMOS'

It is suspected that I have the wrong version of libforms.a. Well,
I got the a.out version of XForms (bxform-088.tgz) since I am running
RedHat 5.0 (i386). What do you think I have done wrong?

Many thanks,
Gang Chen

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/