| Summary: | nvidia-kernel - unknown symbols when built with gcc 4.1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Vladimir Lushnikov <vladimir> |
| Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
media-video/nvidia-kernel-1.0.8174-r1 and sys-devel/gcc-4.1.0_beta20051223 nvidia module fails to load because of unresolved system errors: nvidia: Unknown symbol remap_page_range nvidia: Unknown symbol pci_find_class The solution is described in ttp://www.nvnews.net/vbulletin/showthread.php?t=61874 and fixes the problem. Please add this patch: diff -ru usr/src/nv/conftest.sh usr/src/nv.1438624/conftest.sh --- usr/src/nv/conftest.sh 2005-11-23 03:22:31.000000000 +0100 +++ usr/src/nv.1438624/conftest.sh 2005-12-20 15:43:27.287128500 +0100 @@ -25,6 +25,13 @@ -nostdinc -isystem $ISYSTEM \ -Werror -Wimplicit-function-declaration" +touch conftest$$.c +$CC -Wno-attributes -c conftest$$.c > /dev/null 2>&1 +if [ $? -eq 0 ]; then + CFLAGS="$CFLAGS -Wno-attributes" +fi +rm -f conftest$$.* + if [ "$OUTPUT" != "$SOURCES" ]; then CFLAGS="$CFLAGS -I$OUTPUT/include2 -I$OUTPUT/include \ -I$HEADERS -I$HEADERS/asm/mach-default"