bochs-2000_0104c compilation problem!!!

Joel Sherrill joel.sherrill at OARcorp.com
Tue Apr 18 14:24:22 UTC 2000



Serrae at tsainc.com wrote:
> 
> Hello folks,
> 
> I was attempting to compile bochs-2000_0104c.tar.gz on a solaris2.6 + SPARC
> and here is the output:
> 
> eserra at sun250$ gmake all
> c++ -o bochs -g -O2   main.o load32bitOShack.o state_file.o pc_system.o \
>                  \
>         iodev/libiodev.a \
>         cpu/libcpu.a memory/libmemory.a gui/libgui.a \
>             \
>         fpu/libfpu.a \
>         -L/usr/openwin/lib -R/usr/openwin/lib -lSM -lICE -lX11 \
>          \
> 
> Undefined                       first referenced
>  symbol                             in file
> socket                              iodev/libiodev.a(gdb_tty.o)  (symbol
> belongs to implicit dependency /usr/lib/libsocket.so.1)
> getprotobyname                      iodev/libiodev.a(gdb_tty.o)  (symbol
> belongs to implicit dependency /usr/lib/libsocket.so.1)
> accept                              iodev/libiodev.a(gdb_tty.o)  (symbol
> belongs to implicit dependency /usr/lib/libsocket.so.1)
> bind                                iodev/libiodev.a(gdb_tty.o)  (symbol
> belongs to implicit dependency /usr/lib/libsocket.so.1)
> setsockopt                          iodev/libiodev.a(gdb_tty.o)  (symbol
> belongs to implicit dependency /usr/lib/libsocket.so.1)
> listen                              iodev/libiodev.a(gdb_tty.o)  (symbol
> belongs to implicit dependency /usr/lib/libsocket.so.1)
> ld: fatal: Symbol referencing errors. No output written to bochs
> gmake: *** [bochs] Error 1
> eserra at sun250$
> 
> Any ideas what went wrong?  I did ./configure as is required and untared
> the bochs-iodev.tgz from the contrib directory on the
> OARCorp Website.  Thanks.

You need to include another library. (as if that wasn't obvious :).

Based on the message you need to add a -lsocket.  I recall -lnsl or
something
like that on SOlaris being useful for networking applications also.
 
> Sincerely,
> Efren
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> Efren Serra
> Software Engineer
> Systems Solutions Group
> Transaction Systems Architects, Inc.
> 218 South 108th Avenue
> Omaha, NE 68154
> Phone: 402-697-2267
> FAX: 402-333-9725
> ~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list