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

Mac M1 builds not working #284

Closed
godofecht opened this issue Aug 22, 2023 · 3 comments
Closed

Mac M1 builds not working #284

godofecht opened this issue Aug 22, 2023 · 3 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@godofecht
Copy link

I'm currently using a Mac M1, running OS Ventura.

I use the following commands to build libcups and pappl.
./configure --host=aarch64-apple-darwin
sudo make all
sudo make install

However, when I run testsuite/testpappl, it enters a loop with no output. What could this imply?

@godofecht
Copy link
Author

Below is the output from sudo make

14 warnings generated.
Compiling util.c...
Compiling system-status-macos.m...
Linking libpappl.1.dylib...
ld: warning: ignoring file /usr/local/lib/libcups3.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/openssl@3/3.1.2/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: dylib (/usr/local/lib/libssl.dylib) was built for newer macOS version (13.0) than being linked (11.0)
ld: warning: ignoring file /usr/local/lib/libpng16.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /usr/local/lib/libusb-1.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_ASN1_INTEGER_set", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_ASN1_OCTET_STRING_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_ASN1_OCTET_STRING_new", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_ASN1_OCTET_STRING_set", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_ASN1_TIME_set", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_BIO_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_BIO_new_file", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_BN_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_BN_new", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_BN_set_word", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_EC_KEY_new_by_curve_name", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_EVP_PKEY_assign", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_EVP_PKEY_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_EVP_PKEY_new", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_EVP_sha256", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_OPENSSL_sk_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_OPENSSL_sk_new_null", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_OPENSSL_sk_push", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_PEM_write_bio_PrivateKey", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_PEM_write_bio_X509", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_PEM_write_bio_X509_REQ", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_RSA_generate_key_ex", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_RSA_new", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_EXTENSION_create_by_NID", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_EXTENSION_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_NAME_add_entry_by_txt", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_REQ_add_extensions", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_REQ_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_REQ_get_subject_name", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_REQ_new", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_REQ_set_pubkey", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_REQ_sign", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_add_ext", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_free", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_get_serialNumber", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_get_subject_name", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_getm_notAfter", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_getm_notBefore", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_new", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_set_issuer_name", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_set_pubkey", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_X509_sign", referenced from:
      __papplSystemWebTLSNew in system-webif.o
  "_cupsAddIntegerOption", referenced from:
      _papplSystemSaveState in system-loadsave.o
      _write_media_col in system-loadsave.o
  "_cupsAddOption", referenced from:
      _papplClientGetForm in client-webif.o
      _papplDeviceParseID in device.o
      _papplJobCreatePrintOptions in job-process.o
      _papplMainloop in mainloop.o
      _load_options in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplPrinterWebDefaults in printer-webif.o
      ...
  "_cupsArrayAdd", referenced from:
      __papplDeviceAddSchemeNoLock in device.o
      __papplDeviceInfoCallback in device.o
      _pappl_dnssd_browse_cb in device-network.o
      _pappl_snmp_find in device-network.o
      __papplJobCopyDocumentData in job-ipp.o
      _finish_job in job-process.o
      _papplJobCancel in job.o
      ...
  "_cupsArrayDelete", referenced from:
      _pappl_dnssd_list in device-network.o
      _pappl_snmp_find in device-network.o
      __papplJobCopyDocumentData in job-ipp.o
      __papplJobProcessIPP in job-ipp.o
      __papplLocDelete in loc.o
      __papplPrinterDelete in printer.o
      __papplPrinterProcessIPP in printer-ipp.o
      ...
  "_cupsArrayFind", referenced from:
      __papplDeviceAddSchemeNoLock in device.o
      _papplDeviceIsSupported in device.o
      _papplDeviceOpen in device.o
      _papplDeviceRemoveScheme in device.o
      _pappl_dnssd_browse_cb in device-network.o
      __papplJobCopyAttributesNoLock in job-ipp.o
      __papplJobCopyStateNoLock in job-ipp.o
      ...
  "_cupsArrayGetCount", referenced from:
      _papplClientHTMLHeader in client-webif.o
      __papplClientHTMLPutLinks in client-webif.o
      __papplDeviceAddSupportedSchemes in device.o
      _pappl_dnssd_list in device-network.o
      _pappl_snmp_find in device-network.o
      _finish_job in job-process.o
      __papplJobCreate in job.o
      ...
  "_cupsArrayGetElement", referenced from:
      __papplClientHTMLPutLinks in client-webif.o
      _papplSystemCleanJobs in job.o
      _papplPrinterIterateActiveJobs in printer-accessors.o
      _papplPrinterIterateAllJobs in printer-accessors.o
      _papplPrinterIterateCompletedJobs in printer-accessors.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplPrinterProcessIPP in printer-ipp.o
      ...
  "_cupsArrayGetFirst", referenced from:
      _papplClientHTMLHeader in client-webif.o
      __papplDeviceAddSupportedSchemes in device.o
      _papplDeviceList in device.o
      _papplDeviceRemoveTypes in device.o
      _pappl_dnssd_list in device-network.o
      _pappl_snmp_find in device-network.o
      __papplPrinterCheckJobs in job.o
      ...
  "_cupsArrayGetNext", referenced from:
      __papplDeviceAddSupportedSchemes in device.o
      _papplDeviceList in device.o
      _papplDeviceRemoveTypes in device.o
      _pappl_dnssd_list in device-network.o
      _pappl_snmp_find in device-network.o
      __papplPrinterCheckJobs in job.o
      __papplPrinterCleanJobsNoLock in job.o
      ...
  "_cupsArrayNew", referenced from:
      __papplDeviceAddSchemeNoLock in device.o
      __papplDeviceInfoCreateArray in device.o
      _pappl_dnssd_list in device-network.o
      _pappl_snmp_find in device-network.o
      __papplJobCopyDocumentData in job-ipp.o
      _papplPrinterAddLink in link.o
      _papplSystemAddLink in link.o
      ...
  "_cupsArrayRemove", referenced from:
      _papplDeviceRemoveScheme in device.o
      _papplDeviceRemoveTypes in device.o
      _pappl_dnssd_browse_cb in device-network.o
      __papplJobCopyDocumentData in job-ipp.o
      _finish_job in job-process.o
      _papplJobCancel in job.o
      __papplJobSubmitFile in job.o
      ...
  "_cupsCharsetToUTF8", referenced from:
      _pappl_snmp_walk_cb in device-network.o
  "_cupsDirClose", referenced from:
      _papplSystemAddResourceDirectory in resource.o
  "_cupsDirOpen", referenced from:
      _papplSystemAddResourceDirectory in resource.o
  "_cupsDirRead", referenced from:
      _papplSystemAddResourceDirectory in resource.o
  "_cupsDoFileRequest", referenced from:
      __papplMainloopSubmitJob in mainloop-subcommands.o
  "_cupsDoRequest", referenced from:
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopAutoAddPrinters in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      _get_printer_attributes in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      __papplMainloopModifyPrinter in mainloop-subcommands.o
      ...
  "_cupsFileClose", referenced from:
      _load_options in mainloop-subcommands.o
      _papplSystemLoadState in system-loadsave.o
      _papplSystemSaveState in system-loadsave.o
      _tls_install_file in system-webif.o
  "_cupsFileGets", referenced from:
      _load_options in mainloop-subcommands.o
      _read_line in system-loadsave.o
  "_cupsFileOpen", referenced from:
      _load_options in mainloop-subcommands.o
      _papplSystemLoadState in system-loadsave.o
      _papplSystemSaveState in system-loadsave.o
      _tls_install_file in system-webif.o
  "_cupsFilePrintf", referenced from:
      _papplSystemSaveState in system-loadsave.o
      _write_options in system-loadsave.o
  "_cupsFilePutChar", referenced from:
      _write_options in system-loadsave.o
  "_cupsFilePutConf", referenced from:
      _papplSystemSaveState in system-loadsave.o
  "_cupsFilePuts", referenced from:
      _papplSystemSaveState in system-loadsave.o
      _write_options in system-loadsave.o
  "_cupsFileRead", referenced from:
      _tls_install_file in system-webif.o
  "_cupsFileWrite", referenced from:
      _write_options in system-loadsave.o
      _tls_install_file in system-webif.o
  "_cupsFreeDests", referenced from:
      __papplSystemWebWiFi in system-webif.o
  "_cupsFreeOptions", referenced from:
      _papplClientHTMLAuthorize in client-webif.o
      _papplJobDeletePrintOptions in job-process.o
      _load_options in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplPrinterWebCancelAllJobs in printer-webif.o
      __papplPrinterWebConfig in printer-webif.o
      __papplPrinterWebDefaults in printer-webif.o
      ...
  "_cupsGetError", referenced from:
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      __papplMainloopModifyPrinter in mainloop-subcommands.o
      __papplMainloopPausePrinter in mainloop-subcommands.o
      __papplMainloopResumePrinter in mainloop-subcommands.o
      ...
  "_cupsGetErrorString", referenced from:
      __papplClientProcessHTTP in client.o
      __papplClientRun in client.o
      _pappl_socket_open in device-network.o
      __papplJobProcessRaster in job-process.o
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      ...
  "_cupsGetOption", referenced from:
      _papplClientHTMLAuthorize in client-webif.o
      _papplClientIsValidForm in client-webif.o
      _pappl_snmp_find in device-network.o
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      ...
  "_cupsGetUser", referenced from:
      __papplMainloopAutoAddPrinters in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      _get_printer_attributes in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      __papplMainloopShowPrinters in mainloop-subcommands.o
      ...
  "_cupsHashData", referenced from:
      _papplClientGetCSRFToken in client-accessors.o
      _papplClientHTMLAuthorize in client-webif.o
      __papplSystemMakeUUID in system.o
      _papplSystemHashPassword in system-accessors.o
  "_cupsHashString", referenced from:
      _papplClientGetCSRFToken in client-accessors.o
      _papplClientHTMLAuthorize in client-webif.o
      _papplSystemHashPassword in system-accessors.o
  "_cupsLangDefault", referenced from:
      _papplLocGetDefaultMediaSizeName in loc.o
      __papplLocPrintf in loc.o
  "_cupsLangGetName", referenced from:
      _papplLocGetDefaultMediaSizeName in loc.o
      __papplLocPrintf in loc.o
  "_cupsParseOptions", referenced from:
      _papplMainloop in mainloop.o
      _load_options in mainloop-subcommands.o
      _papplSystemLoadState in system-loadsave.o
      _parse_contact in system-loadsave.o
      _parse_media_col in system-loadsave.o
  "_cupsRasterClose", referenced from:
      __papplJobProcessRaster in job-process.o
  "_cupsRasterInitHeader", referenced from:
      _papplJobCreatePrintOptions in job-process.o
  "_cupsRasterOpenIO", referenced from:
      __papplJobProcessRaster in job-process.o
  "_cupsRasterReadHeader", referenced from:
      __papplJobProcessRaster in job-process.o
  "_cupsRasterReadPixels", referenced from:
      __papplJobProcessRaster in job-process.o
  "_cupsSetServerCredentials", referenced from:
      __papplSystemSetHostNameNoLock in system-accessors.o
  "_cupsTempFd", referenced from:
      __papplClientCreateTempFile in client.o
      __papplMainloopSubmitJob in mainloop-subcommands.o
  "_cupsUTF32ToUTF8", referenced from:
      _pappl_snmp_walk_cb in device-network.o
      _utf16_to_utf8 in device-network.o
  "_httpAcceptConnection", referenced from:
      __papplClientCreate in client.o
  "_httpAddrClose", referenced from:
      __papplSNMPClose in snmp.o
  "_httpAddrConnect", referenced from:
      _pappl_socket_open in device-network.o
  "_httpAddrFreeList", referenced from:
      _pappl_socket_open in device-network.o
      _pappl_socket_close in device-network.o
      _pappl_snmp_find in device-network.o
      __papplPrinterAddRawListeners in printer-raw.o
      _add_listeners in system-accessors.o
      __papplSystemWebAddPrinter in system-webif.o
  "_httpAddrGetFamily", referenced from:
      __papplClientIsAuthorizedForGroup in client-auth.o
      _pappl_socket_open in device-network.o
  "_httpAddrGetLength", referenced from:
      __papplSNMPWrite in snmp.o
  "_httpAddrGetList", referenced from:
      _pappl_socket_open in device-network.o
      __papplPrinterAddRawListeners in printer-raw.o
      _add_listeners in system-accessors.o
      __papplSystemWebAddPrinter in system-webif.o
  "_httpAddrGetString", referenced from:
      _pappl_snmp_find in device-network.o
      __papplPrinterRunRaw in printer-raw.o
      _add_listeners in system-accessors.o
  "_httpAddrIsLocalhost", referenced from:
      __papplClientGetAuthWebScheme in client-accessors.o
      __papplClientIsAuthorizedForGroup in client-auth.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplPrinterCopyStateNoLock in printer-ipp.o
      __papplPrinterCopyXRINoLock in printer-ipp.o
      __papplPrinterSetAttributes in printer-ipp.o
  "_httpAddrListen", referenced from:
      __papplPrinterAddRawListeners in printer-raw.o
      _add_listeners in system-accessors.o
  "_httpAssembleURI", referenced from:
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
      __papplContactExport in contact.o
      _pappl_dnssd_list in device-network.o
      __papplJobCreate in job.o
      __papplMainloopAddPrinterURI in mainloop-support.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      ...
  "_httpAssembleURIf", referenced from:
      _papplClientRespondRedirect in client.o
      _pappl_dnssd_list in device-network.o
      _pappl_usb_find in device-usb.o
      __papplPrinterRegisterDNSSDNoLock in dnssd.o
      __papplJobCreate in job.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplPrinterWebJobs in printer-webif.o
      ...
  "_httpClearFields", referenced from:
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
  "_httpClose", referenced from:
      __papplClientDelete in client.o
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopAutoAddPrinters in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      __papplMainloopModifyPrinter in mainloop-subcommands.o
      ...
  "_httpConnect", referenced from:
      __papplMainloopConnect in mainloop-support.o
      __papplMainloopConnectURI in mainloop-support.o
  "_httpDecode64", referenced from:
      __papplClientIsAuthorizedForGroup in client-auth.o
  "_httpFlush", referenced from:
      _papplClientGetForm in client-webif.o
  "_httpFlushWrite", referenced from:
      __papplClientDelete in client.o
      __papplClientProcessHTTP in client.o
  "_httpGetAddress", referenced from:
      __papplClientGetAuthWebScheme in client-accessors.o
      __papplClientIsAuthorizedForGroup in client-auth.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplPrinterCopyStateNoLock in printer-ipp.o
      __papplPrinterCopyXRINoLock in printer-ipp.o
      __papplPrinterSetAttributes in printer-ipp.o
  "_httpGetCookie", referenced from:
      _papplClientGetCookie in client-webif.o
      _papplClientSetCookie in client-webif.o
  "_httpGetDateString", referenced from:
      _papplClientRespond in client.o
      _papplClientSetCookie in client-webif.o
      __papplMainloopShowStatus in mainloop-subcommands.o
  "_httpGetDateTime", referenced from:
      _eval_if_modified in client.o
  "_httpGetError", referenced from:
      __papplClientProcessHTTP in client.o
  "_httpGetExpect", referenced from:
      __papplClientProcessHTTP in client.o
  "_httpGetFd", referenced from:
      __papplClientRun in client.o
  "_httpGetField", referenced from:
      __papplClientProcessHTTP in client.o
      _eval_if_modified in client.o
      __papplClientIsAuthorizedForGroup in client-auth.o
      __papplClientProcessIPP in client-ipp.o
      _papplClientGetForm in client-webif.o
      __papplSystemWebLogFile in system-webif.o
  "_httpGetHostname", referenced from:
      __papplClientCreate in client.o
      __papplDNSSDCopyHostName in dnssd.o
      __papplDNSSDInit in dnssd.o
  "_httpGetState", referenced from:
      __papplClientProcessHTTP in client.o
      __papplClientFlushDocumentData in client-ipp.o
      __papplClientHaveDocumentData in client-ipp.o
      __papplClientProcessIPP in client-ipp.o
      _papplClientGetForm in client-webif.o
      __papplJobProcessRaster in job-process.o
  "_httpGetVersion", referenced from:
      __papplClientProcessHTTP in client.o
  "_httpIsEncrypted", referenced from:
      __papplClientProcessHTTP in client.o
      _papplClientRespondRedirect in client.o
      _papplClientIsEncrypted in client-accessors.o
      __papplClientIsAuthorizedForGroup in client-auth.o
      __papplClientHTMLInfo in client-webif.o
  "_httpPeek", referenced from:
      __papplClientHaveDocumentData in client-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
  "_httpPrintf", referenced from:
      _papplClientRespond in client.o
  "_httpRead", referenced from:
      __papplClientFlushDocumentData in client-ipp.o
      _papplClientGetForm in client-webif.o
      __papplJobCopyDocumentData in job-ipp.o
      __papplJobProcessRaster in job-process.o
  "_httpReadRequest", referenced from:
      __papplClientProcessHTTP in client.o
  "_httpSeparateURI", referenced from:
      __papplClientProcessHTTP in client.o
      __papplClientProcessIPP in client-ipp.o
      __papplContactImport in contact.o
      _papplDeviceIsSupported in device.o
      _papplDeviceOpen in device.o
      _pappl_file_open in device-file.o
      _pappl_socket_open in device-network.o
      ...
  "_httpSetCookie", referenced from:
      _papplClientSetCookie in client-webif.o
  "_httpSetEncryption", referenced from:
      __papplClientProcessHTTP in client.o
      __papplClientRun in client.o
  "_httpSetField", referenced from:
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      __papplSystemWebLogFile in system-webif.o
  "_httpSetLength", referenced from:
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
      __papplSystemWebLogFile in system-webif.o
  "_httpStateString", referenced from:
      __papplClientProcessHTTP in client.o
  "_httpStatusString", referenced from:
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
  "_httpURIStatusString", referenced from:
      _papplDeviceOpen in device.o
  "_httpUpdate", referenced from:
      __papplClientProcessHTTP in client.o
  "_httpWait", referenced from:
      __papplClientRun in client.o
  "_httpWrite", referenced from:
      __papplClientProcessHTTP in client.o
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
      _papplClientHTMLPuts in client-webif.o
      _papplClientHTMLPrintf in client-webif.o
      _papplClientHTMLFooter in client-webif.o
      _papplClientHTMLEscape in client-webif.o
      ...
  "_httpWriteResponse", referenced from:
      _papplClientRespond in client.o
      _papplClientRespondRedirect in client.o
      __papplSystemWebLogFile in system-webif.o
  "_ippAddBoolean", referenced from:
      __papplMainloopAddOptions in mainloop-support.o
      _papplPrinterCreate in printer.o
      _papplPrinterSetDriverData in printer-driver.o
      _papplPrinterSetDriverDefaults in printer-driver.o
      __papplPrinterCopyStateNoLock in printer-ipp.o
      _papplSystemLoadState in system-loadsave.o
  "_ippAddCollection", referenced from:
      __papplMainloopAddOptions in mainloop-support.o
      _papplPrinterSetDriverData in printer-driver.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplMediaColExport in printer-support.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippAddCollections", referenced from:
      _papplPrinterSetDriverData in printer-driver.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplPrinterCopyXRINoLock in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippAddDate", referenced from:
      __papplJobCopyAttributesNoLock in job-ipp.o
      __papplJobHoldNoLock in job.o
      __papplJobRetainNoLock in job.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippAddInteger", referenced from:
      __papplJobCopyAttributesNoLock in job-ipp.o
      __papplJobCopyStateNoLock in job-ipp.o
      __papplJobCreate in job.o
      __papplJobRetainNoLock in job.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      ...
  "_ippAddIntegers", referenced from:
      _papplPrinterCreate in printer.o
      _papplPrinterSetDriverData in printer-driver.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      _papplSystemRun in system.o
  "_ippAddOctetString", referenced from:
      _papplPrinterSetDriverData in printer-driver.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      _papplSubscriptionCreate in subscription.o
      __papplSystemExportVersions in system-accessors.o
  "_ippAddOutOfBand", referenced from:
      __papplJobCopyAttributesNoLock in job-ipp.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippAddRange", referenced from:
      __papplMainloopAddOptions in mainloop-support.o
      _papplPrinterCreate in printer.o
      _papplPrinterSetDriverData in printer-driver.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      _papplSystemRun in system.o
  "_ippAddResolution", referenced from:
      __papplMainloopAddOptions in mainloop-support.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
  "_ippAddResolutions", referenced from:
      _papplPrinterSetDriverData in printer-driver.o
  "_ippAddSeparator", referenced from:
      __papplPrinterProcessIPP in printer-ipp.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
      __papplSubscriptionIPPGetNotifications in subscription-ipp.o
      __papplSubscriptionIPPList in subscription-ipp.o
      __papplSystemProcessIPP in system-ipp.o
      _printer_create_cb in system-ipp.o
  "_ippAddString", referenced from:
      __papplContactExport in contact.o
      __papplJobCopyStateNoLock in job-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      __papplJobCreate in job.o
      __papplJobHoldNoLock in job.o
      __papplJobRetainNoLock in job.o
      __papplMainloopAddPrinter in mainloop-subcommands.o
      ...
  "_ippAddStringf", referenced from:
      _papplPrinterSetDriverData in printer-driver.o
  "_ippAddStringfv", referenced from:
      _papplClientRespondIPP in client-ipp.o
  "_ippAddStrings", referenced from:
      __papplDeviceAddSupportedSchemes in device.o
      __papplJobCopyStateNoLock in job-ipp.o
      _get_printer_attributes in mainloop-subcommands.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      __papplMainloopShowStatus in mainloop-subcommands.o
      __papplMainloopAddOptions in mainloop-support.o
      _papplPrinterCreate in printer.o
      ...
  "_ippAttributeString", referenced from:
      _papplJobCreatePrintOptions in job-process.o
      __papplLogAttributes in log.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplPrinterWebDefaults in printer-webif.o
      _papplSystemSaveState in system-loadsave.o
  "_ippContainsInteger", referenced from:
      _papplJobCreatePrintOptions in job-process.o
      _valid_job_attributes in printer-ipp.o
  "_ippContainsString", referenced from:
      __papplJobValidateDocumentAttributes in job-ipp.o
      _valid_job_attributes in printer-ipp.o
  "_ippCopyAttribute", referenced from:
      __papplClientRespondIPPIgnored in client-ipp.o
      _papplClientRespondIPPUnsupported in client-ipp.o
      __papplJobCreate in job.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
  "_ippCopyAttributes", referenced from:
      _papplPrinterGetDriverAttributes in printer-driver.o
      _papplPrinterSetDriverData in printer-driver.o
      __papplSubscriptionIPPGetNotifications in subscription-ipp.o
      __papplCopyAttributes in util.o
  "_ippCreateRequestedArray", referenced from:
      __papplJobProcessIPP in job-ipp.o
      __papplPrinterProcessIPP in printer-ipp.o
      __papplSubscriptionIPPGetAttributes in subscription-ipp.o
      __papplSubscriptionIPPList in subscription-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippDateToTime", referenced from:
      __papplJobProcessIPP in job-ipp.o
      __papplJobCreate in job.o
      __papplJobSetRetain in job.o
      __papplMainloopShowStatus in mainloop-subcommands.o
  "_ippDelete", referenced from:
      __papplClientDelete in client.o
      __papplClientProcessHTTP in client.o
      _papplJobCreateWithFile in job.o
      __papplJobDelete in job.o
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopAutoAddPrinters in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      ...
  "_ippDeleteAttribute", referenced from:
      __papplJobHoldNoLock in job.o
      __papplJobReleaseNoLock in job.o
      __papplJobRetainNoLock in job.o
      _papplPrinterSetDriverDefaults in printer-driver.o
      _valid_job_attributes in printer-ipp.o
      _papplSystemLoadState in system-loadsave.o
  "_ippEnumString", referenced from:
      _papplJobCreatePrintOptions in job-process.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      _get_value in mainloop-subcommands.o
      _validate_defaults in printer-driver.o
      __papplPrinterWebDefaults in printer-webif.o
      __papplPrinterWebIteratorCallback in printer-webif.o
      _papplSystemSaveState in system-loadsave.o
      ...
  "_ippEnumValue", referenced from:
      __papplMainloopAddOptions in mainloop-support.o
      __papplPrinterWebDefaults in printer-webif.o
      _papplSystemLoadState in system-loadsave.o
  "_ippErrorString", referenced from:
      _papplClientRespondIPP in client-ipp.o
      __papplLogAttributes in log.o
  "_ippFindAttribute", referenced from:
      _papplClientGetLoc in client-loc.o
      __papplClientProcessIPP in client-ipp.o
      _papplClientRespondIPP in client-ipp.o
      __papplContactImport in contact.o
      __papplPrinterRegisterDNSSDNoLock in dnssd.o
      _papplJobGetAttribute in job-accessors.o
      __papplJobCopyStateNoLock in job-ipp.o
      ...
  "_ippFindNextAttribute", referenced from:
      __papplMainloopShowPrinters in mainloop-subcommands.o
  "_ippGetBoolean", referenced from:
      __papplPrinterRegisterDNSSDNoLock in dnssd.o
      __papplPrinterProcessIPP in printer-ipp.o
      _valid_job_attributes in printer-ipp.o
      __papplSubscriptionIPPGetNotifications in subscription-ipp.o
      __papplSubscriptionIPPList in subscription-ipp.o
  "_ippGetCollection", referenced from:
      _papplJobCreatePrintOptions in job-process.o
      __papplMainloopShowDevices in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      _valid_job_attributes in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippGetCount", referenced from:
      __papplClientRespondIPPIgnored in client-ipp.o
      _papplClientRespondIPPUnsupported in client-ipp.o
      __papplPrinterRegisterDNSSDNoLock in dnssd.o
      __papplJobProcessIPP in job-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      _papplJobCreatePrintOptions in job-process.o
      __papplLogAttributes in log.o
      ...
  "_ippGetDate", referenced from:
      __papplJobProcessIPP in job-ipp.o
      __papplJobCreate in job.o
      __papplJobSetRetain in job.o
      __papplMainloopShowStatus in mainloop-subcommands.o
  "_ippGetFirstAttribute", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplLogAttributes in log.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippGetGroupTag", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplJobProcessIPP in job-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      __papplLogAttributes in log.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      _find_subscription in subscription-ipp.o
      ...
  "_ippGetInteger", referenced from:
      __papplClientProcessIPP in client-ipp.o
      _papplJobCreatePrintOptions in job-process.o
      __papplJobProcessRaster in job-process.o
      __papplJobCreate in job.o
      __papplJobSetRetain in job.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      ...
  "_ippGetLength", referenced from:
      __papplClientProcessIPP in client-ipp.o
  "_ippGetName", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplClientRespondIPPIgnored in client-ipp.o
      _papplClientRespondIPPUnsupported in client-ipp.o
      __papplLogAttributes in log.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
      ...
  "_ippGetNextAttribute", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplLogAttributes in log.o
      __papplMainloopShowJobs in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippGetOctetString", referenced from:
      __papplPrinterSetAttributes in printer-ipp.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
  "_ippGetOperation", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplJobProcessIPP in job-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      __papplJobCreate in job.o
      __papplMainloopAddOptions in mainloop-support.o
      __papplPrinterProcessIPP in printer-ipp.o
      __papplPrinterSetAttributes in printer-ipp.o
      ...
  "_ippGetRange", referenced from:
      _papplJobCreatePrintOptions in job-process.o
      _get_value in mainloop-subcommands.o
      _papplPrinterSetDriverData in printer-driver.o
      _valid_job_attributes in printer-ipp.o
      __papplPrinterWebDefaults in printer-webif.o
  "_ippGetRequestId", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplLogAttributes in log.o
  "_ippGetResolution", referenced from:
      _papplJobCreatePrintOptions in job-process.o
      _get_value in mainloop-subcommands.o
      __papplPrinterSetAttributes in printer-ipp.o
      _valid_job_attributes in printer-ipp.o
  "_ippGetStatusCode", referenced from:
      __papplClientProcessIPP in client-ipp.o
      _papplClientRespondIPP in client-ipp.o
      __papplLogAttributes in log.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippGetString", referenced from:
      _papplClientGetLoc in client-loc.o
      __papplClientProcessIPP in client-ipp.o
      _papplClientRespondIPP in client-ipp.o
      __papplContactImport in contact.o
      __papplPrinterRegisterDNSSDNoLock in dnssd.o
      __papplJobProcessIPP in job-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      ...
  "_ippGetValueTag", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplClientRespondIPPIgnored in client-ipp.o
      _papplClientRespondIPPUnsupported in client-ipp.o
      __papplJobProcessIPP in job-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
      __papplLogAttributes in log.o
      _get_value in mainloop-subcommands.o
      ...
  "_ippGetVersion", referenced from:
      __papplClientProcessIPP in client-ipp.o
      __papplLogAttributes in log.o
  "_ippNew", referenced from:
      __papplClientProcessHTTP in client.o
      __papplContactExport in contact.o
      __papplJobCreate in job.o
      _papplJobCreateWithFile in job.o
      __papplMainloopAddOptions in mainloop-support.o
      _papplPrinterCreate in printer.o
      _papplPrinterGetDriverAttributes in printer-driver.o
      ...
  "_ippNewRequest", referenced from:
      __papplMainloopAddPrinter in mainloop-subcommands.o
      __papplMainloopAutoAddPrinters in mainloop-subcommands.o
      __papplMainloopCancelJob in mainloop-subcommands.o
      __papplMainloopDeletePrinter in mainloop-subcommands.o
      _get_printer_attributes in mainloop-subcommands.o
      __papplMainloopGetSetDefaultPrinter in mainloop-subcommands.o
      __papplMainloopModifyPrinter in mainloop-subcommands.o
      ...
  "_ippNewResponse", referenced from:
      __papplClientProcessIPP in client-ipp.o
  "_ippOpString", referenced from:
      _papplClientRespond in client.o
      __papplClientProcessIPP in client-ipp.o
      _papplClientRespondIPP in client-ipp.o
      __papplJobValidateDocumentAttributes in job-ipp.o
  "_ippRead", referenced from:
      __papplClientProcessHTTP in client.o
  "_ippReadFile", referenced from:
      _papplSystemLoadState in system-loadsave.o
  "_ippSetCollection", referenced from:
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippSetDate", referenced from:
      __papplJobHoldNoLock in job.o
      __papplJobRetainNoLock in job.o
  "_ippSetGroupTag", referenced from:
      __papplClientRespondIPPIgnored in client-ipp.o
      _papplClientRespondIPPUnsupported in client-ipp.o
      __papplJobCreate in job.o
      _valid_job_attributes in printer-ipp.o
  "_ippSetInteger", referenced from:
      __papplJobRetainNoLock in job.o
  "_ippSetOctetString", referenced from:
      _papplPrinterSetDriverData in printer-driver.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplSystemExportVersions in system-accessors.o
  "_ippSetState", referenced from:
      _papplClientRespond in client.o
  "_ippSetStatusCode", referenced from:
      _papplClientRespondIPP in client-ipp.o
      __papplSubscriptionIPPCreate in subscription-ipp.o
  "_ippSetString", referenced from:
      __papplDeviceAddSupportedSchemes in device.o
      __papplJobHoldNoLock in job.o
      __papplJobRetainNoLock in job.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplPrinterCopyStateNoLock in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippSetStringfv", referenced from:
      _papplClientRespondIPP in client-ipp.o
  "_ippTagString", referenced from:
      __papplClientRespondIPPIgnored in client-ipp.o
      _papplClientRespondIPPUnsupported in client-ipp.o
      __papplLogAttributes in log.o
      __papplPrinterSetAttributes in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippTimeToDate", referenced from:
      __papplJobCopyAttributesNoLock in job-ipp.o
      __papplJobHoldNoLock in job.o
      __papplJobRetainNoLock in job.o
      __papplPrinterCopyAttributesNoLock in printer-ipp.o
      __papplSystemProcessIPP in system-ipp.o
  "_ippWrite", referenced from:
      _papplClientRespond in client.o
  "_ippWriteFile", referenced from:
      _papplSystemSaveState in system-loadsave.o
  "_libusb_bulk_transfer", referenced from:
      _pappl_usb_read in device-usb.o
      _pappl_usb_write in device-usb.o
  "_libusb_claim_interface", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_close", referenced from:
      _pappl_usb_list in device-usb.o
      _pappl_usb_close in device-usb.o
      _pappl_usb_find in device-usb.o
  "_libusb_control_transfer", referenced from:
      _pappl_usb_status in device-usb.o
      _pappl_usb_getid in device-usb.o
      _pappl_usb_find in device-usb.o
  "_libusb_free_config_descriptor", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_free_device_list", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_get_config_descriptor", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_get_device_descriptor", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_get_device_list", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_get_string_descriptor_ascii", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_init", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_open", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_ref_device", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_set_configuration", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_set_interface_alt_setting", referenced from:
      _pappl_usb_find in device-usb.o
  "_libusb_strerror", referenced from:
      _pappl_usb_read in device-usb.o
      _pappl_usb_write in device-usb.o
      _pappl_usb_status in device-usb.o
      _pappl_usb_getid in device-usb.o
      _pappl_usb_find in device-usb.o
  "_libusb_unref_device", referenced from:
      _pappl_usb_list in device-usb.o
      _pappl_usb_close in device-usb.o
  "_png_create_info_struct", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_create_read_struct", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_destroy_read_struct", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_bit_depth", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_color_type", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_error_ptr", referenced from:
      _png_error_func in job-filter.o
      _png_warning_func in job-filter.o
  "_png_get_header_ver", referenced from:
      __papplSystemExportVersions in system-accessors.o
  "_png_get_image_height", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_image_width", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_valid", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_x_pixels_per_inch", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_get_y_pixels_per_inch", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_init_io", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_read_end", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_read_info", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_read_rows", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_background", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_expand_gray_1_2_4_to_8", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_interlace_handling", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_longjmp_fn", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_option", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_packing", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_palette_to_rgb", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_scale_16", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_png_set_tRNS_to_alpha", referenced from:
      __papplJobFilterPNG in job-filter.o
  "_pwgMediaForPWG", referenced from:
      __papplPrinterRegisterDNSSDNoLock in dnssd.o
      _papplJobCreatePrintOptions in job-process.o
      _get_value in mainloop-subcommands.o
      __papplMainloopAddOptions in mainloop-support.o
      _papplPrinterSetDriverData in printer-driver.o
      _validate_defaults in printer-driver.o
      _validate_ready in printer-driver.o
      ...
  "_pwgMediaForSize", referenced from:
      __papplMediaColImport in printer-support.o
      __papplPrinterWebMedia in printer-webif.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libpappl.1.dylib] Error 1
make: *** [all] Error 1

@michaelrsweet
Copy link
Owner

This "implies" that you don't have Universal Binaries for your dependent libraries.

The default on macOS is to build Universal Binaries. There are two ways to change this:

  1. Use the --enable-debug option
  2. Add -arch arm64 to the CFLAGS and LDFLAGS environment variables or the OPTIM environment variable.

@michaelrsweet michaelrsweet self-assigned this Aug 22, 2023
@michaelrsweet michaelrsweet added the wontfix This will not be worked on label Aug 22, 2023
@godofecht
Copy link
Author

godofecht commented Aug 22, 2023

As you mentioned, adding -arch arm64 results in a successful build...

But attempting to run testsuite/testpappl results in an infinite loop, without any output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants