tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/cdrtools fails to build on Darwin



Hi!

I tried to build sysutils/cdrtools on macOS on ARM. The linking step fails with this output: 

	==> LINKING "OBJ/arm64-darwin-clang/btcflash"
Undefined symbols for architecture arm64:
  "_libintl_bindtextdomain", referenced from:
      _main in skel.o
  "_libintl_gettext", referenced from:
      _main in skel.o
      _usage in skel.o
      _exscsi in skel.o
      _loadfirmware in skel.o
      _loadfirmware.cold.1 in skel.o
      _cvt_std in io.o
      _yes in io.o
      ...
  "_libintl_setlocale", referenced from:
      _main in skel.o
  "_libintl_textdomain", referenced from:
      _main in skel.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
smake: *** Code 1 (Operation not permitted) from command line for target 'OBJ/arm64-darwin-clang/btcflash'.
smake: The following command caused the error:
echo "	==> LINKING \"OBJ/arm64-darwin-clang/btcflash\""; clang  -o OBJ/arm64-darwin-clang/btcflash -L../libs/arm64-darwin-clang -L../libs/arm64-darwin-clang  -L/usr/local/lib -framework IOKit -framework CoreFoundation -liconv  -L/usr/lib -L/opt/pkg/lib OBJ/arm64-darwin-clang/skel.o  OBJ/arm64-darwin-clang/io.o OBJ/arm64-darwin-clang/cd_misc.o OBJ/arm64-darwin-clang/scsi_cdr.o  OBJ/arm64-darwin-clang/scsi_scan.o  OBJ/arm64-darwin-clang/misc.o	 -lscgcmd -lrscg -lscg  -lcdrdeflt -ldeflt -lschily
smake: Couldn't make 'all'.
*** Error code 1

According to wrapper logs, the last command is

[*] cc -o OBJ/arm64-darwin-clang/btcflash -L../libs/arm64-darwin-clang -L../libs/arm64-darwin-clang -L/usr/local/lib -framework IOKit -framework CoreFoundation -liconv -L/usr/lib -L/opt/pkg/lib OBJ/arm64-darwin-clang/skel.o OBJ/arm64-darwin-clang/io.o OBJ/arm64-darwin-clang/cd_misc.o OBJ/arm64-darwin-clang/scsi_cdr.o OBJ/arm64-darwin-clang/scsi_scan.o OBJ/arm64-darwin-clang/misc.o -lscgcmd -lrscg -lscg -lcdrdeflt -ldeflt -lschily
<.> /usr/bin/clang -Qunused-arguments -fcommon -Wno-error=implicit-function-declaration -o OBJ/arm64-darwin-clang/btcflash -L../libs/arm64-darwin-clang -framework IOKit -framework CoreFoundation -liconv -L/Users/bsiegert/pkgsrc/sysutils/cdrtools/work/.buildlink/lib OBJ/arm64-darwin-clang/skel.o OBJ/arm64-darwin-clang/io.o OBJ/arm64-darwin-clang/cd_misc.o OBJ/arm64-darwin-clang/scsi_cdr.o OBJ/arm64-darwin-clang/scsi_scan.o OBJ/arm64-darwin-clang/misc.o -lscgcmd -lrscg -lscg -lcdrdeflt -ldeflt -lschily -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -arch arm64 -Qunused-arguments -I/Users/bsiegert/pkgsrc/sysutils/cdrtools/work/.buildlink/include

Note the -L/usr/local/lib and the absence of the buildlink directory.

Any ideas?

— 
Benny



Home | Main Index | Thread Index | Old Index