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

configure - visibility.m4 #2

Open
user706 opened this issue Apr 29, 2024 · 0 comments
Open

configure - visibility.m4 #2

user706 opened this issue Apr 29, 2024 · 0 comments

Comments

@user706
Copy link

user706 commented Apr 29, 2024

Hi,

if I build, then bugs appear (note the comments)

./autogen.sh
# shows
#configure.ac:37: warning: gl_VISIBILITY is m4_require'd but not m4_defun'd

./configure
# shows
# ./configure: line 12938: gl_VISIBILITY: command not found
# ./configure: line 12949: test: too many arguments

and make then fails with:

error: expected declaration specifiers before ‘__declspec’
    5 | #define API_EXPORTED __declspec(dllexport)

(Note for above: I'm on a linux, so I should not get __declspec(dllexport) at all - that's only for windows).

To fix, I can do

sudo apt install gnulib
cp /usr/share/gnulib/m4/visibility.m4 m4/

and then again run

./autogen.sh
./configure
make

Some questions:

Why is visibility.m4 in the .gitignore? ref

Do you have a bug, or should I do something differently? (In particular... different than manually copying visibility.m4. If that file is required, then it should be committed, right?)

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

1 participant