ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] Re: Solaris


From: Gergely Nagy
Subject: [RP] Re: Solaris
Date: Tue Jan 8 09:24:12 2002
User-agent: Wanderlust/2.9.2 (Unchained Melody) Emacs/21.1 Mule/5.0 (SAKAKI)

> > Put it in the same file which has the setenv/unsetenv calls
> > (actions.c, iirc). Let me know if it works, I'll put it into CVS then.
> 
> unsetenv contains an unused variable i.
> The link step now fails because of missing getopt_long:
> 
> gcc  -Wall -O2  -I/usr/X11R6/include -L/usr/X11R6/lib  -o ratpoison  
> actions.o bar.o communications.o events.o getopt.o getopt1.o input.o list.o 
> main.o manage.o number.o sbuf.o split.o  -lX11 
> main.o: In function `main':
> main.o(.text+0x870): undefined reference to `getopt_long'
> collect2: ld returned 1 exit status
> make[1]: *** [ratpoison] Error 1
> make[1]: Leaving directory `/opt/tmp/ratpoison/ratpoison/src'
> 
> _Hacked_ it like this and it works (of course without long options :-) ):
>       c = getopt (argc, argv, ratpoison_opts);
> 

Cool. I'll modify configure.in to check for setenv/unsetenv, and use
my wrappers if they're not present. The same will be done for getopt
(I think including GNU getopt with the sources would be pretty much of
an overkill, and I don't want to add such a bloat without Shawns
blessing anyway :)

Attachment: pgp6q9bJBehJ6.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]