
|
[openbeosnetteam]
||
[Date Prev]
[04-2002 Date Index]
[Date Next]
||
[Thread Prev]
[04-2002 Thread Index]
[Thread Next]
[openbeosnetteam] Testing the latest code.
- From: "Bruno G. Albuquerque" <bga@xxxxxxxxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Wed, 03 Apr 2002 00:02:24 EST (-0300)
Ok... I compiled the server and the driver. Had to fix a small typo in
the ocde (already commited to CVS). Not considering the warnings, all
went well.
Then I went to try to compile the test apps... None compiled. Running
make in the apps dir resulted in an undefined symbol error
(net_select() was not found... Where is it supposed to be? It is not in
libnet.so).
Here is the complete error:
[/boot/home/CVS/openbeos/net_kit/source/apps]> make
cc -nostdlib -lroot -Wl,-rpath,/boot/home/openbeos/net_kit/source/
libnet -L/boot/home/openbeos/net_kit/source/libnet -lnet /boot/develop/
lib/x86/start_dyn.o -o test1 ufunc.o test1.o
test1.o: In function `main':
/boot/home/CVS/openbeos/net_kit/source/apps/test1.c:116: undefined
reference to `net_select'
/boot/home/CVS/openbeos/net_kit/source/apps/test1.c:118: undefined
reference to `net_select'
/boot/home/CVS/openbeos/net_kit/source/apps/test1.c:120: undefined
reference to `net_select'
collect2: ld returned 1 exit status
make: *** [test1] Error 1
Also, the path to the libnet is absolute and hardcoded. My sources are
in /boot/home/CVS/openbeos/net_kit/source/libnet and not /boot/home/
openbeos/net_kit/source/libnet. Changing that didn't help anyway.
Trying to compile ifconfig:
[/boot/home/CVS/openbeos/net_kit/source/apps/ifconfig]> make
cc -nostdlib -lroot -Wl,-rpath,/boot/home/openbeos/net_kit/source/
libnet -L/boot/home/openbeos/net_kit/source/libnet -lnet /boot/develop/
lib/x86/start_dyn.o ifconfig.o -o ifconfig
ifconfig.o: In function `in_getaddr':
/boot/home/CVS/openbeos/net_kit/source/apps/ifconfig/ifconfig.c:455:
undefined reference to `inet_aton'
collect2: ld returned 1 exit status
make: *** [ifconfig] Error 1
And route:
[/boot/home/CVS/openbeos/net_kit/source/apps/route]> make
show.o: In function `show':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:139: undefined
reference to `sysctl'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:148: undefined
reference to `sysctl'
show.o: In function `p_sockaddr':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:303: undefined
reference to `link_ntoa'
route.o: In function `flushroutes':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:304: undefined
reference to `sysctl'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:315: undefined
reference to `sysctl'
route.o: In function `routename':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `link_ntoa'
route.o: In function `netname':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `getnetbyaddr'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `link_ntoa'
route.o: In function `getaddr':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `link_addr'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `inet_lnaof'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `inet_network'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `getnetbyname'
route.o: In function `interfaces':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `sysctl'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `sysctl'
route.o: In function `sodump':
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `link_ntoa'
/boot/home/CVS/openbeos/net_kit/source/apps/route/show.c:377: undefined
reference to `inet_ntop'
collect2: ld returned 1 exit status
make: *** [route] Error 1
Note that I am running BONE, if that matters.
-Bruno
--
Fortune Cookie Says:
The years of peak mental activity are undoubtedly between the ages of
four and eighteen. At four we know all the questions, at eighteen all
the answers.
|

|