CFGLGO: AIX 5.3 RDS 7.32 and GCC compile error
Posted in 2005
Topics: Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
I am attempting to create a runner with the following conditions.. AIX: 5.3 GCC: 3.3.2 RDS: 7.32 IDS: 9.40 have created my personal cfglgo and added CC="gcc" C4GLFLAGS="-fwriteable-strings" when I attept to compile the runner I receive the errors listed below, any ideas or comments welcome.. also, I used both "-fwriteable-strings" and "-fwritable-strings" with the same results. Compiling the runner ... ./cfglgo -DFGLPCVER=732 timer.c menureset.c io.c db_stop.c usr_func s41.c fgiusr41.c -o cdcgo-7.32.FC2 -s gcc: `-b' must come at the start of the command line make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. -- W. R. Werner
toonsez wrote: > I am attempting to create a runner with the following conditions.. > > AIX: 5.3 > GCC: 3.3.2 > RDS: 7.32 > IDS: 9.40 > > have created my personal cfglgo and added > > CC="gcc" > C4GLFLAGS="-fwriteable-strings" > > when I attept to compile the runner I receive the errors listed below, > any ideas or comments welcome.. also, I used both > "-fwriteable-strings" and "-fwritable-strings" with the same results. > > Compiling the runner ... > ./cfglgo -DFGLPCVER=732 timer.c menureset.c io.c db_stop.c > usr_func > s41.c fgiusr41.c -o cdcgo-7.32.FC2 -s > gcc: `-b' must come at the start of the command line > make: 1254-004 The error code from the last command is 1. What changes did you make to cfglgo? Since you're running it as ./cfglgo, it can't (surely) be the copy installed in $INFORMIXDIR/bin as that would mean you have source code in $INFORMIXDIR/bin which is a horrendous no-no. Since you have a local copy of it, it's easy to inspect what is happening under the covers: sh -x ./cfglgo -DFGLPCVER=732 timer.c menureset.c io.c \\ db_stop.c usr_funcs41.c fgiusr41.c -o cdcgo-7.32.FC2 -s When you see the line that executes gcc, you'll know where the '-b' option appears, and you can then fix it (either by removing it or by moving it to the front of the command line). The option to GCC is -fwritable-strings (only one letter e). Be aware that it is deprecated -- see the GCC 3.4 release notes (http://gcc.gnu.org/gcc-3.4/). -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/