Zttool compile issues when installing zaptel

Hi,

I’ve gotten asterisk almost completely compiled and installed. I was attempting to try out zttool to see how my digium cards are doing in my system and I noticed that I couldn’t find the command. It wasn’t installed. Looking a little further in my asterisk book, I noticed i needed libnewt and newt-devel on Red Hat based distro’s (specifically Cent OS 5 in my case).

I installed the libraries and the development, went back to my zaptel source directory and did:

make clean
make
make zttool

The errors I get at zttool are pretty extensive:

[root@typhon zaptel-1.4.5.1]# make zttool gcc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttool.o -c zttool.c gcc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttool zttool.o zttool.o: In function `add_cards': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:143: undefined reference to `newtListboxGetCurrent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:144: undefined reference to `newtListboxClear' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:149: undefined reference to `newtListboxAppendEntry' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:153: undefined reference to `newtListboxSetCurrentByKey' zttool.o: In function `sel_callback': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:162: undefined reference to `newtListboxGetCurrent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:172: undefined reference to `newtPopHelpLine' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:173: undefined reference to `newtPushHelpLine' zttool.o: In function `show_span': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:359: undefined reference to `newtOpenWindow' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:360: undefined reference to `newtPushHelpLine' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:362: undefined reference to `newtButton' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:363: undefined reference to `newtButton' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:364: undefined reference to `newtForm' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:366: undefined reference to `newtFormAddComponents' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:385: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:386: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:388: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:389: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:391: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:392: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:394: undefined reference to `newtFormAddHotKey' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:395: undefined reference to `newtFormSetTimer' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:397: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:398: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:400: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:401: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:403: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:404: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:406: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:407: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:409: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:410: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:412: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:413: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:415: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:416: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:418: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:419: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:422: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:423: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:425: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:426: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:428: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:429: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:431: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:432: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:434: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:435: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:437: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:438: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:440: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:441: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:443: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:444: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:446: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:447: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:449: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:450: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:452: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:453: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:455: undefined reference to `newtTextbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:456: undefined reference to `newtFormAddComponent' zttool.o: In function `show_bits': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:272: undefined reference to `newtTextboxSetText' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:274: undefined reference to `newtTextboxSetText' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:278: undefined reference to `newtTextboxSetText' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:280: undefined reference to `newtTextboxSetText' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:282: undefined reference to `newtTextboxSetText' zttool.o:/usr/src/asterisk/zaptel-1.4.5.1/zttool.c:283: more undefined references to `newtTextboxSetText' follow zttool.o: In function `show_span': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:463: undefined reference to `newtFormRun' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:493: undefined reference to `newtFormDestroy' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:494: undefined reference to `newtPopWindow' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:495: undefined reference to `newtPopHelpLine' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:352: undefined reference to `newtListboxGetCurrent' zttool.o: In function `do_loop': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:302: undefined reference to `newtOpenWindow' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:304: undefined reference to `newtForm' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:314: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:315: undefined reference to `newtFormAddComponent' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:316: undefined reference to `newtPushHelpLine' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:318: undefined reference to `newtFormSetTimer' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:319: undefined reference to `newtFormRun' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:321: undefined reference to `newtFormDestroy' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:322: undefined reference to `newtPopWindow' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:323: undefined reference to `newtPopHelpLine' zttool.o: In function `show_span': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:470: undefined reference to `newtFormSetTimer' zttool.o: In function `main': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:576: undefined reference to `newtInit' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:577: undefined reference to `newtCls' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:579: undefined reference to `newtDrawRootText' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:580: undefined reference to `newtPushHelpLine' zttool.o: In function `show_spans': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:510: undefined reference to `newtButton' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:511: undefined reference to `newtButton' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:513: undefined reference to `newtListbox' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:514: undefined reference to `newtListboxSetWidth' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:516: undefined reference to `newtLabel' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:518: undefined reference to `newtCenteredWindow' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:519: undefined reference to `newtForm' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:521: undefined reference to `newtFormSetTimer' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:523: undefined reference to `newtFormAddComponents' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:525: undefined reference to `newtComponentAddCallback' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:527: undefined reference to `newtFormAddHotKey' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:528: undefined reference to `newtFormAddHotKey' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:534: undefined reference to `newtFormRun' /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:553: undefined reference to `newtFormDestroy' zttool.o: In function `cleanup': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:565: undefined reference to `newtPopWindow' zttool.o: In function `main': /usr/src/asterisk/zaptel-1.4.5.1/zttool.c:583: undefined reference to `newtFinished' collect2: ld returned 1 exit status make: *** [zttool] Error 1 [root@typhon zaptel-1.4.5.1]#

It looks like its not even tring, i’m obviously doing something VERY wrong here.

Ideas?

Anyone? Should i just keep going?

I also am trying to figure out what’s going on with zttool, which the Ast book (V1) tells us to use. Why no answers to this question??

[quote]I installed the libraries and the development, went back to my zaptel source directory and did:

make clean
make
make zttool [/quote]

Is NEWT_LIB set to something reasonable (like “-lnewt”) in makeopts? If not, did you run
./configure after “make clean”?

Well, NEWT_LIB is null, as it turns out, and the reason is that I don’t have any “newt” libraries in /usr/lib.

I went back to check installations, software installations, and I do have ncurses and ncurses-devel installed. There wasn’t any “newt” package available to install (I’m using SuSE 9.3).

So who is this newt fellow, anyway???

Okay, google comes through once again.
I found the newt-0.52.2 sources somewhere, downloaded and tried to build… thus getting two pages of errors saying that I’m missing another package that’s required, but not listed in the Zaptel program requirements (Slang). Interestingly enough, I have the slang package installed (version 1.4.9), I wonder if it’s looking for slang-devel or something?? There isn’t any slang-devel in the SuSE 9.3 distribution.

You find yourself in a maze of twisty passages, all alike.

Here’s a sweeping, overbroad generalization: If you’re installing stuff from source, you should install the -dev versions of prerequisites, because they have the header files that binary packages might omit.

As far as slang (and its prereqs?) goes, I’m not sure about SuSE. Debian (apt-get) is pretty good about grabbing things needed by other things. Does SuSE use rpm?