Date: Fri, 24 Jun 2005 00:05:19 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 567 ************************************************** Thursday 23 June 2005 Number 567 ************************************************** Subjects for today 1 Re: gcc -b, what does it do? : Knut St. Osmundsen" 2 Re: gcc -b, what does it do? : Dave Yeo" 3 tcgetattr() : Nicholas Sheppard **= Email 1 ==========================** Date: Wed, 22 Jun 2005 17:14:43 +0200 From: "Knut St. Osmundsen" Subject: Re: gcc -b, what does it do? man gcc [snip] Target Options -V version -b machine [snip] However what you are seeing here seems to be an AIX ld features (http://www-106.ibm.com/developerworks/eserver/articles/gnu.html): "With GCC, gcc -shared creates a shared library. The linker automatically exports some symbols, but you can use AIX's ld -bexpall to export more symbols. Symbols with underscores are still not exported automatically." Kind Regards, knut Dave Yeo wrote: > While compiling gtk1.2.10 with gcc3.3.5 I got this error > gcc -g -O2 -Wall -o testgtk testgtk.o .libs/gtk.a -L/usr/X11R6/lib > -lgmodule -lglib -lXext -lX11 -lsocket -lm ../gdk/.libs/gdk.a -lgmodule > -lglib -lXext -lX11 -lsocket -lm -L/usr/X11R6/lib -lXext -lX11 -lsocket > -L/usr/X11R6/lib -bexpall -lgmodule -lglib -lm > gcc: `-b' must come at the start of the command line > > Has anyone seen this before? Looking at the GCC 3.3.5 manual -b is used > to specify the target machine when cross-compiling. Obviously it must > of had a different meaning at one time but I have no manual for 2.8.1 > or previous > Dave > > > > **= Email 2 ==========================** Date: Wed, 22 Jun 2005 21:01:20 -0800 From: "Dave Yeo" Subject: Re: gcc -b, what does it do? On Wed, 22 Jun 2005 17:14:43 +0200, Knut St. Osmundsen wrote: >However what you are seeing here seems to be an AIX ld features >(http://www-106.ibm.com/developerworks/eserver/articles/gnu.html): > >"With GCC, gcc -shared creates a shared library. The linker >automatically exports some symbols, but you can use AIX's ld -bexpall to >export more symbols. Symbols with underscores are still not exported >automatically." > >Kind Regards, > knut Thanks for the info. I finally cleared this up by using the autoconf 2.13 that has been updated for building Mozilla. My slightly older one and the origanal configure created the problem. Looking in ltconfig I see # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on Lots of other AIX linker options that start with -b as well Dave **= Email 3 ==========================** Date: Thu, 23 Jun 2005 20:18:03 +0000 (GMT) From: Nicholas Sheppard Subject: tcgetattr() Hi all. I've been trying to compile TinyFugue 5.0 for OS/2 with Innotek GCC 3.3.5 and am having some trouble with tcgetattr(), in that it always returns -1 with error "invalid argument". I get the same result from a program with just: struct termios tty; printf("tcgetattr(0, &tty) = %d\n", tcgetattr(0, &tty)); The above (and earlier versions of TinyFugue) works fine with GCC 2.8.1 but TinyFugue 5.0 uses a few things that 2.8.1 doesn't have so I thought I'd try 3.3.5. I couldn't find much documentation on Innotek's libc; is tcgetattr() supposed to work? If not, is there a way of working around it? Nick S.