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

--- 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);
        }
 
--- 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");
        }
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Reply via email to