[Asterisk-bsd] Zaptel on FreeBSD-8

Ian Freislich ianf at clue.co.za
Wed Jul 8 03:38:23 CDT 2009


Hi

I recomend the following 2 patches for the zaptel port to fix the
"link_elf_obj: symbol unit2minor undefined" error on module load.

Put them in the files directory.

Ian

--
Ian Freislich

-------------- next part --------------
--- zaptel/zaptel-base.c.orig	2008-10-22 23:53:48.000000000 +0200
+++ zaptel/zaptel-base.c	2009-07-07 23:42:40.000000000 +0200
@@ -7575,7 +7575,11 @@
 
 	if (clone_create(&all_clones, &zt_devsw, &unit, &dev_ctl, 0)) {
 		dev_ctl = make_dev(&zt_devsw, 
+#if __FreeBSD_version < 800062
 		    unit2minor(unit),
+#else
+		    unit,
+#endif
 		    UID_ROOT, GID_WHEEL, 0644, "zap/ctl");
 	}
 
@@ -7728,7 +7732,11 @@
 
 	if (i) {
 		*dev = make_dev(&zt_devsw, 
+#if __FreeBSD_version < 800062
 		    unit2minor(unit),
+#else
+		    unit,
+#endif
 		    UID_ROOT, GID_WHEEL, 0644, dev_format, unit);
 	}
 
-------------- next part --------------
--- beastify/zaptel_bits.pm.orig	2008-09-08 05:25:04.000000000 +0200
+++ beastify/zaptel_bits.pm	2009-07-07 23:44:10.000000000 +0200
@@ -120,7 +120,11 @@
 
 	if (clone_create(&all_clones, &zt_devsw, &unit, &dev_ctl, 0)) {
 		dev_ctl = make_dev(&zt_devsw, 
+#if __FreeBSD_version < 800062
 		    unit2minor(unit),
+#else
+		    unit,
+#endif
 		    UID_ROOT, GID_WHEEL, 0644, "zap/ctl");
 	}
 
@@ -219,7 +223,11 @@
 		printf("%s(%d)", dev_format, unit);
 		printf(" with minor %d\\n", dev_minor);
 		*dev = make_dev(&zt_devsw, 
+#if __FreeBSD_version < 800062
 		    unit2minor(unit),
+#else
+		    unit,
+#endif
 		    UID_ROOT, GID_WHEEL, 0644, dev_format, unit);
 		printf("Device created\\n");
 	}


More information about the Asterisk-BSD mailing list