Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Gary Quiring could not link Art Kagel's myschema on Solaris 9 with gcc 3.3.2 because getopt_long was undefined. He fixed it by adding getopt.o to OBJS in myschema.mk.norcs. Art Kagel acknowledged it and said he would fix the makefiles in the next upload.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Gary Quiring — — source: Usenet: comp.databases.informix
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
↪ replying to Gary Quiring
Gary Quiring — — source: Usenet: comp.databases.informix
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
↪ replying to Gary Quiring
Gary Quiring — — source: Usenet: comp.databases.informix
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
↪ replying to Gary Quiring
Art S. Kagel — — source: Usenet: comp.databases.informix
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
>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.