Skip to contentSkip to conversation

linux-next build error (PNP/IXJ)

DISCUSSION Randy Dunlap 4 participants 7 messages Jul 22, 2008 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi,

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Suggestions?

Thanks,
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#1 lore raw
Quoted 9 lines · Randy Dunlap

Hi,

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

Quoted 7 lines

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Suggestions?

Please send a .config

Quoted 1 line

Thanks,

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#2 lore raw
Quoted 16 lines · On Tue, 22 Jul 2008 20:39:57 +0300 Adrian Bunk wrote:
Quoted 15 lines · Randy Dunlap

Hi,

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Quoted 3 lines
Quoted 1 line

Suggestions?

Please send a .config

attached. (IXJ=m)

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#3 lore raw
Quoted 18 lines · Randy Dunlap
Quoted 16 lines · On Tue, 22 Jul 2008 20:39:57 +0300 Adrian Bunk wrote:
Quoted 15 lines · Randy Dunlap

Hi,

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Suggestions?

Please send a .config

attached. (IXJ=m)

Works for me with gcc 4.3.1.
Which gcc version are you using?

Does disabling CONFIG_OPTIMIZE_INLINING fix it for you?

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#4 lore raw
Quoted 19 lines · On Tue, 22 Jul 2008 23:19:30 +0300 Adrian Bunk wrote:
Quoted 18 lines · Randy Dunlap
Quoted 16 lines · On Tue, 22 Jul 2008 20:39:57 +0300 Adrian Bunk wrote:
Quoted 15 lines · Randy Dunlap

Hi,

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Suggestions?

Please send a .config

attached. (IXJ=m)

Works for me with gcc 4.3.1.
Which gcc version are you using?

gcc (GCC) 4.2.1 (SUSE Linux)

Quoted 1 line

Does disabling CONFIG_OPTIMIZE_INLINING fix it for you?

Hmpf. Yes, it sure does.

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#5 lore raw
In reply to Randy Dunlap
Quoted 7 lines · Randy Dunlap

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

Quoted 7 lines

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Suggestions?

I'd use something like the attached. I don't have a build environment where CONFIG_PNP=n (all I have is x86 and ia64), so I haven't tested this.

ixj: don't use PNP interfaces when CONFIG_PNP=n

This patch fixes a build problem when CONFIG_PNP=n.

drivers/telephony/ixj.c +4 -0
index 49cd979..51b7fb4 100644
@@ -7588,6 +7588,7 @@ static IXJ *new_ixj(unsigned long port)
 
 static int __init ixj_probe_isapnp(int *cnt)
 {               
+#ifdef CONFIG_PNP
 	int probe = 0;
 	int func = 0x110;
         struct pnp_dev *dev = NULL, *old_dev = NULL;
@@ -7664,6 +7665,9 @@ static int __init ixj_probe_isapnp(int *cnt)
 		dev = NULL;
 	}
 	return probe;
+#else
+	return 0;
+#endif
 }
                         
 static int __init ixj_probe_isa(int *cnt)
author Acked-by
#6 lore raw
Quoted 39 lines · On Tue, 22 Jul 2008 11:57:13 -0600 Bjorn Helgaas wrote:
Quoted 7 lines · Randy Dunlap

I'm seeing several build errors in linux-next-20080722 that I haven't seen previously, although I don't know what changed to cause this.

They are all basically the same, in ixj (drivers/telephony/ixj*), when CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message varies depending on IXJ=y or =m):

Quoted 7 lines

IXJ=y:
ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource' or IXJ=m:
ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!

Suggestions?

I'd use something like the attached. I don't have a build environment where CONFIG_PNP=n (all I have is x86 and ia64), so I haven't tested this.

ixj: don't use PNP interfaces when CONFIG_PNP=n

This patch fixes a build problem when CONFIG_PNP=n.

drivers/telephony/ixj.c +1 -0
index 49cd979..51b7fb4 100644
@@ -7588,6 +7588,7 @@ static IXJ *new_ixj(unsigned long port)
 
 static int __init ixj_probe_isapnp(int *cnt)
 {               
+#ifdef CONFIG_PNP
 	int probe = 0;
 	int func = 0x110;
         struct pnp_dev *dev = NULL, *old_dev = NULL;

drivers/telephony/ixj.c static int __init ixj_probe_isapnp(int *cnt)

Quoted 10 lines
drivers/telephony/ixj.c +3 -1
@@ -7664,6 +7665,9 @@ static int __init ixj_probe_isapnp(int *cnt)
 		dev = NULL;
 	}
 	return probe;
+#else
+	return 0;
+#endif
 }
 
 static int __init ixj_probe_isa(int *cnt)
--

Thanks.

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/