Menu

#2 Won't link with gcc 3.2.2

open
nobody
5
2003-06-06
2003-06-06
Anonymous
No

RH9. gcc 3.2.2

Do not know if this is significant.

$ ./configure
Warning: gcc version is unknown
configuration successful

appears to do nothing...

make produces too many link errors to list here.
gcc -L/usr/local/lib -o rtspproxy rtspproxy.o
proxysession.o tranhdr.o proxytran.o
../librtsp/librtsp.a ../libapp/libapp.a -lpthread
rtspproxy.o(.text+0xe3): In function
`CClientCnx::CClientCnx[not-in-charge](CRtspProxyCnx*,
CTcpSocket*)':
undefined reference to `operator new(unsigned)'
rtspproxy.o(.text+0x127): In function
`CClientCnx::CClientCnx[not-in-charge](CRtspProxyCnx*,
CTcpSocket*)':
....

mjmatthews1@rcn.com

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I got the same problem. Shit software.

     
  • Nobody/Anonymous

    Logged In: NO

    If you edit Makefile.config , and s/gcc/gcc296/g and
    s/g++/g++296/g , reconfigure and make everything, it works fine.

     
  • Nobody/Anonymous

    Logged In: NO

    Re-run the gcc command manually from the appropriate
    directory but replace "gcc" with "g++" (the C++ compiler)
    and you should get the correct output.

     
  • Nobody/Anonymous

    Logged In: NO

    on linux redhat AS 3, but should work on any other

    change configure fille according to these diffs
    diff configure configure.org
    51,52c51,52
    < CC=g++
    < CFLAGS="$CCDBG -D_UNIX -D_LINUX -Wall -I/usr/include"
    ---
    > CC=gcc
    > CFLAGS="$CCDBG -D_UNIX -D_LINUX -Wall
    -I/usr/local/include"
    57,58c57,58
    < LD=g++
    < LDFLAGS="$LDDBG -L/usr/lib"
    ---
    > LD=gcc
    > LDFLAGS="$LDDBG -L/usr/local/lib"

    that is chaging all entries (for linux only) of gcc and
    replace with g++, then change path to libs by /usr/lib
    instead of /usr/local/lib

    and that should be ok, that is for meat least

    best regards

     

Log in to post a comment.