سلام به شما
می خوام این چیز مال چیزو (یعنی پلاگین نصب مودم اکسترنال یو اس بی ) رو از روی سورس کامپایل کنم اما...
اول که یه پچی توی سایتش هست به قول خودش برای Patch kernel 2.6.x (<= 2.6.6) که نمی دونم اصلا بدرد من می خوره (Lucid) یا نه و بعدش نمی دونم این پچ رو چطور باید به باقیه اعمائ و احشای سورس بیمار (در اینجا همون چیزه یعنی) اضافه کنم و اما بدون اضافه کردن این پچ گرامی (که اصلا نمی دونم این عضو قطع شده مال این بیمار یا بیمار بغلی!) وقتی می خوام کامپایل کنم یه پیغامی توی مایه های زیر دارم:
Making all in eci-common
make[1]: Entering directory `/home/zxc/Downloads/eciadsl-usermode-0.12/eci-common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/zxc/Downloads/eciadsl-usermode-0.12/eci-common'
make[1]: Entering directory `/home/zxc/Downloads/eciadsl-usermode-0.12'
gcc -DPACKAGE_NAME=\"eciadsl-usermode\" -DPACKAGE_TARNAME=\"eciadsl-usermode\" -DPACKAGE_VERSION=\"0.12\" -DPACKAGE_STRING=\"eciadsl-usermode\ 0.12\" -DPACKAGE_BUGREPORT=\"eci@ml.free.fr\" -DPACKAGE=\"eciadsl-usermode\" -DVERSION=\"0.12\" -DHAVE_LIBPTHREAD=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKET_H=1 -DSELECT_TYPE_ARG1=int -DSELECT_TYPE_ARG234=\(fd_set\ \*\) -DSELECT_TYPE_ARG5=\(struct\ timeval\ \*\) -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_ALARM=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_UNAME=1 -I. -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/eciadsl\" -DDOC_DIR=\"/usr/local/share/doc/eciadsl\" -DBINDIR=\"/usr/local/bin\" -g -O2 -MT pusb.o -MD -MP -MF .deps/pusb.Tpo -c -o pusb.o pusb.c
In file included from pusb.c:13:
pusb-linux.c:32:22: error: asm/page.h: No such file or directory
In file included from pusb.c:13:
pusb-linux.c: In function ‘pusb_endpoint_rw’:
pusb-linux.c:441: error: ‘PAGE_SIZE’ undeclared (first use in this function)
pusb-linux.c:441: error: (Each undeclared identifier is reported only once
pusb-linux.c:441: error: for each function it appears in.)
make[1]: *** [pusb.o] Error 1
make[1]: Leaving directory `/home/zxc/Downloads/eciadsl-usermode-0.12'
make: *** [all-recursive] Error 1
این اواخرش داره ارورهای بی تربیتی میده که من نمی دونم یعنی چی! اگه شما زبونشو می فهمید محبت کنید ترجمه کنید تا جواب درخور بهش بدیم!
البته قبلش دستور کانفگور رو بدون ایراد اجرا کردم ظاهرا:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for pthread_create in -lpthread... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether closedir returns void... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for alarm... yes
checking for gettimeofday... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strtol... yes
checking for strtoul... yes
checking for uname... yes
checking for pppd... /usr/sbin/pppd
configure: creating ./config.status
config.status: creating VERSION
config.status: creating eciadsl-usermode.spec
config.status: creating Makefile
config.status: creating eci-common/Makefile
config.status: executing depfiles commands
بله دیگه! خدا امواتتون رو بیامرزه!