unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* guile-2 on Tru64/OSF1 regcomp.c const warning and unresolved mktime_internal
@ 2021-07-08  4:04 Jay K
  2021-07-08  4:23 ` Jay K
  0 siblings, 1 reply; 2+ messages in thread
From: Jay K @ 2021-07-08  4:04 UTC (permalink / raw)
  To: guile-devel@gnu.org; +Cc: Larkin Nickle

/bin/ksh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib -I..   -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig  -mieee -I/usr/users/jay/include  -I/usr/users/jay/include -pthread -MT regex.lo -MD -MP -MF .deps/regex.Tpo -c -o regex.lo /usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regex.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib -I.. -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig -mieee -I/usr/users/jay/include -I/usr/users/jay/include -pthread -MT regex.lo -MD -MP -MF .deps/regex.Tpo -c /usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regex.c  -DPIC -o .libs/regex.o
In file included from /usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regex.c:71:0:
/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regcomp.c: In function 'build_charclass':
/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regcomp.c:3607:3: warning: passing argument 1 of 'wctype' discards 'const' qualifier from pointer target type [enabled by default]
In file included from ./wctype.h:59:0,

mbcset->char_classes[mbcset->nchar_classes++] = __wctype (name);

For increased portability, please cast away const here:

mbcset->char_classes[mbcset->nchar_classes++] = __wctype ((char*)(name));

I realize it is just a warning, but still seems nice-ish.

libtool: link: gcc -shared  -DPIC  .libs/binary-io.o .libs/c-ctype.o .libs/c-strcasecmp.o .libs/c-strncasecmp.o .libs/dirname-lgpl.o .libs/basename-lgpl.o .libs/stripslash.o .libs/full-read.o .libs/full-write.o .libs/hard-locale.o .libs/localcharset.o .libs/malloca.o .libs/math.o .libs/nproc.o .libs/pipe2.o .libs/safe-read.o .libs/safe-write.o .libs/stat-time.o .libs/strftime.o .libs/striconveh.o .libs/sys_socket.o .libs/tempname.o .libs/unistd.o .libs/wctype-h.o .libs/xsize.o .libs/asnprintf.o .libs/canonicalize-lgpl.o .libs/dirfd.o .libs/gai_strerror.o .libs/isfinite.o .libs/isinf.o .libs/malloc.o .libs/mbrtowc.o .libs/mbsinit.o .libs/mkostemp.o .libs/printf-args.o .libs/printf-parse.o .libs/putenv.o .libs/readlink.o .libs/regex.o .libs/secure_getenv.o .libs/setenv.o .libs/time_rz.o .libs/timegm.o .libs/unsetenv.o .libs/vasnprintf.o .libs/vsnprintf.o .libs/wcrtomb.o   -L/usr/users/jay/lib -lunistring /usr/users/jay/lib/libiconv.so /usr/users/jay/lib/libgc.so -lpthread -lrt -lpthreads -lm  -pthread   -pthread -Wl,-msym -Wl,-soname -Wl,libgnu.so.0 `test -n "0.0.0:0.0" && func_echo_all "-Wl,-set_version -Wl,0.0.0:0.0"` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libgnu.so.0.0.0

Unresolved symbol: mktime_internal

I haven't solved yet.

libgnu.so? That seems kinda wrong but maybe I don't understand something.
Maybe it is really just building libgnu.a and doesn't use/install libgnu.so.

Thank you,
 - Jay


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: guile-2 on Tru64/OSF1 regcomp.c const warning and unresolved mktime_internal
  2021-07-08  4:04 guile-2 on Tru64/OSF1 regcomp.c const warning and unresolved mktime_internal Jay K
@ 2021-07-08  4:23 ` Jay K
  0 siblings, 0 replies; 2+ messages in thread
From: Jay K @ 2021-07-08  4:23 UTC (permalink / raw)
  To: guile-devel@gnu.org; +Cc: Larkin Nickle

[-- Attachment #1: Type: text/plain, Size: 3377 bytes --]

> Unresolved symbol: mktime_internal
 > I haven't solved yet.

Ok, well, comparing to Linux.. configure looks for function timegm, and if it is there, great, use it.
If it is not there, do something else.
timegm is in glibc but not OSF1 libc.

GNU Gnulib: timegm<https://www.gnu.org/software/gnulib/manual/html_node/timegm.html>

 - Jay

________________________________
From: Jay K
Sent: Thursday, July 8, 2021 4:04 AM
To: guile-devel@gnu.org <guile-devel@gnu.org>
Cc: Larkin Nickle <me@larbob.org>
Subject: guile-2 on Tru64/OSF1 regcomp.c const warning and unresolved mktime_internal

/bin/ksh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib -I..   -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig  -mieee -I/usr/users/jay/include  -I/usr/users/jay/include -pthread -MT regex.lo -MD -MP -MF .deps/regex.Tpo -c -o regex.lo /usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regex.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib -I.. -I/usr/users/jay/s/guile-2.0-2.0.13+1.orig -mieee -I/usr/users/jay/include -I/usr/users/jay/include -pthread -MT regex.lo -MD -MP -MF .deps/regex.Tpo -c /usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regex.c  -DPIC -o .libs/regex.o
In file included from /usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regex.c:71:0:
/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regcomp.c: In function 'build_charclass':
/usr/users/jay/s/guile-2.0-2.0.13+1.orig/lib/regcomp.c:3607:3: warning: passing argument 1 of 'wctype' discards 'const' qualifier from pointer target type [enabled by default]
In file included from ./wctype.h:59:0,

mbcset->char_classes[mbcset->nchar_classes++] = __wctype (name);

For increased portability, please cast away const here:

mbcset->char_classes[mbcset->nchar_classes++] = __wctype ((char*)(name));

I realize it is just a warning, but still seems nice-ish.

libtool: link: gcc -shared  -DPIC  .libs/binary-io.o .libs/c-ctype.o .libs/c-strcasecmp.o .libs/c-strncasecmp.o .libs/dirname-lgpl.o .libs/basename-lgpl.o .libs/stripslash.o .libs/full-read.o .libs/full-write.o .libs/hard-locale.o .libs/localcharset.o .libs/malloca.o .libs/math.o .libs/nproc.o .libs/pipe2.o .libs/safe-read.o .libs/safe-write.o .libs/stat-time.o .libs/strftime.o .libs/striconveh.o .libs/sys_socket.o .libs/tempname.o .libs/unistd.o .libs/wctype-h.o .libs/xsize.o .libs/asnprintf.o .libs/canonicalize-lgpl.o .libs/dirfd.o .libs/gai_strerror.o .libs/isfinite.o .libs/isinf.o .libs/malloc.o .libs/mbrtowc.o .libs/mbsinit.o .libs/mkostemp.o .libs/printf-args.o .libs/printf-parse.o .libs/putenv.o .libs/readlink.o .libs/regex.o .libs/secure_getenv.o .libs/setenv.o .libs/time_rz.o .libs/timegm.o .libs/unsetenv.o .libs/vasnprintf.o .libs/vsnprintf.o .libs/wcrtomb.o   -L/usr/users/jay/lib -lunistring /usr/users/jay/lib/libiconv.so /usr/users/jay/lib/libgc.so -lpthread -lrt -lpthreads -lm  -pthread   -pthread -Wl,-msym -Wl,-soname -Wl,libgnu.so.0 `test -n "0.0.0:0.0" && func_echo_all "-Wl,-set_version -Wl,0.0.0:0.0"` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libgnu.so.0.0.0

Unresolved symbol: mktime_internal

I haven't solved yet.

libgnu.so? That seems kinda wrong but maybe I don't understand something.
Maybe it is really just building libgnu.a and doesn't use/install libgnu.so.

Thank you,
 - Jay

[-- Attachment #2: Type: text/html, Size: 5866 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-08  4:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08  4:04 guile-2 on Tru64/OSF1 regcomp.c const warning and unresolved mktime_internal Jay K
2021-07-08  4:23 ` Jay K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).