General foo2zjs :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
"make" fails on 64bit system with Mac OSX 10.7 [Lion; solved]
Posted by: sman5109 ()
Date: July 10, 2011 08:15PM

Im on OSX 10.7 and when making foo2zjs osx-hotplug fails because of it being 64bit. Is there a way to disable hot plugging so I can install this?

$ make
#
# Dependencies...
#
# ... OK!
#
cd icc2ps; make all
make[1]: Nothing to be done for `all'.
cd osx-hotplug; make all
gcc osx-hplj-hotplug.o -o osx-hplj-hotplug -framework IOKit -framework CoreFoundation
Undefined symbols for architecture x86_64:
  "_objc_msgSend_fixup", referenced from:
      l_objc_msgSend_fixup_autorelease in osx-hplj-hotplug.o
     (maybe you meant: l_objc_msgSend_fixup_autorelease)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [osx-hplj-hotplug] Error 1
make: *** [all-osx-hotplug] Error 2



Edited 4 time(s). Last edit at 07/23/2011 02:00AM by rickrich.

Options: ReplyQuote
Re: "make" fails on 64bit system
Posted by: rickrich ()
Date: July 10, 2011 10:28PM

$ uname -a
Darwin mac 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

$ make 
#
# Dependencies...
#
# ... OK!
#
cd icc2ps; make all
make[1]: Nothing to be done for `all'.
cd osx-hotplug; make all
gcc osx-hplj-hotplug.o -o osx-hplj-hotplug -framework IOKit -framework CoreFoundation
cd icc2ps; make man
make[1]: Nothing to be done for `man'.
cd osx-hotplug; make man
make[1]: Nothing to be done for `man'.

It is possible that certain products which can be built using this
software module might form inventions protected by patent rights in
some countries (e.g., by patents about arithmetic coding algorithms
owned by IBM and AT&T in the USA). Provision of this software by the
author does NOT include any licences for any patents. In those
countries where a patent licence is required for certain applications
of this software module, you will have to obtain such a licence
yourself.

Works here with 10.8.

Options: ReplyQuote
Re: "make" fails on 64bit system
Posted by: sman5109 ()
Date: July 11, 2011 02:40AM

I'm talking about OS X 10.7, what you have is the kernel version. Furthermore, at the end of your uname you can see it says i386.

Compare it to mine.

Darwin MacBook.local 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64 x86_64



Edited 1 time(s). Last edit at 07/11/2011 06:52AM by rickrich.

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7
Posted by: rickrich ()
Date: July 11, 2011 03:16AM

So, upgrade your kernel and Xcode.

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7
Posted by: sman5109 ()
Date: July 11, 2011 03:06PM

rickrich Wrote:
-------------------------------------------------------
> So, upgrade your kernel and Xcode.

OS X 10.7 is the latest (and not even released yet) version. I also have Xcode 4.2 beta 2 which is the latest development version of Xcode (it was all i could get my hands on thats compatible with lion).

So, do I need the hotplug or can I just disable it from compiling?

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7
Posted by: rickrich ()
Date: July 11, 2011 06:59PM

No Lions betas. Released software ONLY.

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7
Posted by: sman5109 ()
Date: July 11, 2011 07:47PM

rickrich Wrote:
-------------------------------------------------------
> No Lions betas. Released software ONLY.

Lion is not beta. The lion I have is the version that will be released the 14th.

The only beta I have is Xcode.

To the point, I have a magicolor 2200 so I don't need any HP hot plugging stuff so I don't need to build the hot plug thing. How do I skip it?

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7 [Beta Lion]
Posted by: rickrich ()
Date: July 11, 2011 08:18PM

Downgrade your Xcode to a released version.

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7 [Beta Lion]
Posted by: sman5109 ()
Date: July 22, 2011 03:55AM

rickrich Wrote:
-------------------------------------------------------
> Downgrade your Xcode to a released version.


Done. I'm now at the latest release version of Xcode (4.1) on Lion. Problem is the same.

Heres the error:

cd icc2ps; make all
cc -O3 icc2ps.c xgetopt.c cmscam97.c cmscnvrt.c cmserr.c cmsgamma.c cmsgmt.c cmsintrp.c cmsio1.c cmslut.c cmsmatsh.c cmsmtrx.c cmsnamed.c cmspack.c cmspcs.c cmsps2.c cmssamp.c cmswtpnt.c cmsxform.c cmsio0.c cmsvirt.c -lm -o foo2zjs-icc2ps
rm -f foo2zjs-icc2ps.1
MODver=; \
	../includer-man -v DEF1= foo2zjs-icc2ps.1in | sed > foo2zjs-icc2ps.1 \
	    -e "s@\${URLOAK}@@" \
	    -e "s@\${URLZJS}@@" \
	    -e "s@\${URLHP}@@" \
	    -e "s@\${URLXQX}@@" \
	    -e "s@\${URLLAVA}@@" \
	    -e "s@\${URLQPDL}@@" \
	    -e "s@\${URLSLX}@@" \
	    -e "s@\${URLHC}@@" \
	    -e "s/\${MODver}/$MODver/"
chmod -w foo2zjs-icc2ps.1
cd osx-hotplug; make all
cc    -c -o osx-hplj-hotplug.o osx-hplj-hotplug.m
osx-hplj-hotplug.m: In function 'MyCallBackFunction':
osx-hplj-hotplug.m:122: warning: cast from pointer to integer of different size
osx-hplj-hotplug.m:122: warning: cast from pointer to integer of different size
osx-hplj-hotplug.m: In function 'transferData':
osx-hplj-hotplug.m:153: warning: cast to pointer from integer of different size
osx-hplj-hotplug.m: In function 'DeviceFound':
osx-hplj-hotplug.m:574: warning: cast to pointer from integer of different size
gcc osx-hplj-hotplug.o -o osx-hplj-hotplug -framework IOKit -framework CoreFoundation
Undefined symbols for architecture x86_64:
  "_objc_msgSend_fixup", referenced from:
      l_objc_msgSend_fixup_autorelease in osx-hplj-hotplug.o
     (maybe you meant: l_objc_msgSend_fixup_autorelease)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [osx-hplj-hotplug] Error 1
make: *** [all-osx-hotplug] Error 2



Edited 1 time(s). Last edit at 07/22/2011 03:57AM by sman5109.

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7 [Lion]
Posted by: rickrich ()
Date: July 22, 2011 11:58AM

Try:
$ cd osx-hotplug
$ gcc osx-hplj-hotplug.o -o osx-hplj-hotplug -framework IOKit -framework CoreFoundation -framework Foundation

And report back.

Works fine on 3.x Xcode with x86_64:

$ cc -c -o osx-hplj-hotplug.o osx-hplj-hotplug.m -arch x86_64

$ gcc osx-hplj-hotplug.o -o osx-hplj-hotplug -framework IOKit -framework CoreFoundation -arch x86_64

$ file *
CVS:                  directory
Makefile:             ASCII make commands text
osx-hplj-hotplug:     Mach-O 64-bit executable
osx-hplj-hotplug.1in: troff or preprocessor input text
osx-hplj-hotplug.m:   ASCII C program text
osx-hplj-hotplug.o:   Mach-O 64-bit object

Options: ReplyQuote
Re: "make" fails on 64bit system with Mac OSX 10.7 [Lion]
Posted by: sman5109 ()
Date: July 23, 2011 01:04AM

Running that allowed it to build :)

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.