CNMAT/libo

striptime.o has no symbols

davispolito opened this issue · 3 comments

rm -f libo.a
libtool -static -o libo.a  osc_match.o  osc_bundle_s.o  osc_bundle_u.o  osc_bundle_iterator_s.o  osc_bundle_iterator_u.o  osc_error.o  osc_mem.o  osc_message_s.o  osc_message_u.o  osc_message_iterator_s.o  osc_message_iterator_u.o  osc_atom_s.o  osc_atom_u.o  osc_array.o  osc_atom_array_s.o  osc_atom_array_u.o  osc_expr.o  osc_vtable.o  osc_dispatch.o  osc_hashtab.o  osc_linkedlist.o  osc_util.o  osc_rset.o  osc_query.o  osc_strfmt.o  osc_expr_rec.o  osc_typetag.o  contrib/strptime.o  osc_timetag.o  osc_serial.o  osc_scanner.o  osc_expr_scanner.o  osc_legacy_scanner.o  osc_parser.o  osc_expr_parser.o  osc_legacy_parser.o /usr/local/lib/libfl.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: contrib/strptime.o has no symbols

Above is what I would consider to be the important info
Here is the full output

bison -p osc_parser_ -d -v --report=itemset -o osc_parser.c osc_parser.y
flex -o osc_scanner.c --prefix=osc_scanner_ --header-file=osc_scanner.h osc_scanner.l
bison -p osc_expr_parser_ -d -v --report=itemset -o osc_expr_parser.c osc_expr_parser.y
flex -o osc_expr_scanner.c --prefix=osc_expr_scanner_ --header-file=osc_expr_scanner.h osc_expr_scanner.l
bison -p osc_legacy_parser_ -d -v --report=itemset -o osc_legacy_parser.c osc_legacy_parser.y
flex -o osc_legacy_scanner.c --prefix=osc_legacy_scanner_ --header-file=osc_legacy_scanner.h osc_legacy_scanner.l
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_match.o osc_match.c
In file included from osc_match.c:22:
./osc_match.h:74:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e);
           ^
osc_match.c:34:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const char const *_osc_match_errstr[] = 
                  ^
osc_match.c:47:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e)
           ^
3 warnings generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_bundle_s.o osc_bundle_s.c
In file included from osc_bundle_s.c:29:
./osc_match.h:74:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e);
           ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_bundle_u.o osc_bundle_u.c
In file included from osc_bundle_u.c:30:
./osc_match.h:74:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e);
           ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_bundle_iterator_s.o osc_bundle_iterator_s.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_bundle_iterator_u.o osc_bundle_iterator_u.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_error.o osc_error.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_mem.o osc_mem.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_message_s.o osc_message_s.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_message_u.o osc_message_u.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_message_iterator_s.o osc_message_iterator_s.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_message_iterator_u.o osc_message_iterator_u.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_atom_s.o osc_atom_s.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_atom_u.o osc_atom_u.c
osc_atom_u.c:129:27: warning: incompatible pointer types passing 'char *' to parameter of type 't_osc_bndl_u *' (aka 'struct _osc_bundle_u *') [-Wincompatible-pointer-types]
        osc_bundle_u_free(a->w.b);
                          ^~~~~~
./osc_bundle_u.h:55:38: note: passing argument to parameter 'bndl' here
void osc_bundle_u_free(t_osc_bndl_u *bndl);
                                     ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_array.o osc_array.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_atom_array_s.o osc_atom_array_s.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_atom_array_u.o osc_atom_array_u.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_expr.o osc_expr.c
In file included from osc_expr.c:51:
./osc_match.h:74:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e);
           ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_vtable.o osc_vtable.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_dispatch.o osc_dispatch.c
In file included from osc_dispatch.c:34:
./osc_match.h:74:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e);
           ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_hashtab.o osc_hashtab.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_linkedlist.o osc_linkedlist.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_util.o osc_util.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_rset.o osc_rset.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_query.o osc_query.c
In file included from osc_query.c:35:
./osc_match.h:74:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *osc_match_errstr(unsigned long e);
           ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_strfmt.o osc_strfmt.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_expr_rec.o osc_expr_rec.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_typetag.o osc_typetag.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o contrib/strptime.o contrib/strptime.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_timetag.o osc_timetag.c
osc_timetag.c:317:53: warning: unused variable 'yrcount' [-Wunused-variable]
        unsigned short int year, month, day, hour, minute, yrcount, leap = 0;
                                                           ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_serial.o osc_serial.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_scanner.o osc_scanner.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_expr_scanner.o osc_expr_scanner.c
osc_expr_scanner.l:204:17: warning: unused variable 'a' [-Wunused-variable]
                t_osc_atom_u *a = osc_atom_u_alloc();
                              ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_legacy_scanner.o osc_legacy_scanner.c
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_parser.o osc_parser.c
In file included from osc_parser.y:46:
osc_legacy_parser.y:71:9: warning: 'YY_DECL' macro redefined [-Wmacro-redefined]
#define YY_DECL int osc_legacy_scanner_lex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner, long *buflen, char **buf)
        ^
osc_parser.y:77:9: note: previous definition is here
#define YY_DECL int osc_scanner_lex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner, long *buflen, char **buf)
        ^
1 warning generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_expr_parser.o osc_expr_parser.c
osc_expr_parser.y:165:6: warning: unused variable 'len' [-Wunused-variable]
        int len = strlen(ptr);
            ^
osc_expr_parser.y:984:7: warning: unused variable 'n' [-Wunused-variable]
                int n = 0;
                    ^
2 warnings generated.
clang -Wall -Wno-trigraphs -fno-strict-aliasing -O3 -funroll-loops -std=c99 -arch x86_64 -I/usr/include -c -o osc_legacy_parser.o osc_legacy_parser.c
osc_legacy_parser.y:332:6: warning: address of array 'ptr' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if(ptr){
                ~~ ^~~
osc_legacy_parser.y:352:6: warning: address of array 'ptr' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if(ptr){
                ~~ ^~~
osc_legacy_parser.y:372:6: warning: address of array 'ptr' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if(ptr){
                ~~ ^~~
osc_legacy_parser.y:392:6: warning: address of array 'ptr' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if(ptr){
                ~~ ^~~
4 warnings generated.
rm -f libo.a
libtool -static -o libo.a  osc_match.o  osc_bundle_s.o  osc_bundle_u.o  osc_bundle_iterator_s.o  osc_bundle_iterator_u.o  osc_error.o  osc_mem.o  osc_message_s.o  osc_message_u.o  osc_message_iterator_s.o  osc_message_iterator_u.o  osc_atom_s.o  osc_atom_u.o  osc_array.o  osc_atom_array_s.o  osc_atom_array_u.o  osc_expr.o  osc_vtable.o  osc_dispatch.o  osc_hashtab.o  osc_linkedlist.o  osc_util.o  osc_rset.o  osc_query.o  osc_strfmt.o  osc_expr_rec.o  osc_typetag.o  contrib/strptime.o  osc_timetag.o  osc_serial.o  osc_scanner.o  osc_expr_scanner.o  osc_legacy_scanner.o  osc_parser.o  osc_expr_parser.o  osc_legacy_parser.o /usr/local/lib/libfl.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: contrib/strptime.o has no symbols

Hi @davispolito - I am unable to reproduce this. Would you mind posting your system specs?
Thanks!

What specs do you want? Sorry been a minute since I've any dev stuff

Hey @davispolito, that's a normal warning, you can disregard it.