Re: Missing dha library

"Jakob Knudsen" <[email protected]>
Newsgroups gmane.comp.video.mplayer.cygwin
Message-ID <000701c77243$e1173bc0$4e64f953@XPST500>
Diego Biurrun wrote:
> On Thu, Mar 29, 2007 at 12:29:47AM +0200, Jakob Knudsen wrote:
>> I am using gcc version 3.4.4 on windows 2000 to compile mplayer under
>> cygwin. After a clean check out of the sources
>> the compilation fails due to a missing dha library.
>>
>> The last lines of the compile are:
>> ============================================================
>> make[1]: Entering directory
>> `/cygdrive/e/installation/mplayer/mplayer/vidix/drivers'
>> cc -fPIC -I../libavcodec -I../libavformat
>> -Wdeclaration-after-statement -I.  -I..
>> -I../libavutil -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math
>> -fomit-frame-pointer
>> -D__CYGWIN__ -DSYS_CYGWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>> -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/freetype2
>> -c -o
>> cyberblade_vid.o cyberblade_vid.c
>> cyberblade_vid.c:1: warning: -fPIC ignored for target (all code is
>> position independent)
>> cc -shared cyberblade_vid.o -L../../libdha -ldha -lm
>> -Wl,-soname,cyberblade_vid.so -o cyberblade_vid.so
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
>> cannot find -ldha
>> collect2: ld returned 1 exit status
>> make[1]: *** [cyberblade_vid.so] Error 1
>> rm cyberblade_vid.o
>> make[1]: Leaving directory
>> `/cygdrive/e/installation/mplayer/mplayer/vidix/drivers'
>> make: *** [vidix/libvidix.a] Error 2
>> ========================================================
>>
>> The libdha directory is where it should be and compiled just fine.
>> Can
>> anybody shed some light on the situation?
>
> Hmmm, can you provide the log of the libdha directory as well?
>
> Diego
> _______________________________________________
> MPlayer-cygwin mailing list
> [email protected]
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygwin

No problem, here it is:

============================================================================
=======
/usr/bin/make -C libdha
make[1]: Entering directory
`/cygdrive/e/installation/mplayer/mplayer/libdha'
cc -fPIC -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. 
-I.. -I../libavutil -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math -f
omit-frame-pointer -D__CYGWIN__ -DSYS_CYGWIN -D_LARGEFILE_SOURCE -D_FILE_OFF
SET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/freety
pe2   -c -o libdha.o libdha.c
libdha.c:1: warning: -fPIC ignored for target (all code is position
independent)
In file included from libdha.c:36:
sysdep/libdha_win32.c:34:1: warning: "FILE_ANY_ACCESS" redefined
In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ddk/ntddk.h:76,
                 from sysdep/libdha_win32.c:8,
                 from libdha.c:36:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ddk/winddk.h:27
8:1: warning: this is the location of the previous definition
In file included from libdha.c:36:
sysdep/libdha_win32.c:35:1: warning: "CTL_CODE" redefined
In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ddk/ntddk.h:76,
                 from sysdep/libdha_win32.c:8,
                 from libdha.c:36:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ddk/winddk.h:10
42:1: warning: this is the location of the previous definition
In file included from libdha.c:36:
sysdep/libdha_win32.c: In function `map_phys_mem':
sysdep/libdha_win32.c:85: warning: assignment makes pointer from integer
without a cast
cc -fPIC -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. 
-I.. -I../libavutil -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math -f
omit-frame-pointer -D__CYGWIN__ -DSYS_CYGWIN -D_LARGEFILE_SOURCE -D_FILE_OFF
SET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/freety
pe2   -c -o mtrr.o mtrr.c
mtrr.c:1: warning: -fPIC ignored for target (all code is position
independent)
cc -fPIC -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. 
-I.. -I../libavutil -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math -f
omit-frame-pointer -D__CYGWIN__ -DSYS_CYGWIN -D_LARGEFILE_SOURCE -D_FILE_OFF
SET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/freety
pe2   -c -o pci.o pci.c
pci.c:1: warning: -fPIC ignored for target (all code is position
independent)
LC_ALL=C gawk -f pci_db2c.awk oth/pci.db
Total lines parsed: 7006
cc -fPIC -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. 
-I.. -I../libavutil -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math -f
omit-frame-pointer -D__CYGWIN__ -DSYS_CYGWIN -D_LARGEFILE_SOURCE -D_FILE_OFF
SET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/freety
pe2   -c -o pci_names.o pci_names.c
pci_names.c:1: warning: -fPIC ignored for target (all code is position
independent)
In file included from pci_names.c:7:
pci_dev_ids.c:1622:18: warning: trigraph ??) ignored, use -trigraphs to
enable
pci_names.c:1577:23: warning: trigraph ??) ignored, use -trigraphs to enable
cc -shared -Wl,-soname -Wl,libdha.so -o libdha.so libdha.o mtrr.o pci.o
pci_names.o
ln -sf libdha.so libdha.so.1.0
ln -sf libdha.so libdha.so.1
make[1]: Leaving directory `/cygdrive/e/installation/mplayer/mplayer/libdha'
=============================================================

For completeness, I list the contents of the libdha directory after
compilation (ls -l):
total 1488
-rw-rw-r--  1 Administrator None   4374 Mar 27 23:54 AsmMacros.h
-rw-rw-r--  1 Administrator None   1140 Mar 27 23:54 Makefile
-rw-rw-r--  1 Administrator None   1189 Mar 27 23:54 README
drwxrwxr-x+ 3 Administrator None      0 Mar 27 23:54 bin
drwxrwxr-x+ 3 Administrator None      0 Mar 27 23:54 dhahelperwin
drwxrwxr-x+ 3 Administrator None      0 Mar 27 23:54 kernelhelper
-rw-rw-r--  1 Administrator None   3756 Mar 29 14:18 libdha.c
-rw-rw-r--  1 Administrator None   2469 Mar 27 23:54 libdha.h
-rw-rw-r--  1 Administrator None   2101 Mar 29 14:27 libdha.o
-rwxrwxr-x  1 Administrator None 242157 Mar 29 14:27 libdha.so
lrwxrwxrwx  1 Administrator None      9 Mar 29 14:27 libdha.so.1 ->
libdha.so
lrwxrwxrwx  1 Administrator None      9 Mar 29 14:27 libdha.so.1.0 ->
libdha.so
-rw-rw-r--  1 Administrator None   1734 Mar 27 23:54 mtrr.c
-rw-rw-r--  1 Administrator None    355 Mar 29 14:27 mtrr.o
drwxrwxr-x+ 3 Administrator None      0 Mar 27 23:54 oth
-rw-rw-r--  1 Administrator None  23037 Mar 27 23:54 pci.c
-rw-rw-r--  1 Administrator None   4737 Mar 29 14:27 pci.o
-rw-rw-r--  1 Administrator None   9003 Mar 27 23:54 pci_db2c.awk
-rw-rw-r--  1 Administrator None 231647 Mar 29 14:27 pci_dev_ids.c
-rw-rw-r--  1 Administrator None 480946 Mar 29 14:27 pci_ids.h
-rw-rw-r--  1 Administrator None  83178 Mar 29 14:27 pci_names.c
-rw-rw-r--  1 Administrator None    552 Mar 29 14:27 pci_names.h
-rw-rw-r--  1 Administrator None 276420 Mar 29 14:27 pci_names.o
-rw-rw-r--  1 Administrator None  91832 Mar 29 14:27 pci_vendors.h
drwxrwxr-x+ 3 Administrator None      0 Mar 27 23:54 sysdep
-rw-rw-r--  1 Administrator None    685 Mar 27 23:54 test.c

Hope this can give you a clue to the problem.
Regards,
Jakob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.