Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]dhcpd.sh: /line: 98 4591 illegal instruct
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Thu Oct 09, 2008 3:29 pm    Post subject: [SOLVED]dhcpd.sh: /line: 98 4591 illegal instruct Reply with quote

When starting eth0 dhcp runs and I receive this error:

/lib/rcscripts/net/dhcpd.sh: /line: 98 4591 illegal instruction
-d R N Y eth0


Google tells me nothing so I have no idea what's happening.

Any thoughts?

Edit: Solved is not 100% right since I'm not sure what I did. but I rebuilt everything, so I guess that has something to do with it, even though it failed a couple of times after that too.
_________________
"Some smart quote" -Some cult guy


Last edited by Tuxido on Sat Oct 11, 2008 10:00 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9893
Location: almost Mile High in the USA

PostPosted: Thu Oct 09, 2008 8:07 pm    Post subject: Reply with quote

Usually illegal instruction is due to compiling with the wrong CFLAGS targeting the wrong architecture, what arch did you build your dhcpcd with?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 10, 2008 8:47 am    Post subject: Reply with quote

I'm very interested in your ARCH and CFLAG combo here - dhcpcd should be bullet proof in that regard :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Sat Oct 11, 2008 5:51 am    Post subject: Reply with quote

I'm on x86, a pentium 4 M

CFLAGS ="-O2 -mtune="686" -pipe"

I also had march="prescott", but I removed it and rebuilt everything.

I found a possible source to the problem, or a problem at least.

My dhcpcd.sh is outdated, I looked through it and it passes alot of arguments to dhcpcd which it no longer supports. (My dhcpcd is 4.0.2)

I guess I should try to update the dhcpcd.sh, but how do I do that?
_________________
"Some smart quote" -Some cult guy
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Oct 11, 2008 7:43 am    Post subject: Reply with quote

dhcpcd-4.0 will support them when built with USE=compat.

Still it should not segfault. Could you attach your conf.d/net stripped of comments?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Sat Oct 11, 2008 9:58 am    Post subject: Reply with quote

Now it works, I don't know why.

The only thing I did was trying [dhcpcd eth0] again and it worked, and suddenly it worked upon booting too. Perhaps the elves stealing my socks decided to be nice, I don't know.
_________________
"Some smart quote" -Some cult guy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum