Title: Re: [FreeBSD] FreeBSD AMD Geode Driver make error

>

Merhaba Arkadaşlar 


Merhaba,


>


AAEON Marka PFM-540I


Ürünü üzerinde embedded freebsd çalışıyorum. Bu ürün üzerinde X uygulamaları çalıştırmam ve ekranı 90 derece döndürmem gerekiyor. Bu nedenle xf86-video-geode-2.8.0.tar.gz  driverini bsd için derlemem gerekiyor. Bu driveri Linux üzerinde derledim ve kullandım bir sorun çıkmadı. Ancak bsd üzerinde derlemeye çalıştığımda aşağıdaki hatayı alıyorum. 


[EMAIL PROTECTED] /home/mehmet/Desktop/xf86-video-geode-2.8.0]# make

make  all-recursive

Making all in src

/usr/local/bin/bash ../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../src/cim -I../src/gfx  -I../src/panel -I../linux_v26     -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include    -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL  -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_driver.lo -MD -MP -MF .deps/geode_driver.Tpo -c -o geode_driver.lo geode_driver.c

mkdir .libs

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/cim -I../src/gfx -I../src/panel -I../linux_v26 -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_driver.lo -MD -MP -MF .deps/geode_driver.Tpo -c geode_driver.c  -fPIC -DPIC -o .libs/geode_driver.o

geode_driver.c: In function 'AmdProbe':

geode_driver.c:516: warning: 'CPUDetected' may be used uninitialized in this function

mv -f .deps/geode_driver.Tpo .deps/geode_driver.Plo

/usr/local/bin/bash ../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../src/cim -I../src/gfx  -I../src/panel -I../linux_v26     -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include    -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL  -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_common.lo -MD -MP -MF .deps/geode_common.Tpo -c -o geode_common.lo geode_common.c

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/cim -I../src/gfx -I../src/panel -I../linux_v26 -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_common.lo -MD -MP -MF .deps/geode_common.Tpo -c geode_common.c  -fPIC -DPIC -o .libs/geode_common.o

mv -f .deps/geode_common.Tpo .deps/geode_common.Plo

/usr/local/bin/bash ../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../src/cim -I../src/gfx  -I../src/panel -I../linux_v26     -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include    -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL  -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_dcon.lo -MD -MP -MF .deps/geode_dcon.Tpo -c -o geode_dcon.lo geode_dcon.c

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/cim -I../src/gfx -I../src/panel -I../linux_v26 -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_dcon.lo -MD -MP -MF .deps/geode_dcon.Tpo -c geode_dcon.c  -fPIC -DPIC -o .libs/geode_dcon.o

mv -f .deps/geode_dcon.Tpo .deps/geode_dcon.Plo

/usr/local/bin/bash ../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../src/cim -I../src/gfx  -I../src/panel -I../linux_v26     -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include    -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL  -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_msr.lo -MD -MP -MF .deps/geode_msr.Tpo -c -o geode_msr.lo geode_msr.c

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/cim -I../src/gfx -I../src/panel -I../linux_v26 -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include -DHAVE_GX -DHAVE_LX -DAMD_V4L2_VIDEO -DOPT_ACCEL -DLINUX_2_6 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DPNL_SUP -g -O2 -MT geode_msr.lo -MD -MP -MF .deps/geode_msr.Tpo -c geode_msr.c  -fPIC -DPIC -o .libs/geode_msr.o

geode_msr.c: In function 'GeodeReadMSR':

geode_msr.c:34: warning: implicit declaration of function 'lseek64'

geode_msr.c:34: warning: nested extern declaration of 'lseek64'

geode_msr.c:34: error: 'off64_t' undeclared (first use in this function)

geode_msr.c:34: error: (Each undeclared identifier is reported only once

geode_msr.c:34: error: for each function it appears in.)

geode_msr.c:34: error: expected ')' before 'addr'

geode_msr.c: In function 'GeodeWriteMSR':

geode_msr.c:59: error: 'off64_t' undeclared (first use in this function)

geode_msr.c:59: error: expected ')' before 'addr'

*** Error code 1


Stop in /usr/home/mehmet/Desktop/xf86-video-geode-2.8.0/src.

*** Error code 1


Stop in /usr/home/mehmet/Desktop/xf86-video-geode-2.8.0.

*** Error code 1


Stop in /usr/home/mehmet/Desktop/xf86-video-geode-2.8.0.

[EMAIL PROTECTED] /home/mehmet/Desktop/xf86-video-geode-2.8.0]# 



Bu dosyayı nasıl derlerim.




Derleme öncesi ./configure çıktısı;


[EMAIL PROTECTED] /home/mehmet/Desktop/xf86-video-geode-2.8.0]# ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... ./install-sh -c -d

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking build system type... i386-unknown-freebsd7.0

checking host system type... i386-unknown-freebsd7.0

checking for style of include used by make... GNU

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 dependency style of gcc... gcc3

checking for a sed that does not truncate output... /usr/bin/sed

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for ld used by gcc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for /usr/bin/ld option to reload object files... -r

checking for BSD-compatible nm... /usr/bin/nm -B

checking whether ln -s works... yes

checking how to recognize dependent libraries... pass_all

checking how to run the C preprocessor... gcc -E

checking for ANSI C header files... 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 dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking dependency style of g++... gcc3

checking how to run the C++ preprocessor... g++ -E

checking for g77... no

checking for xlf... no

checking for f77... no

checking for frt... no

checking for pgf77... no

checking for cf77... no

checking for fort77... no

checking for fl32... no

checking for af77... no

checking for xlf90... no

checking for f90... no

checking for pgf90... no

checking for pghpf... no

checking for epcf90... no

checking for gfortran... no

checking for g95... no

checking for xlf95... no

checking for f95... no

checking for fort... no

checking for ifort... no

checking for ifc... no

checking for efc... no

checking for pgf95... no

checking for lf95... no

checking for ftn... no

checking whether we are using the GNU Fortran 77 compiler... no

checking whether  accepts -g... no

checking the maximum length of command line arguments... 196608

checking command to parse /usr/bin/nm -B output from gcc object... ok

checking for objdir... .libs

checking for ar... ar

checking for ranlib... ranlib

checking for strip... strip

checking if gcc supports -fno-rtti -fno-exceptions... no

checking for gcc option to produce PIC... -fPIC

checking if gcc PIC flag -fPIC works... yes

checking if gcc static flag -static works... yes

checking if gcc supports -c -o file.o... yes

checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... freebsd7.0 ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

configure: creating libtool

appending configuration tag "CXX" to libtool

checking for ld used by g++... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes

checking for g++ option to produce PIC... -fPIC

checking if g++ PIC flag -fPIC works... yes

checking if g++ static flag -static works... yes

checking if g++ supports -c -o file.o... yes

checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes

checking dynamic linker characteristics... freebsd7.0 ld.so

checking how to hardcode library paths into programs... immediate

appending configuration tag "F77" to libtool

checking for gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking dependency style of gcc... (cached) gcc3

checking dependency style of gcc... gcc3

checking if RANDR is defined... yes

checking if RENDER is defined... yes

checking if XV is defined... yes

checking if DPMSExtension is defined... yes

checking if XFreeXDGA is defined... yes

checking for pkg-config... /usr/local/bin/pkg-config

checking pkg-config is at least version 0.9.0... yes

checking for XORG... yes

checking whether XSERVER_LIBPCIACCESS is declared... no

checking for ANSI C header files... (cached) yes

--------------------------------------------------

>

checking whether _LP64 is declared... no

checking whether __amd64__ is declared... no

checking whether amd64 is declared... no

--------------------------------------------------

Sorun bunlar sanirim. Cunku derlerken off64_t, lseek64 gibi mimariden kaynaklanan hatalar almissiniz.


>

configure: creating ./config.status

config.status: creating Makefile

config.status: creating src/Makefile

config.status: creating config.h

config.status: config.h is unchanged

config.status: executing depfiles commands

[EMAIL PROTECTED] /home/mehmet/Desktop/xf86-video-geode-2.8.0]# 


İyi çalışmalar.


Mehmet PALA 




--                          

Metin KAYA                  

EnderUNIX Software Developer          Endersys Software Engineer

http://www.EnderUNIX.org/metin        http://www.Endersys.com/

Attachment: pgpIpBC1ar5n7.pgp
Description: PGP signature

Cevap