LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2009, 06:12 AM   #1
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Rep: Reputation: 22
Question libnet


Hi users.
When i use make command for compile libnet show me error!
i use fedora core 10 and libnet-0.10.11
i copy linux.mak from makefiles directory to libnet directory and rename it to port.mak but
i enter make command,show me error! my port.mak file content:

# Portability makefile -- helper for other makefiles

# Linux version

TARGET = LINUX

LIBDEST = /usr/local/lib/$(LIBFILENAME)
INCDEST = /usr/local/include/$(INCNAME)
EXE_SUFFIX =
RM_F = rm -f
CP_F = cp -f

CC = gcc
WARNING_FLAGS = -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
LDLIBS = -lpthread
LINK_ALLEGRO = `allegro-config --libs`
ARFLAGS = rs

LIBNAME = net
LIBFILENAME = lib$(LIBNAME).a
INCNAME = libnet.h
LIBDIR = $(BASE)/lib
LIBSRC = $(LIBDIR)/$(LIBFILENAME)
INCDIR = $(BASE)/include
INCSRC = $(INCDIR)/$(INCNAME)

for complie libnet how work?
how find RPM version?
Please help me.
thanks
 
Old 11-22-2009, 10:31 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Moved: This thread is more suitable in Programming and has been moved accordingly to help your question get the exposure it deserves.
 
Old 11-22-2009, 02:07 PM   #3
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by jokar.mohsen View Post
i enter make command,show me error!
Please show us the error message you get, or there's not a lot anyone can really do!

John G
 
Old 11-24-2009, 07:08 AM   #4
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Original Poster
Rep: Reputation: 22
Question libnet

Quote:
Originally Posted by JohnGraham View Post
Please show us the error message you get, or there's not a lot anyone can really do!

John G
hi.
when i enter make show me:
cc1: warnings being treated as errors
drivers/internet.c: In function ‘do_init_channel’:
drivers/internet.c:140: error: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
drivers/internet.c: In function ‘drv_recv’:
drivers/internet.c:205: error: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness
make[1]: *** [drivers/internet.o] Error 1

thanks.
 
Old 11-27-2009, 12:48 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Solution also shown in this closed thread
http://www.linuxquestions.org/questi...7/#post3771650

Libnet-0.10.11 : Last time edited year 2001.
' make CC=gcc-2.95 ' will create 'libnet.a'
Apparently the compiler has to be as old as the code.
The last surviving gcc-2.95 is in Debian 4 Etch.

Click my name, send an email, and I will attach
libnet-0.10.11-1.i386.rpm ( 143 kB ) to a return mail.
.. ..

May be you are lucky, and the lib can even be used for something.
.....

Last edited by knudfl; 11-27-2009 at 03:19 PM.
 
  


Reply

Tags
libnet



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for libnet alternatives. naaman Programming 5 06-04-2009 03:12 AM
Error & warnings in installing Libnet-1.1.x & Libnet-config not found error. sakthivelbatusai Linux - Networking 0 03-14-2007 11:14 PM
libnet Mercurius Programming 1 06-17-2006 03:48 AM
libnet install blueAlien Slackware 3 03-27-2006 08:09 AM
Libnet gr33ndata Programming 2 10-14-2003 02:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:07 AM.

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