Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings on Mac M1 Ventura #75

Closed
ackerthehacker2 opened this issue Feb 4, 2023 · 7 comments
Closed

Warnings on Mac M1 Ventura #75

ackerthehacker2 opened this issue Feb 4, 2023 · 7 comments

Comments

@ackerthehacker2
Copy link

pkg install "https://github.com/gnu-octave/statistics/archive/refs/tags/release-1.5.3.tar.gz"
ld: warning: -undefined dynamic_lookup may not work with chained fixups
ld: warning: -undefined dynamic_lookup may not work with chained fixups
svm.cpp:74:2: warning: 'vsprintf' is deprecated: This function is provided for compatibility reasons only. Due to security
concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Wdeprecated-declarations]
vsprintf(buf,fmt,ap);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:207:1: note:
'vsprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) attribute((deprecated(_msg)))
^
1 warning generated.
ld: warning: -undefined dynamic_lookup may not work with chained fixups
svm.cpp:74:2: warning: 'vsprintf' is deprecated: This function is provided for compatibility reasons only. Due to security
concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Wdeprecated-declarations]
vsprintf(buf,fmt,ap);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:207:1: note:
'vsprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) attribute((deprecated(_msg)))
^
1 warning generated.
ld: warning: -undefined dynamic_lookup may not work with chained fixups
warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/mean.m shadows a core library function
warning: called from
/Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/PKG_ADD at line 11 column 3
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/median.m shadows a core library function
warning: called from
/Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/PKG_ADD at line 11 column 3
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/std.m shadows a core library function
warning: called from
/Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/PKG_ADD at line 11 column 3
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/var.m shadows a core library function
warning: called from
/Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/PKG_ADD at line 11 column 3
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

octave-help-sKOPvC:141: misplaced {
octave-help-sKOPvC:141: misplaced }
octave-help-sKOPvC:141: misplaced {
octave-help-sKOPvC:141: misplaced }
warning: doc_cache_create: unusable help text found in file 'chi2gof'
warning: called from
doc_cache_create>handle_function at line 98 column 5
doc_cache_create>create_cache at line 118 column 36
gen_doc_cache_in_dir>@ at line 150 column 16
doc_cache_create>gen_doc_cache_in_dir at line 151 column 9
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/mean.m shadows a core library function
warning: called from
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/median.m shadows a core library function
warning: called from
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/std.m shadows a core library function
warning: called from
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

warning: function /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/shadow9/var.m shadows a core library function
warning: called from
doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
doc_cache_create at line 62 column 12
install>generate_lookfor_cache at line 840 column 5
install at line 241 column 7
pkg at line 612 column 9

@pr0m1th3as
Copy link
Member

The warnings about mean, median, var, and std shadowing core functions are expected.

I cannot reproduce the following warning regarding chi2gof function

octave-help-sKOPvC:141: misplaced {
octave-help-sKOPvC:141: misplaced }
octave-help-sKOPvC:141: misplaced {
octave-help-sKOPvC:141: misplaced }
warning: doc_cache_create: unusable help text found in file 'chi2gof'

Which version of Octave are you using?

The warning about svm.cpp is also not produced in my linux systems. What compiler do you have in your Mac?

@ackerthehacker2
Copy link
Author

ackerthehacker2 commented Feb 4, 2023 via email

pr0m1th3as added a commit that referenced this issue Feb 5, 2023
@pr0m1th3as
Copy link
Member

I just pushed a new commit swap vsprintf with vsnprintf in svm.cpp file. Can you reinstall the statistics package from main to see if the warning is still being produced in your system?
Use the following command to install the latest dev.

pkg install "https://github.com/gnu-octave/statistics/archive/refs/heads/main.zip"

@ackerthehacker2
Copy link
Author

ackerthehacker2 commented Feb 5, 2023 via email

@pr0m1th3as
Copy link
Member

ld: warning: -undefined dynamic_lookup may not work with chained fixups
ld: warning: -undefined dynamic_lookup may not work with chained fixups
ld: warning: -undefined dynamic_lookup may not work with chained fixups
ld: warning: -undefined dynamic_lookup may not work with chained fixups

the above warnings are related to your XCode environment. You may find useful information on this link. Although I can't tell for sure, these are probably causing the misreading the texinfo docstring in the chi2gof function.

Is the following shown at the begining of the help info of the chi2gof function when your call the help function?

help chi2gof

octave-help-I9LczX:141: misplaced {
octave-help-I9LczX:141: misplaced }
octave-help-I9LczX:141: misplaced {
octave-help-I9LczX:141: misplaced }
...

Can you run a package test and report the summary here?
just type pkg test statistics

@ackerthehacker2
Copy link
Author

ackerthehacker2 commented Feb 5, 2023 via email

@pr0m1th3as
Copy link
Member

help chi2gof

octave-help-qFSl2M:141: misplaced {
octave-help-qFSl2M:141: misplaced }
octave-help-qFSl2M:141: misplaced {
octave-help-qFSl2M:141: misplaced }
warning: help: Texinfo formatting filter exited abnormally; raw Texinfo source of help text follows...
'chi2gof' is a function from the file /Users/dougacker/.local/share/octave/api-v57/packages/statistics-1.5.3/chi2gof.m

I can't find any more info about why this is occurring in your system except for the cause I mentioned earlier. I am running linux on my machines and I can't reproduce the warnings you mentioned. Just run a pkg test package to verify that all functions pass their tests and this is the most I can do for the time being. Perhaps, it is best to mention this issue at discourse and seek help over there, since I don't have any Mac to test the statistics package and see why it produces the texinfo warnings on this particular function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants