Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Myschema compile help - getopt_long

3 views
Skip to first unread message

Gary Quiring

unread,
Apr 22, 2006, 9:11:45 AM4/22/06
to
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

Gary Quiring

unread,
Apr 22, 2006, 9:25:14 AM4/22/06
to
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

Gary Quiring

unread,
Apr 22, 2006, 10:23:54 AM4/22/06
to
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

Art S. Kagel

unread,
Apr 24, 2006, 11:44:32 AM4/24/06
to Gary Quiring
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

0 new messages