LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-23-2006, 02:29 AM   #1
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Rep: Reputation: 31
creating_missing_files


I'm trying to install libnet..
but at make is this error :
make[1]: *** [drivers/ipxsocks.o] Error 1
make[1]: Leaving directory `/home/strycnine/libnet/lib'
make: *** [lib] Error 2
the file ipxsocks.o is missing
but I have ipxsocks.c
Can I create ipxsocks.o?(or generate)
 
Old 10-23-2006, 03:35 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Odd, it should probably be there..did you have any problems during the configure part?
 
Old 10-23-2006, 03:36 AM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
make[1]: *** [drivers/ipxsocks.o] Error 1
make[1]: Leaving directory `/home/strycnine/libnet/lib'
make: *** [lib] Error 2
The file ipxsocks.o is not missing.

make is running gcc to compile ipxsocks.c (to produce ipxsocks.o), but ipxsocks.c is failing to compile.

Could you post the compilation error(s)?

The "make[1]: *** [drivers/ipxsocks.o] Error 1", etc. just states that an error occurred, not what the error was.
 
Old 10-23-2006, 04:58 AM   #4
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Original Poster
Rep: Reputation: 31
$make
make -C lib/ lib
make[1]: Entering directory `/home/strycnine/libnet/lib'
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX -c -o drivers/internet.o drivers/internet.c
drivers/internet.c: In function `do_init_channel':
drivers/internet.c:116: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [drivers/internet.o] Error 1
make[1]: Leaving directory `/home/strycnine/libnet/lib'
make: *** [lib] Error 2

here is internet.o , it's the same thing
 
Old 10-23-2006, 01:59 PM   #5
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Find the part of the makefile which has the option -Werror.

Remove that option.

It's causing warnings to be interpreted as errors by the compiler.

Looking at libnet's Makefile (I just downloaded it myself to check), this might actually be in ports.mak
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration