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

PyNGL compilation failure #54

Open
lechlobocki opened this issue Aug 1, 2022 · 4 comments
Open

PyNGL compilation failure #54

lechlobocki opened this issue Aug 1, 2022 · 4 comments

Comments

@lechlobocki
Copy link

On a Fedora-36 box with python 3.10, installation via the setup.py script fails with the message:

/usr/bin/ld: /usr/lib64/ncarg/libncarg.a(pcblda.o):(.bss+0x104b0): multiple definition of pcmp04_'; build/temp.linux-x86_64-3.10/src/hlu/hlu_wrap.o:/root/import/pyngl/src/hlu/hlu_wrap.c:3350: first defined here /usr/bin/ld: warning: alignment 8 of symbol pcmp04_' in build/temp.linux-x86_64-3.10/src/hlu/hlu_wrap.o is smaller than 16 in /usr/lib64/ncarg/libncarg.a(pcmpxy.o)
collect2: error: ld returned 1 exit status

@rpasken
Copy link

rpasken commented Nov 14, 2022

I also have the same problem. Tried adding #pragma(1), which gave me a multiply defined pcmp04/ I also tried adding static in front of the structure definition of pcmp04 which allowed me to compile, but that resulted in a core dump when trying to use pyngl

@rpasken
Copy link

rpasken commented Nov 14, 2022

Added extern to the struct in hlu_wrap.c and everything work

@ivicajan
Copy link

Hi rpasken,
can you please specify in which line you did the modification and exactly what it was?

Thanks in advance!

Ivica

@ivicajan
Copy link

something like this:

'''
struct common1 {
float pang, plat, plon;
} extern NGCALLF(pcmp04,PCMP04);

'''

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

3 participants