pkgsrc-Bugs archive

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

pkg/51257: "sysutils/cdrtools" fails to build under Mac OS X 64bit when cwrappers are used



>Number:         51257
>Category:       pkg
>Synopsis:       "sysutils/cdrtools" fails to build under Mac OS X 64bit when cwrappers are used
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 19 15:25:00 +0000 2016
>Originator:     tron%zhadum.org.uk@localhost
>Release:        Darwin 15.5.0
>Organization:
Matthias Scheler                                 https://zhadum.org.uk/
>Environment:
System: Darwin excalibur.zhadum.org.uk 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64

>Description:
Attempting to build the "sysutils/cdrtools" package using cwrappers under
Mac OS 10.11 (XCode tools 7.0.*, configured to use 64Bit ABI) causes
multiple link errors like these:

clang: error: linker command failed with exit code 1 (use -v to see invocation)
gnumake[1]: *** [OBJ/i386-darwin-cc/scgcheck] Error 1
	==> MAKING "all" ON SUBDIRECTORY "SRCROOT/scgskeleton"
 ==> COMPILING "OBJ/i386-darwin-cc/skel.o"
 ==> COMPILING "OBJ/i386-darwin-cc/io.o"
io.c:205:11: warning: invalid conversion specifier 'r'
      [-Wformat-invalid-specifier]
        printf("%r", form, args);
                ~^
io.c:205:21: warning: data argument not used by format string
      [-Wformat-extra-args]
        printf("%r", form, args);
               ~~~~        ^
2 warnings generated.
 ==> COMPILING "OBJ/i386-darwin-cc/cd_misc.o"
 ==> COMPILING "OBJ/i386-darwin-cc/scsi_cdr.o"
 ==> COMPILING "OBJ/i386-darwin-cc/scsi_scan.o"
 ==> COMPILING "OBJ/i386-darwin-cc/misc.o"
	==> LINKING "OBJ/i386-darwin-cc/scgskeleton"
Undefined symbols for architecture x86_64:
  "_libintl_bindtextdomain", referenced from:
      _main in skel.o
  "_libintl_gettext", referenced from:
      _main in skel.o
      _usage in skel.o
      _exscsi in skel.o
      _cvt_std in io.o
      _yes in io.o
      _print_min_atip in cd_misc.o
      _inquiry in scsi_cdr.o
      ...
  "_libintl_setlocale", referenced from:
      _main in skel.o
  "_libintl_textdomain", referenced from:
      _main in skel.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gnumake[1]: *** [OBJ/i386-darwin-cc/scgskeleton] Error 1
	==> MAKING "all" ON SUBDIRECTORY "SRCROOT/man"
	==> MAKING "all" ON SUBDIRECTORY "SRCROOT/man/man4"
	==> MAKING "all" ON SUBCOMPONENT "SRCROOT/man/man4/makefiles.mk"
	==> MAKING DIRECTORY "OBJ/i386-darwin-cc/man"
	==> LOCALIZING "OBJ/i386-darwin-cc/man/makefiles.5"
	==> MAKING "all" ON SUBCOMPONENT "SRCROOT/man/man4/makerules.mk"
	==> LOCALIZING "OBJ/i386-darwin-cc/man/makerules.5"
cd /objdir/tron/sysutils/cdrtools/work.excalibur/cdrtools-3.01;			 for manpage in cdda2wav/cdda2wav.1 mkisofs/mkisofs.8; do	 tbl ${manpage} > ${manpage}.tmp;			 mv -f ${manpage}.tmp ${manpage};	 done

All the object files in the work directory of "cdrtools" are in
"Mach-O 64-bit object x86_64" format. as expected The "i386" in the
directory name is an artefact of the pkgrsc "configure" stage and
(probably) not related to the problem at all.

I'm not sure why the link stage breaks although everything seems to
be consistent. The problem doesn't occur when I build without cwrappers.

>How-To-Repeat:
cd pkgsrc/sysutils/cdrtools
bmake USE_CWRAPPERS=yes

>Fix:
Not known



Home | Main Index | Thread Index | Old Index