On Tue, 18 Feb 2003 23:54:22 -0500 (EST), "Dan Davis" <[EMAIL PROTECTED]> wrote:
> I'm trying to compile tmda-cgi (from CVS) on a solaris 8/SPARC box. I'll > admit up front that I don't know too much about the specifics of compiling > and linking, etc... in fact, I know enough to be dangerous. ;-) In > general, on linux, I can make my way through most compilation errors. > However, I am new to building on Suns and I'm not quite sure I've got my > environment setup just right. > > Here's the error message: > # gcc tmda-cgi.c -o tmda-cgi > /var/tmp/cc3dvNp7.o: In function `main': > /var/tmp/cc3dvNp7.o(.text+0x20): undefined reference to `setenv' > /var/tmp/cc3dvNp7.o(.text+0x3c): undefined reference to `setenv' > collect2: ld returned 1 exit status Ugh. I'm not sure what to tell you. I've tried to install Solaris once and I failed miserably. If I understand the above correctly, it means that it wasn't able to link in the code that performs the "setenv" function. This is a pretty fundamental function. If ld can't find it, then clearly the library search path is screwed. Well, to my limited knowledge of Solaris, at least, it sounds screwed. Has anyone out there ever experienced this sort of compile error when compiling anything else? I don't write a lot of C programs these days, so even though I wrote tmda-cgi.c, I have to admit that it was done with less than expert precision. Anyhow, I can give you some patches to work around the need for setenv, but I'd rather try to resolve your linking problem directly and then update compile so it addresses the situation correctly. I'm sure there must be a solution, but my web searches so far are not yielding anything useful. Gre7g. _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
