From: htoaster@yabbs To: pyro@yabbs Subject: re: SunOS Compiling Date: Tue Aug 24 12:11:32 1993 In message SunOS Compiling, pyro said: > Ok, I am trying (without much success (most likely because of my limited > knowledge with compiling)) to get yabbs running on SunOS. When I used the > handy makefile and gcc I get the following output: > > % make [lots of warnings deleted] > *** Error code 1 (ignored) > gcc miscutil.o msgbase.o yalk.o usered.o baseed.o clbase.o gfiles.o > strstr.o st > rlwr.o itoanr.o tochars.o ygate.o bbs.o upurge.o main.o -ltermcap -o yabbs > ld: Undefined symbol > _setenv > collect: ld returned 2 exit status Here is the real problem. If you look in main.c there is a line that calls setenv, which doesn't seem to be in as many libraries I had thought. You can replace it with: sprintf(buf, "HOME=%s", F_HOME); putenv(buf); And make sure to define buf in the declarations. If you would like I could fix this in the distribution (since putenv is much more common), and you could ftp it again...I just discovered this problem yesterday, so I haven't had the time to do anything about it. htoaster ÿ