Compiling smsq

Hey fellas,

I’m trying to compile smsq for my existing asterisk installation, and I’m having some problems.

Here is what happens:

root@machine:/usr/src/asterisk-1.4.21.2# make utils/smsq
gcc     utils/smsq.c   -o utils/smsq
/tmp/ccIqco3o.o: In function `main':
smsq.c:(.text+0x248b): undefined reference to `poptHelpOptions'
smsq.c:(.text+0x24c3): undefined reference to `poptGetContext'
smsq.c:(.text+0x24df): undefined reference to `poptSetOtherOptionHelp'
smsq.c:(.text+0x24ed): undefined reference to `poptGetNextOpt'
smsq.c:(.text+0x250b): undefined reference to `poptStrerror'
smsq.c:(.text+0x2523): undefined reference to `poptBadOption'
smsq.c:(.text+0x27be): undefined reference to `poptPeekArg'
smsq.c:(.text+0x27d0): undefined reference to `poptGetArg'
smsq.c:(.text+0x27f8): undefined reference to `poptPeekArg'
smsq.c:(.text+0x280a): undefined reference to `poptGetArg'
smsq.c:(.text+0x2ab9): undefined reference to `poptPeekArg'
smsq.c:(.text+0x2ad4): undefined reference to `poptGetArg'
smsq.c:(.text+0x2bae): undefined reference to `poptPeekArg'
smsq.c:(.text+0x2bd0): undefined reference to `poptPeekArg'
smsq.c:(.text+0x2be2): undefined reference to `poptGetArg'
collect2: ld returned 1 exit status
make: *** [utils/smsq] Error 1

Now I read a post by one person saying he needed to obtain the libpopt-dev package in order for this to work…which I did…and I still receive the same output.

Anyone run into this before?