>>>>> "Jens" == Jens-U H Petersen <petersen_at_kurims.kyoto-u.ac.jp> writes:
Jens> I am trying to build version 2.0.42 Sunos 4.1.3 and X11R5 (I had
Jens> the same trouble under SunOs 4.1.4 and X11R6). (I already have a
Jens> working fvwm-2.0.41, which I built here without trouble.)
Jens> After
Jens> xmkmf ; make Makefiles
Jens> which don't give any problems apparently, I do "make" and get the
Jens> output below.
Jens> I don't know to do now. Can someone please tell what I need to
Jens> do to build this latest version on my sunos? (I really want to
Jens> try the latest stuff!)
Jens> gcc -o fvwm2 add_window.o bindings.o borders.o builtins.o colormaps.o colors.o complex.o decorations.o events.o focus.o functions.o fvwm.o icons.o menus.o misc.o module.o move.o placement.o read.o resize.o style.o virtual.o windows.o -O -pipe -L/usr/local/X11R5/lib -L../libs -lfvwm2 -L/home/petersen/lib -lXpm -lXext -lX11
Jens> collect2: ld returned 2 exit status
Jens> ld: Undefined symbol
Jens> _strerror
Ok, for anyone having problems w/ strerror being undefined (SunOS
4.1.X users), here is a definition which should do it for you (just
put it in builtins.c). I'll put this on the official web site as
well, and a variant will appear in the next beta release.
Chuck
======================================================================
char *strerror(int num)
{
extern int sys_nerr;
extern char *sys_errlist[];
if (num >= 0 && num < sys_nerr)
return(sys_errlist[errnum]);
else
return "Unknown error number";
}
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Apr 19 1996 - 08:09:02 BST