Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220021 - net-dialup/ltmodem-2.6.9 does not emerge under kernel 2.6.25-r1
Summary: net-dialup/ltmodem-2.6.9 does not emerge under kernel 2.6.25-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.25
  Show dependency tree
 
Reported: 2008-05-02 09:12 UTC by Sasha Medvedev
Modified: 2008-05-21 06:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
My emerge --info (emerge.info,3.71 KB, text/plain)
2008-05-02 09:14 UTC, Sasha Medvedev
Details
My linux kernel .config file (.config,45.41 KB, text/plain)
2008-05-02 09:16 UTC, Sasha Medvedev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sasha Medvedev 2008-05-02 09:12:34 UTC
The following message I receive when emerge net-dialup/ltmodem-2.6.9:

>>> Compiling source in /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9 ...
 * Preparing ltmodem module
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9 modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r1'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.o
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c: In function ‘lt_pcibios_read_config_byte’:
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:68: error: implicit declaration of function ‘pci_find_slot’
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:68: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c: In function ‘lt_pcibios_read_config_word’:
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:69: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c: In function ‘lt_pcibios_read_config_dword’:
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:70: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c: In function ‘lt_pcibios_write_config_byte’:
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:71: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c: In function ‘lt_pcibios_write_config_word’:
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:72: warning: initialization makes pointer from integer without a cast
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c: In function ‘lt_pcibios_write_config_dword’:
/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.c:73: warning: initialization makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/lt_modem.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r1'
make: *** [module] Error 2
 * 
 * ERROR: net-dialup/ltmodem-2.6.9 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3169:  Called linux-mod_src_compile
 *             environment, line 2415:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CC=\"$(get-KERNEL_CC)\" 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERNEL_DIR='/usr/src/linux' module
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-dialup/ltmodem-2.6.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dialup/ltmodem-2.6.9/temp/environment'.
 * 

 * Messages for package net-dialup/ltmodem-2.6.9:

 * 
 * ERROR: net-dialup/ltmodem-2.6.9 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3169:  Called linux-mod_src_compile
 *             environment, line 2415:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CC=\"$(get-KERNEL_CC)\" 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERNEL_DIR='/usr/src/linux' module
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-dialup/ltmodem-2.6.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dialup/ltmodem-2.6.9/temp/environment'.


Reproducible: Always
Comment 1 Sasha Medvedev 2008-05-02 09:14:48 UTC
Created attachment 151590 [details]
My emerge --info
Comment 2 Sasha Medvedev 2008-05-02 09:16:18 UTC
Created attachment 151591 [details]
My linux kernel .config file
Comment 3 Sasha Medvedev 2008-05-04 17:46:16 UTC
Please, add something like this to pkg_setup() section of ltmodem-2.6.9 ebuild

if kernel_is ge 2 6 24 && ! linux_chkconfig_present PCI_LEGACY; then
    eerror "${P} requires support for pci_find_slot. \
            Please enable PCI_LEGACY kernel option."
    die "${P} requires support for pci_find_slot."
fi

This driver uses deprecate pci_find_slot function. So without this option or patch to sources it doesn't compile.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2008-05-21 06:41:24 UTC
Fixed (for real this time) in cvs.

@reporter: Next time *please* don't close bugs by yourself. It was a miracle that I saw it.