Myschema compile help - getopt_long
Posted in 2006
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
I am trying to compile Art's myschema on Solaris 9 using gcc 3.3.2 and esql. I need to find the getopt_long function. I googled around and cannot find the source for this library. Where can I get it? Thanks Gary Quiring
Now I am confused. The getopt is included in Art's package. Here is the error message: Undefined first referenced symbol in file getopt_long myschema.o ld: fatal: Symbol referencing errors. No output written to myschema collect2: ld returned 1 exit status make[1]: *** [myschema] Error 1 make[1]: Leaving directory `/u/local/src/ak/myschema.d' cp: cannot access myschema make: *** [myschema] Error 2
I fixed it, but I think the makefile has an issue. I had to add getopt.o in the OBJS= to myschema.mk.norcs: OBJS= myschema.o blobfuncs.o cleancat.o format_triggers.o getsysdata.o \\ obtainidxsize.o print_auths.o print_checks.o print_constraints.o \\ print_defaults.o print_indexes.o print_procedures.o print_triggers.o \\ print_violations.o print_synonyms.o print_views.o usage.o \\ print_seconstraints.o print_seindexes.o print_distributions.o \\ print_userauths.o tokens.o return_extended.o print_casts.o \\ print_types.o print_coltype.o print_aggregates.o print_alters.o \\ print_puts.o print_sequences.o getopt.o
Gary Quiring wrote: > I fixed it, but I think the makefile has an issue. I had to add > getopt.o in the OBJS= to myschema.mk.norcs: Ouch, Gary. I'll fix the makefiles in the package for the next upload, thanks. Art S. Kagel > OBJS= myschema.o blobfuncs.o cleancat.o format_triggers.o > getsysdata.o \\ > obtainidxsize.o print_auths.o print_checks.o print_constraints.o > \\ > print_defaults.o print_indexes.o print_procedures.o > print_triggers.o \\ > print_violations.o print_synonyms.o print_views.o usage.o \\ > print_seconstraints.o print_seindexes.o print_distributions.o \\ > print_userauths.o tokens.o return_extended.o print_casts.o \\ > print_types.o print_coltype.o print_aggregates.o print_alters.o > \\ > print_puts.o print_sequences.o getopt.o >