Noch ne Frage... *autsch* *gg*

Bash, Shell, PHP, Python, Perl, CGI
[nix]pepe
Userprojekt
Userprojekt
Posts: 244
Joined: 2003-04-08 19:36

Noch ne Frage... *autsch* *gg*

Post by [nix]pepe »

Und zwar dacht ich, ich pack das mal hier ins Scripting, weil ich die libpng ja für php brauch, funktioniert bei mir das compilen von vorne bis hinten nicht ... :(


ich hab mir das linux makefile raus kopiert und im haupt ordner mit dem namen makefile gespeichert und darin den prefix geändert...

wenn ich jetzt make eingebe kriege ich nen haufen fehlermeldungen aber nix vernünftiges... :(

hier nochmal die fehlermeldungen, vielleicht könnt ihr mir da ja weiterhelfen....

danke schon mal der Pepe :)

Meldungen:

Code: Select all

gcc -I../zlib -Wall -O3 -funroll-loops     -c -o png.o png.c
In file included from png.c:13:
png.h:329:18: zlib.h: No such file or directory
In file included from png.h:332,
                 from png.c:13:
pngconf.h:1099: parse error before '*' token
pngconf.h:1099: warning: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:1099: warning: data definition has no type or storage class
pngconf.h:1100: parse error before '*' token
pngconf.h:1100: warning: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:1100: warning: data definition has no type or storage class
pngconf.h:1101: parse error before '*' token
pngconf.h:1101: warning: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:1101: warning: data definition has no type or storage class
In file included from png.c:13:
png.h:1045: parse error before "z_stream"
png.h:1045: warning: no semicolon at end of struct or union
png.h:1117: `gamma' redeclared as different kind of symbol
/usr/include/bits/mathcalls.h:238: previous declaration of `gamma'
png.h:1283: parse error before '}' token
png.h:2702: parse error before "png_zalloc"
png.h:2702: parse error before "png_ptr"
png.h:2702: warning: type defaults to `int' in declaration of `png_zalloc'
png.h:2702: warning: data definition has no type or storage class
png.h:2705: parse error before "png_ptr"
png.c: In function `png_set_sig_bytes':
png.c:98: dereferencing pointer to incomplete type
png.c: At top level:
png.c:143: parse error before "png_zalloc"
png.c:143: parse error before "png_ptr"
png.c:144: warning: return type defaults to `int'
png.c: In function `png_zalloc':
png.c:145: `items' undeclared (first use in this function)
png.c:145: (Each undeclared identifier is reported only once
png.c:145: for each function it appears in.)
png.c:145: `size' undeclared (first use in this function)
png.c:147: `png_ptr' undeclared (first use in this function)
png.c:148: dereferencing pointer to incomplete type
png.c:150: dereferencing pointer to incomplete type
png.c:152: dereferencing pointer to incomplete type
png.c:156: `voidpf' undeclared (first use in this function)
png.c:156: parse error before "ptr"
png.c:169: parse error before "ptr"
png.c: At top level:
png.c:178: parse error before "png_ptr"
png.c: In function `png_zfree':
png.c:180: `png_ptr' undeclared (first use in this function)
png.c:180: `ptr' undeclared (first use in this function)
png.c: In function `png_reset_crc':
png.c:189: dereferencing pointer to incomplete type
png.c:189: warning: implicit declaration of function `crc32'
png.c:189: `Z_NULL' undeclared (first use in this function)
png.c: In function `png_calculate_crc':
png.c:202: dereferencing pointer to incomplete type
png.c:204: dereferencing pointer to incomplete type
png.c:210: dereferencing pointer to incomplete type
png.c:215: dereferencing pointer to incomplete type
png.c:215: dereferencing pointer to incomplete type
png.c:215: `uInt' undeclared (first use in this function)
png.c:215: parse error before "length"
png.c: In function `png_create_info_struct':
png.c:233: dereferencing pointer to incomplete type
png.c:233: dereferencing pointer to incomplete type
png.c: In function `png_destroy_info_struct':
png.c:262: dereferencing pointer to incomplete type
png.c:263: dereferencing pointer to incomplete type
png.c: In function `png_info_destroy':
png.c:576: dereferencing pointer to incomplete type
png.c:578: dereferencing pointer to incomplete type
png.c:579: dereferencing pointer to incomplete type
png.c:580: dereferencing pointer to incomplete type
png.c: In function `png_get_io_ptr':
png.c:594: dereferencing pointer to incomplete type
png.c: In function `png_init_io':
png.c:608: dereferencing pointer to incomplete type
png.c: In function `png_convert_to_rfc1123':
png.c:623: dereferencing pointer to incomplete type
png.c:625: dereferencing pointer to incomplete type
png.c:651: dereferencing pointer to incomplete type
png.c:657: dereferencing pointer to incomplete type
png.c: In function `png_handle_as_unknown':
png.c:721: dereferencing pointer to incomplete type
png.c:723: dereferencing pointer to incomplete type
png.c:723: dereferencing pointer to incomplete type
png.c:724: dereferencing pointer to incomplete type
png.c: In function `png_reset_zstream':
png.c:735: warning: implicit declaration of function `inflateReset'
png.c:735: dereferencing pointer to incomplete type
png.c: In function `png_init_mmx_flags':
png.c:754: dereferencing pointer to incomplete type
png.c:755: dereferencing pointer to incomplete type
png.c:789: dereferencing pointer to incomplete type
make: *** [png.o] Error 1
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: Noch ne Frage... *autsch* *gg*

Post by captaincrunch »

Du hast keine zlib-Headers ...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
[nix]pepe
Userprojekt
Userprojekt
Posts: 244
Joined: 2003-04-08 19:36

Re: Noch ne Frage... *autsch* *gg*

Post by [nix]pepe »

ich hab zlib aber schon installiert :(
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: Noch ne Frage... *autsch* *gg*

Post by captaincrunch »

Aber keine Headers (Endung .h), die sich im Normalfall im zugehörigen devel-Paket befinden.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
[nix]pepe
Userprojekt
Userprojekt
Posts: 244
Joined: 2003-04-08 19:36

Re: Noch ne Frage... *autsch* *gg*

Post by [nix]pepe »

thx,
hab jetzt meinen zlib install ordner in zlib umgenannt und es funzt :)