problem building 2.3.47: no macintosh.a file

4 messages, 2 authors, 2000-02-29 · open the first message on its own page

problem building 2.3.47: no macintosh.a file

From: Lou Langholtz <hidden>
Date: 2000-02-29 01:19:06

When trying to compile the 2.3.47 linux distribution from a kernel.org
mirror, I don't get a macintosh.a file built in my drivers/macintosh/
directory. As a matter of fact, I don't seem to get any macintosh
drivers built in that directory as there's no .o files at all. Anyone
else experience this? I've tried poking around to discover where the
error could be but so far I'm clueless about this. Am I doing something
wrong with my .config configuration info? I've attached my .config file
in case this could be it and someone could check it. Any other
possibilities?

BTW: I did have to make some minor changes to get even so far as to try
linking it all together. I've attached the context diff of my mem.c file
which I had to change to get it to compile. Could my simple change be
the right thing to have done for the mem.c file???

Thanks for any help!

Re: problem building 2.3.47: no macintosh.a file

From: Lou Langholtz <hidden>
Date: 2000-02-29 02:03:09

Lou Langholtz wrote:
When trying to compile the 2.3.47 linux distribution from a kernel.org
mirror, I don't get a macintosh.a file built in my drivers/macintosh/
directory. As a matter of fact, I don't seem to get any macintosh
drivers built in that directory as there's no .o files at all. Anyone
else experience this? I've tried poking around to discover where the
error could be but so far I'm clueless about this. Am I doing something
wrong with my .config configuration info? I've attached my .config file
in case this could be it and someone could check it. Any other
possibilities?
Aha! I found I needed to change (fix?) drivers/Makefile to essentially add in
the macintosh subdirectory like for CONFIG_MAC but for CONFIG_PPC. I've
attached this context diff.
BTW: I did have to make some minor changes to get even so far as to try
linking it all together. I've attached the context diff of my mem.c file
which I had to change to get it to compile. Could my simple change be
the right thing to have done for the mem.c file???
Now the linker gets the macintosh.a stuff but spews out about some undefined
references and fails. I suspect I may be able to fix this by changing my
configuration. If anybody knows better, please let me know too. The actual
undefined references are to: find_via_pmu, pmu_poll, backlight_level,
pmu_set_brightness, and vgacon_remap_base.

Advanced thanks ;-)


Powerbook code in 2.3.x [was Re: problem building 2.3.47: no macintosh.a file]

From: <hidden>
Date: 2000-02-29 02:58:26

On Mon, 28 Feb 2000, Lou Langholtz wrote:
undefined references are to: find_via_pmu, pmu_poll, backlight_level,
pmu_set_brightness, and vgacon_remap_base.
This is because there is Powerbook code without #ifdef CONFIG_PMAC_PBOOK
around it.  Here is a quick patch:

====================================================================
--- old_mac_keyb.c	Sun Feb 27 23:15:16 2000
+++ mac_keyb.c	Sun Feb 27 23:18:24 2000
@@ -586,7 +586,9 @@
 #endif /* CONFIG_ADBMOUSE */

 /* XXX Needs to get rid of this, see comments in pmu.c */
+#ifdef CONFIG_PMAC_PBOOK
 extern int backlight_level;
+#endif

 static void
 buttons_input(unsigned char *data, int nb, struct pt_regs *regs, int autopoll)
@@ -628,6 +630,7 @@
 		case 0xa:
 			/* down event */
 #ifdef CONFIG_PPC
+#ifdef CONFIG_PMAC_PBOOK
 			if ( data[1] == (data[1]&0xf) ) {
 				if (backlight_level > 2)
 					pmu_set_brightness(backlight_level-2);
@@ -635,17 +638,20 @@
 					pmu_set_brightness(0);
 			}
 #endif
+#endif
 			break;
 		/* brightness increase */
 		case 0x9:
 			/* down event */
 #ifdef CONFIG_PPC
+#ifdef CONFIG_PMAC_PBOOK
 			if ( data[1] == (data[1]&0xf) ) {
 				if (backlight_level < 0x1e)
 					pmu_set_brightness(backlight_level+2);
 				else
 					pmu_set_brightness(0x1f);
 			}
+#endif
 #endif
 			break;
 	}
====================================================================


Thanks,
Peter

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Powerbook code in 2.3.x [was Re: problem building 2.3.47: nomacintosh.a file]

From: Lou Langholtz <hidden>
Date: 2000-02-29 05:31:58

phandel@cise.ufl.edu wrote:
On Mon, 28 Feb 2000, Lou Langholtz wrote:
quoted
undefined references are to: find_via_pmu, pmu_poll, backlight_level,
pmu_set_brightness, and vgacon_remap_base.
This is because there is Powerbook code without #ifdef CONFIG_PMAC_PBOOK
around it.  Here is a quick patch: . . .
Thanks. This seems like a far better fix than what I wound up doing: just setting
CONFIG_ADB_PMU=y (I have a PowerMac 7500 not a Powerbook after all) and I'm gonna
recompile with your fix instead. So now I'm wondering how many people (if any) are
actually running 2.3.47 from kernel.org and happy with it especially for a
PowerMac7500. Thanks!


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help