discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Any Success on SuSE7.3?


From: Gregory Casamento
Subject: Re: Any Success on SuSE7.3?
Date: Sat, 8 Dec 2001 13:52:28 -0800 (PST)

Is it possible that the env argument to main is the problem?   It seems, from
looking at your build that gdomap built successfully.  The gdomap program does
not use the main declaration shown later.   Listing follows: 

shared_obj/ix86/linux-gnu/gnu-gnu-gnu/NSNumber10.o 
shared_obj/ix86/linux-gnu/gnu-gnu-gnu/NSNumber11.o 
shared_obj/ix86/linux-gnu/gnu-gnu-gnu/NSNumber12.o  ; (cd 
shared_obj/ix86/linux-gnu/gnu-gnu-gnu; rm -f libgnustep-base.so 
libgnustep-base.so.1; ln -s libgnustep-base.so.1.0.2 libgnustep-
base.so.1; ln -s libgnustep-base.so.1 libgnustep-base.so; )
make[1]: Leaving directory `/usr/local/src/gnustep-base-1.0.2/Source'
Making all in Tools...
make[1]: Entering directory `/usr/local/src/gnustep-base-1.0.2/Tools'
Making all for ctool gdomap...
make[2]: Nothing to be done for `internal-ctool-all'.

  NOTE: I am assuming that since it says "nothing to be done" the tool was
built.

Making all for tool gdnc...
gcc -rdynamic     -LNONE  -o shared_obj/ix86/linux-gnu/gnu-gnu-gnu/gdnc \
           shared_obj/ix86/linux-gnu/gnu-gnu-gnu/gdnc.o    \
           -L/root/GNUstep/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu 
-L/opt/GNUstep/Local/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu 

... -L flags and warnings (like below) snipped....

/usr/i486-suse-linux/bin/ld: warning: type and size of dynamic symbol 
`__objc_class_name_NSConnection' are not defined
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [shared_obj/ix86/linux-gnu/gnu-gnu-gnu/gdnc] Error 1
make[1]: *** [gdnc.all.tool.variables] Error 2
make[1]: Leaving directory `/usr/local/src/gnustep-base-1.0.2/Tools'
make: *** [internal-all] Error 2
merkur src/gnustep-base-1.0.2#

In "Advanced Programming in the UNIX environment" p167, it says:

"int main(int argc, char *argv[], char *envp[])

Since ANSI C speficies that the main function be written with two arguments,
and since this third argument provides no benefit over the global variable
environ, POSIX1 specifies that the environ should be used instead of the
(possible) third argument."

This raises two questions:
1) Do newer versions of GCC no longer allow this? (could someone verify this?)
2) If this is no longer considered "portable" should we switch to using 
   environ to initialize NSProcessInfo?

Later, GJC

--- Andreas Hoeschler <ahoesch@advanced-science.com> wrote:
> Hi,
> 
> > Has anyone had any success building GNUstep on SuSE7.3?
> 
> I tried about two weeks ago. It failed. I would love to hear how to get 
> it compiled if anybody makes it.
> 
> Regards,
> 
>    Andreas
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep

=====
Gregory John Casamento
------------------------------------------------------
Please sign the petition against software patents at:
http://www.petitiononline.com/pasp01/petition.html
------------------------------------------------------

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com



reply via email to

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