Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling FRR on a mac #2972

Closed
donaldsharp opened this issue Sep 4, 2018 · 5 comments
Closed

Compiling FRR on a mac #2972

donaldsharp opened this issue Sep 4, 2018 · 5 comments
Assignees
Labels
build Issues with the build enhancement platform Issue in a specific platform

Comments

@donaldsharp
Copy link
Member

build_mac.tar.gz

zebra being run in a debugger:

(lldb) r -A 127.0.0.1 -u root -g admin
Process 58256 launched: '/usr/local/sbin/zebra' (x86_64)
2018/09/04 15:20:31 errors: ZEBRA: [EC 100663303] if_ioctl(SIOCGIFMEDIA) failed: Operation not supported on socket
2018/09/04 15:20:31 errors: ZEBRA: [EC 100663303] if_ioctl(SIOCGIFMEDIA) failed: Operation not supported on socket
2018/09/04 15:20:31 errors: ZEBRA: [EC 100663303] if_ioctl(SIOCGIFMEDIA) failed: Operation not supported on socket
2018/09/04 15:20:31 errors: ZEBRA: [EC 100663303] if_ioctl(SIOCGIFMEDIA) failed: Operation not supported on socket
2018/09/04 15:20:31 warnings: ZEBRA: warning: connected_add_ipv6 called for interface utun0 with peer flag set, but no peer address supplied
2018/09/04 15:20:31 errors: ZEBRA: [EC 100663303] if_ioctl(SIOCGIFMEDIA) failed: Operation not supported on socket
2018/09/04 15:20:31 warnings: ZEBRA: Disabling MPLS support (no kernel support)

Some simple vtysh to prove it came up:

Donalds-MacBook-Pro-2:vtysh sharpd$ sudo ./vtysh
Password:
% Can't open configuration file /etc/frr/vtysh.conf due to 'No such file or directory'.

Hello, this is FRRouting (version 6.1-dev-MyOwnFRRVersion-gfe81a9a-dirty).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

This is a git build of frr-6.1-dev-13-gcefe81a9a-dirty
Associated branch(es):
	local:master
	github/frrouting/frr.git/master

Donalds-MacBook-Pro-2.local# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR,
       > - selected route, * - FIB route

K>* 0.0.0.0/0 [0/0] via 10.50.11.1, en0, 00:12:30
C>* 10.50.11.0/24 is directly connected, en0, 00:12:30
C>* 10.50.12.0/24 is directly connected, en7, 00:12:30
Donalds-MacBook-Pro-2.local# show int en0
Interface en0 is up, line protocol is up
  Link ups:       1    last: 2018/09/04 15:20:31.47
  Link downs:     0    last: (never)
  vrf: default
  index 8 metric 1 mtu 1500 speed 112 
  flags: <UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
  Type: Ethernet
  HWaddr: 8c:85:90:92:ef:ef
  inet 10.50.11.184/24 broadcast 10.50.11.255
  inet6 fe80::1c25:7787:b6a4:f8db/64
  inet6 2620:11f:a008:11:1cda:fb9b:ab42:6248/64
  inet6 2620:11f:a008:11:4948:82b3:c73b:9e65/64
  Interface Type Other
    input packets 6820063, bytes 1694731264, dropped 0, multicast packets 41595
    input errors 0
    output packets 3334505, bytes 1883186176, multicast packets 0
    output errors 0
    collisions 0
@donaldsharp
Copy link
Member Author

@diivious ->

This is not nearly production code, but I got it working on a mac. I'll slowly work on getting this up and running right over the next couple of weeks

@eqvinox -> The tar.gz has the data you wanted.

@eqvinox
Copy link
Contributor

eqvinox commented Sep 11, 2018

=> will fix the __attribute__((section())) bits as part of the logging foo (because that uses it too and needs more functionality on it)

@qlyoung
Copy link
Member

qlyoung commented Jan 31, 2019

libyang needs to be shipped in homebrew

@qlyoung qlyoung added platform Issue in a specific platform build Issues with the build labels Jan 31, 2019
@rzalamena
Copy link
Member

Some Mac OS X related PRs for history completeness:

@donaldsharp
Copy link
Member Author

Given the state of mac and some of the gcc'isms we use. I do not forsee this ever happening. Closing at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues with the build enhancement platform Issue in a specific platform
Projects
None yet
Development

No branches or pull requests

4 participants