Xilinx / Xilinx/embeddedsw

Undefined reference to pppos_create function

Open
#261 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I have already configured zcu-102 and Linux system using uart16550 successfully. Now i wanted to connect them through PPPoS (Point to point Protocol over serial connection) from lwip202 library. But when i try to build my code, i get


undefined reference to 'pppos_create' 
undefined reference to 'ppp_connect' 

Error shown in Xilinx sdk

Things i have already tried:

  1. Enabled Lwip202 in BSP settings.

BSP Settings

  1. Enabled PPP_SUPPORT by changing its value from '0' to '1' in netif/ppp/ppp_opts.h

ppp_opts.h

  1. Also have included the "ppp.h", "pppos.h", "lwipopts.h" in my main.c file.

Screenshot_3

  1. Also defined PPP_SUPPORT as 1 in "lwipopts.h" as it was not there by default.

lwipopts.h

PS: cntrl + left click on the pppos_create function does take me to the source file i.e., pppos.h which means that the pppos.h file is indeed linked to the project.

Please help..
Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the lwIP PPP configuration in ppp_opts.h and lwipopts.h, then inspect the BSP build inputs for the PPP source behind pppos.h. Rebuild after checking that the implementations of pppos_create and ppp_connect are compiled and linked. Done means the application builds without either undefined-reference error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.