#5 Compile fails at iaxmodem.c

closed-accepted
nobody
None
9
2006-09-18
2006-09-18
Don Fanning
No

Compile fails when compiling the main iaxmodem.c
binary. System is: Linux argus 2.6.17-gentoo-r4 #1 SMP
Sat Sep 16 02:36:15 PDT 2006 i686 Pentium III
(Coppermine) GenuineIntel GNU/Linux
---
Reproducable steps
a) Both libiax and spandsp compile successfully and
install.
b) running ./build or ./build static produce the same
issues from the iaxmodem root directory.
---
The following is from a SF tarball:
---
CHANGES build iaxmodem.c lib
FAQ config.ttyIAX iaxmodem.init.debian
termpkg-ttydforfax.patch
README iaxmodem-cfg.ttyIAX iaxmodem.init.fedora
TODO iaxmodem.1 iaxmodem.o
argus iaxmodem-0.1.14 # ./build
/tmp/cconeiBe.o: In function `iaxmodem':
/root/iaxmodem-0.1.14/iaxmodem.c:631: undefined
reference to `openpty'
collect2: ld returned 1 exit status
argus iaxmodem-0.1.14 # rm iaxmodem.o
argus iaxmodem-0.1.14 # ./build
/tmp/cc06jFgP.o: In function `iaxmodem':
/root/iaxmodem-0.1.14/iaxmodem.c:631: undefined
reference to `openpty'
collect2: ld returned 1 exit status
argus iaxmodem-0.1.14 #

---
The following is from an ebuild compile to an older
version of iaxmodem:
----
creating libiax.la
(cd .libs && rm -f libiax.la && ln -s ../libiax.la
libiax.la)
make[1]: Leaving directory
`/var/tmp/portage/iaxmodem-0.1.9/work/iaxmodem-0.1.9/lib/libiax2/src'
make[1]: Entering directory
`/var/tmp/portage/iaxmodem-0.1.9/work/iaxmodem-0.1.9/lib/libiax2'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory
`/var/tmp/portage/iaxmodem-0.1.9/work/iaxmodem-0.1.9/lib/libiax2'
/var/tmp/portage/iaxmodem-0.1.9/temp/cc3dzgha.o: In
function `iaxmodem':
iaxmodem.c:(.text+0x11d8): undefined reference to `openpty'
collect2: ld returned 1 exit status

!!! ERROR: net-misc/iaxmodem-0.1.9 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
iaxmodem-0.1.9.ebuild, line 51: Called die

!!! (no error message)
!!! If you need support, post the topmost build error,
and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'

Discussion

  • Don Fanning

    Don Fanning - 2006-09-18
    • priority: 5 --> 9
     
  • Lee Howard

    Lee Howard - 2006-09-18

    Logged In: YES
    user_id=627618

    openpty is included from the pty.h header file which is part
    of glibc. You may need to install the "glibc-devel" package
    on your system distribution to get this.

     
  • Don Fanning

    Don Fanning - 2006-09-18
    • status: open --> closed-accepted
     
  • Don Fanning

    Don Fanning - 2006-09-18

    Logged In: YES
    user_id=1585856

    Thanks. For gentoo I recompiled (re-emerged) glibc and it
    worked just fine. I'll make a note of it for the ebuild
    release.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks