nfs.c not linking

Joel Sherrill joel.sherrill at oarcorp.com
Wed Jun 3 15:28:37 UTC 2015



On June 3, 2015 11:25:26 AM EDT, Gedare Bloom <gedare at rtems.org> wrote:
>On Wed, Jun 3, 2015 at 11:21 AM, Ben Dart <Ben.Dart at adept.com> wrote:
>> Hi,
>>
>>
>>
>> I am trying to build RTEMS 4.9.2 with the command line `mount`
>enabled for
>> nfs mounts. As suggested here:
>This version of RTEMS is not really supported by the public community,
>although there are probably still enough active and ex-users of it
>that you might get help.

+1 this is old.

>
>>
>https://docs.rtems.org/releases/rtemsdocs-4.9.2/share/rtems/html/shell/shell00038.html
>> I have added the following to shellconfig.h:
>>
>>
>>
>> #ifdef RTEMS_NETWORKING
>>
>>   #define CONFIGURE_SHELL_MOUNT_NFS
>>
>> #endif
>>
>I'm not sure what this shellconfig.h is, but you should be including
>this in a file your application will include before it includes
>confdefs.h, and then you also need to be sure to configure rtems with
>--enable-networking.

Shellconfig.h is the way to configure the SRT of commands in the shell.

>>
>>
>> This should fill rtems_shell_Mount_filesystems with the NFS mount
>type and
>> allow me to mount with NFS. Unfortunately I am unable to build. I get
>> linkers errors as follows:
>>
>>
>>
>>
>1>../../../../../adept_5200/lib\librtemscpu.a(libshell_a-main_mount_nfs.o):
>> In function `rtems_shell_nfs_mounter':
>>
>>
>1>d:\Subversion\rtems49\Trunk\build_5200\powerpc-rtems4.9\c\adept_5200\cpukit\libmisc/../../../../../../rtems-4.9.2/c/src/../../cpukit/libmisc/shell/main_mount_nfs.c:46:
>> undefined reference to `rpcUdpInit'
>>
>>
>1>d:\Subversion\rtems49\Trunk\build_5200\powerpc-rtems4.9\c\adept_5200\cpukit\libmisc/../../../../../../rtems-4.9.2/c/src/../../cpukit/libmisc/shell/main_mount_nfs.c:51:
>> undefined reference to `nfsInit'
>>
>>
>1>d:\Subversion\rtems49\Trunk\build_5200\powerpc-rtems4.9\c\adept_5200\cpukit\libmisc/../../../../../../rtems-4.9.2/c/src/../../cpukit/libmisc/shell/main_mount_nfs.c:58:
>> undefined reference to `nfsMount'
>>
>> 1>collect2: ld returned 1 exit status
>>
>>
>>
>> Is there something else I need to do to be able to use the ‘mount’
>console
>> command with TFTP or NFS?
>>
>>
>>
>> Ben
>>
>>
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>_______________________________________________
>users mailing list
>users at rtems.org
>http://lists.rtems.org/mailman/listinfo/users

--joel


More information about the users mailing list