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

getting error in apple m1 chip #153

Open
ashishm8898 opened this issue Jun 21, 2022 · 5 comments
Open

getting error in apple m1 chip #153

ashishm8898 opened this issue Jun 21, 2022 · 5 comments

Comments

@ashishm8898
Copy link

github.com/spacemonkeygo/openssl

In file included from ../../go/pkg/mod/github.com/spacemonkeygo/[email protected]/bio.go:17:
./shim.h:21:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
^~~~~~~~~~~~~~~
1 error generated.

github.com/gen2brain/go-fitz

Undefined symbols for architecture arm64:
"_fz_bound_page", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_bound_page in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_bound_page)
"_fz_buffer_storage", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_buffer_storage in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_buffer_storage)
"_fz_clear_pixmap_with_value", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_clear_pixmap_with_value in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_clear_pixmap_with_value)
"_fz_close_device", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_close_device in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_close_device)
"_fz_count_pages", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_count_pages in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_count_pages)
"_fz_device_rgb", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_device_rgb in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_device_rgb)
"_fz_drop_buffer", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_buffer in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_buffer)
"_fz_drop_context", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_context in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_context)
"_fz_drop_device", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_device in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_device)
"_fz_drop_document", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_document in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_document)
"_fz_drop_outline", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_outline in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_outline)
"_fz_drop_output", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_output in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_output)
"_fz_drop_page", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_page in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_page)
"_fz_drop_pixmap", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_pixmap in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_pixmap)
"_fz_drop_stext_page", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_stext_page in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_stext_page)
"_fz_drop_stream", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_drop_stream in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_drop_stream)
"_fz_enable_device_hints", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_enable_device_hints in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_enable_device_hints)
"_fz_identity", referenced from:
__cgohack_fz_identity in _cgo_main.o
(maybe you meant: __cgohack_fz_identity)
"_fz_load_outline", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_load_outline in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_load_outline)
"_fz_load_page", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_load_page in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_load_page)
"_fz_lookup_metadata", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_lookup_metadata in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_lookup_metadata)
"_fz_needs_password", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_needs_password in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_needs_password)
"_fz_new_buffer", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer_from_stext_page, __cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer , __cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer_from_pixmap_as_png )
"_fz_new_buffer_from_pixmap_as_png", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer_from_pixmap_as_png in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer_from_pixmap_as_png)
"_fz_new_buffer_from_stext_page", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer_from_stext_page in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_buffer_from_stext_page)
"_fz_new_context_imp", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_context_imp in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_context_imp)
"_fz_new_draw_device", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_draw_device in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_draw_device)
"_fz_new_output_with_buffer", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_output_with_buffer in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_output_with_buffer)
"_fz_new_pixmap_with_bbox", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_pixmap_with_bbox in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_pixmap_with_bbox)
"_fz_new_stext_device", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_stext_device in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_stext_device)
"_fz_new_stext_page", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_stext_page in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_stext_page)
"_fz_new_svg_device", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_new_svg_device in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_new_svg_device)
"_fz_open_document", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_open_document in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_open_document, __cgo_7eb2ce70e3ae_Cfunc_fz_open_document_with_stream )
"_fz_open_document_with_stream", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_open_document_with_stream in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_open_document_with_stream)
"_fz_open_memory", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_open_memory in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_open_memory)
"_fz_pixmap_samples", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_pixmap_samples in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_pixmap_samples)
"_fz_print_stext_header_as_html", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_print_stext_header_as_html in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_print_stext_header_as_html)
"_fz_print_stext_page_as_html", referenced from:
__cgo_7eb2ce70e3ae_Cfunc_fz_print_stext_page_as_html in _x002.o
(maybe you meant: __cgo_7eb2ce70e3ae_Cfunc_fz_print_stext_page_as_html)

@ashishm8898
Copy link
Author

plz help me out ASAP

@nisarg0103
Copy link

Getting same error, its working fine for intel arch but not for Arm

@IAOTW
Copy link

IAOTW commented Jun 24, 2022

#148

@johansetia
Copy link

i getting the same error but we got it

ld: warning: ignoring file /opt/homebrew/opt/[email protected]/lib/libssl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/opt/[email protected]/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

@soniya31
Copy link

#148

Getting error on Apple M1 chip .

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

5 participants